461 views
0 votes
0 votes
Suppose a phone book contain 500 pages and each page can contain upto 500 records. Suppose we want to search for a particular name in a phone book. Give a worst case bound on number of pages that must be looked to perform a search using an index for the name of the first entry of each page.

1 Answer

0 votes
0 votes
here index is on the names so we have to visit only 2 pages 1st for searching the name on index that is fisrt index page and second is the record page containing the name in worst case bound so answer will be 2.

No related questions found