logo CodeStepByStep logo

searching_concepts

Language/Type: Python searching

Answer the following questions about searching:

What are ways to search an unsorted list of strings using the Python class libraries? (Check all that apply.)
(order shuffled)
If you perform a binary search on a list of one million integers, which of the following is closest to the number of elements that the search algorithm will need to examine?
Should you use a sequential or binary search on a list of strings, and why?
(order shuffled)
Why does the binary search algorithm require the input to be sorted?
(order shuffled)
How many elements at most does a binary search examine if the list contains 60 elements?

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.