Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 5 General Forum
Date: Tue Nov 6 2001 12:25 am
Author: Goodman, Brian J. <bjg@andrew.cmu.edu>
Subject: Re: O(lgN) time requirement for search

We are requiring that your search function run in O(log(i+j)). However, our official solution can actually search in time more or less independant of the size of the index. The running time of the sample solution is entirely dependent on the properties of the specific search. These properties include the number of keywords in the query, the length of each of these words, and the number of results returned. This last parameter will probably grow as the number of pages in the index grows, but if you're clever and very careful about how you implement your index structure, you can even eliminate this dependance.

So if you search for m keywords, each with an average length of k characters, how might you search (and remember we need to prioritize!) in O(m*k*f(n)) time? Here, n is the number of pages returned, not the number of pages in the index. f is some function of n (n, n^2, n*log(n), etc.).
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
O(lgN) time requirement for search      Shi, Ying      Mon Nov 5 2001 4:53 pm       
Re: O(lgN) time requirement for sea...      Lee, Peter      Mon Nov 5 2001 10:51 pm       
Re: O(lgN) time requirement for sea...      Goodman, Brian J.      Tue Nov 6 2001 12:25 am       
Re: O(lgN) time requirement for ...      Shi, Ying      Tue Nov 6 2001 11:37 am       

Back to previous screen