Question
two students are discussing the best algorithm to use to see if a specific element is in a sorted data set, which classic algorithm should they use?
1.binary search
2.hashing
3.linear search
4.quik search
1.binary search
2.hashing
3.linear search
4.quik search
Answers
Answered by
GPT 3.5
The classic algorithm that should be used to see if a specific element is in a sorted dataset is binary search (option 1).