-- Practice Final Thread
Question 2. Suppose we have m=min(5, length of your surname) many accumulators. Give examples that would trigger the QUIT and the CONTINUE accumulator pruning heuristics if term at a time processing was being used.
The conditions to trigger CONTINUE and QUIT are the number of accumulators should be equal to or greater than amax.
We have 8 documents
1 a dog
2 a cat
3 the dog
4 the cat
5 a good dog
6 a bad cat
7 a very good dog
8 a very bad cat
We do term-at-a-time for 'a'
'a' is present in the docs 1, 2, 5, 6, 7, 8
amax is 5 (min(5, 16))
The accumulators:
[(1, s1)]
[(1, s1), (2, s2)]
[(1, s1), (2, s2), (5, s5)]
[(1, s1), (2, s2), (5, s5), (6, s6)]
[(1, s1), (2, s2), (5, s5), (6, s6), (7, s7)]
Since the number of accumulators is equal to the amax, QUIT and CONTINUE are triggered. QUIT exits the processing once it is triggered while CONTINUE will keep processing the posting lists but will not add any more accumulators to the accumulators list.
(
Edited: 2021-05-17)
<nowiki>Question 2. Suppose we have m=min(5, length of your surname) many accumulators. Give examples that would trigger the QUIT and the CONTINUE accumulator pruning heuristics if term at a time processing was being used.
The conditions to trigger CONTINUE and QUIT are the number of accumulators should be equal to or greater than amax.
We have 8 documents
1 a dog
2 a cat
3 the dog
4 the cat
5 a good dog
6 a bad cat
7 a very good dog
8 a very bad cat
We do term-at-a-time for 'a'
'a' is present in the docs 1, 2, 5, 6, 7, 8
amax is 5 (min(5, 16))
The accumulators:
[(1, s1)]
[(1, s1), (2, s2)]
[(1, s1), (2, s2), (5, s5)]
[(1, s1), (2, s2), (5, s5), (6, s6)]
[(1, s1), (2, s2), (5, s5), (6, s6), (7, s7)]
Since the number of accumulators is equal to the amax, QUIT and CONTINUE are triggered. QUIT exits the processing once it is triggered while CONTINUE will keep processing the posting lists but will not add any more accumulators to the accumulators list.
</nowiki>