29.01.2014 Views

Part 4: Index Construction

Part 4: Index Construction

Part 4: Index Construction

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Use the same algorithm for disk?<br />

Sec. 4.2<br />

Can we use the same index construction<br />

algorithm for larger collections, but by using disk<br />

instead of memory?<br />

• I.e. scan the documents, and for each token<br />

write the corresponding posting (term, doc,<br />

freq) on a new file<br />

• Finally sort the postings and build the postings<br />

lists for all the terms<br />

No: Sorting T = 100,000,000 records (term, doc,<br />

freq) on disk is too slow – too many disk seeks<br />

• See next slide<br />

We need an external sorting algorithm.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!