10 Aug 2004
CS 5244: Orientation
63
/32
Selecting r entries from accumulators
¡
Want to return documents with
largest cos values.
¡
¡
How? Use a min-heap
l
Load r A values into the heap H
l
Process remaining A-r values
l
If A
d
> min{H} then
l
Delete min{H}, add A
d
, and sift
l
// H now contains the top r exact cosine values
¡