-- Apr 20 In-Class Exercise
In the memory, only 200000 documents can be stored. However, there are a total of 1 billion documents and 4 machines.
Each machine can process = 1 billion documents / 4 = 250 million documents
t = log2 (250000000 / 200000) = log2(1250) β 10.
That means the largest number of generations is 10. So, a maximum of 9 merges is required.
(
Edited: 2022-04-25)
In the memory, only 200000 documents can be stored. However, there are a total of 1 billion documents and 4 machines.
Each machine can process = 1 billion documents / 4 = 250 million documents
t = log2 (250000000 / 200000) = log2(1250) β 10.
That means the largest number of generations is 10. So, a maximum of 9 merges is required.