2011-12-07

HW4 Log merge.

Originally Posted By: animeshd
Professor,
Homework 4 says:
For part (d), I want you to assume that you only have enough memory to hold 10 documents at a time in memory (this is also at merge time and you can assume documetns are all roughly the same length). I want you to code your program so that it uses the disk to keep indexing according to Figure 7.7.

According to figure 7.7, we partition based upon tokens rather than documents. So is it fine if our programs holds 10 tokens in memory rather than 10 documents?
'''Originally Posted By: animeshd''' Professor,<br>Homework 4 says:<br>For part (d), I want you to assume that you only have enough memory to hold 10 documents at a time in memory (this is also at merge time and you can assume documetns are all roughly the same length). I want you to code your program so that it uses the disk to keep indexing according to Figure 7.7. <br><br>According to figure 7.7, we partition based upon tokens rather than documents. So is it fine if our programs holds 10 tokens in memory rather than 10 documents?
X