题目
题目

IS 4485-001 Fall 2025 Final Exam

单项选择题

What happens if binary search is used on an unsorted list?

选项
A.It will convert the list to a tree
B.It will find the target but slower
C.It will always find the target
D.It will raise a runtime error
E.It will sort the list first
F.It may give incorrect results
查看解析

查看解析

标准答案
Please login to view
思路分析
Consider the problem: what happens if binary search is used on an unsorted list? Option 1: 'It will convert the list to a tree' - This is incorrect. Using binary search does not transform the data structure into a tree; binary search relies on a sorted order to halve the search space, not on restructuring the data. Option 2: 'It will find the target but slower' - Binary search is efficient specifi......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!