Chapter 10: Problem 3
a. Write a version of the sequential search algorithm that can be used to search a sorted list. b. Consider the following list: 51217354665788593110115 Using a sequential search on ordered lists, which you designed in (a), how many comparisons are required to determine whether the following items are in the list or not? (Recall that comparisons mean item comparisons, not index comparisons.) i. 35 ii. 60 iii. 78 iv. 120
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.