Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 5 - Part 3
Date: Sun Nov 18 2001 4:58 am
Author: Chen, Richard <richardc@andrew.cmu.edu>
Subject: Re: makeIndex()

I disagree with myself. I now believe that makeIndex() must be implemented in full since WebSearch.java does (namely):
WebIndex w=new WebIndex();
w.makeIndex();
//skip irrelevant lines to the question-at-hand
w.restore(indexSource);
Iterator i=w.retrievePages(new ObjectIterator(v));

Note that makeIndex() in WebIndex.java must make the Index since nowhere in WebSearch.java is addPage() called. Therefore, if makeIndex() is not implemented, then WebSearch.java will not be able to obtain an index structure.

Are my statements true or false?
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
makeIndex()      Kwok, Jonathan Chong-Xue      Sat Nov 17 2001 12:02 pm       
Re: makeIndex()      Lee, Peter      Sat Nov 17 2001 4:02 pm       
Re: makeIndex()      Lee, Peter      Sat Nov 17 2001 4:02 pm       
Re: makeIndex()      Chen, Richard      Sun Nov 18 2001 4:58 am       
Re: makeIndex()      Bortz, Andrew S.      Sun Nov 18 2001 2:31 pm       
Re: makeIndex()      Goodman, Brian J.      Sun Nov 18 2001 4:34 pm       
Re: makeIndex()      Chen, Richard      Sat Nov 17 2001 4:08 pm       

Back to previous screen