Question: Which of the following searching methods requires that all keys must reside
in internal memory?
Given Answer: A
Suggestion for Correct Answer:
17. Sequential search has a time complexity of O(n), and binary search has a time
complexity of O(log(n)). What difference will it make when the size n is 1000?
log(1024) = 10, 1000/log(1000) is roughly equal to 1000/10 = 100
Report Question
Question: Sequential search has a time complexity of O(n), and binary search has a time
complexity of O(log(n)). What difference will it make when the size n is 1000?
Given Answer: D
Suggestion for Correct Answer:
18. Worst case time complexity of binary search is ______________