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
lLoad r A values into the heap H
lProcess remaining A-r values
l If Ad > min{H} then
l Delete min{H}, add Ad, and sift
l// H now contains the top r exact cosine values
¡