Slide 4
Slide 4 text
Get top N=2 results:
– Create a priority queue of size N
– Accumulate matching docs
Top hits
9 0 7 8 2 2 1 8 10 3 4 4 6 10 1 1 13
1 3 10 4 7 20 42 11 9 8 15 18 30 31 99 5 12
Id
Price
(3)
() (3,4) (4,20) (4,9) (4,9) (9,31) (9,31)
Automatic overflow of the
priority queue to remove the
least one
Create an empty
priority queue
Top hits