Related questions with answers
The American Museum of Natural History in New York City contains more than 32 million specimens and artifacts in its various collections, including the world’s largest collection of dinosaur fossils. Many of these are in storage away from public view, but all must be carefully inventoried. a. Suppose the inventory is unordered (!) and a sequential search is done to locate a specific artifact. Given that the search is executed on a computer that can do 12,000 comparisons per second, about how much time on the average would the search require? b. Assuming the inventory is sorted, about how much time would a binary search require?
Solution
Verifieda) The average number of comparisons for a 32 million long list would be 16 million
Here is the calculation:
$16,000,000 comparisons * \dfrac{1}{12,000} seconds/comparison = 1333 seconds$
the average time approximates to 22.2 hours.
Create an account to view solutions
Create an account to view solutions
Recommended textbook solutions

Computer Organization and Design MIPS Edition: The Hardware/Software Interface
5th Edition•ISBN: 9780124077263 (5 more)David A. Patterson, John L. Hennessy
Fundamentals of Database Systems
7th Edition•ISBN: 9780133970777 (1 more)Ramez Elmasri, Shamkant B. Navathe
Introduction to Algorithms
3rd Edition•ISBN: 9780262033848 (2 more)Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen
Invitation to Computer Science
7th Edition•ISBN: 9781305075771 (1 more)G Michael Schneider, Judith L. GerstingMore related questions
1/2
1/3