-- Apr 20 In-Class Exercise
The output is: 10011100010
Explanation:
index need to handle per machine:
10^9 / 4 = 2.5 * 10^8
number of generation_1
2.5 * 10^8 / 200,000 = 1250
let g be the maximum number of generations we need:
2^g = 1250 => g = lower(log_2(1250)) = 10
The largest generation # is:
10
The most generations that will need to be merged when we have to flush the in-memory partition to disk are:
9
(
Edited: 2022-04-20)
((resource:Screen Shot 2022-04-20 at 2.43.20 PM.png|Resource Description for Screen Shot 2022-04-20 at 2.43.20 PM.png))
The output is: 10011100010<br/><br/>
Explanation: <br/>
index need to handle per machine: <br/>
10^9 / 4 = 2.5 * 10^8 <br/> <br/>
number of generation_1 <br/>
2.5 * 10^8 / 200,000 = 1250 <br/> <br/>
let g be the maximum number of generations we need: <br/>
2^g = 1250 => g = lower(log_2(1250)) = 10 <br/><br/>
The largest generation # is: <br/>
10 <br/><br/>
The most generations that will need to be merged when we have to flush the in-memory partition to disk are:<br/>
9