问题:
[单选题]What is the difference between the fibSearch() algorithm and binSearch() algorithm? fibSearch()算法与binSearch()有什么区别?
ATheir return value is different 二者的返回值不同
BThe former is a recursive algorithm, and the latter is an iterative algorithm 前者是递归算法,后者是迭代算法
CThere are different ways to choose the axis point mi 二者选取轴点mi的方式不同
DThe former's asymptotic time complexity is lower than the latter, so the former is more efficient 前者的渐进时间复杂度低于后者,故前者效率更高
答案解析:
您可能感兴趣的问题
- 缩进对于Python程序至关重要。
- Python语言中字符串对象的strip()只能删除字符串两端的空白字符,无法删除其他字符。
- 1.什么是建设程序?
- 7.工程造价是怎样形成的?影响价格的因素有哪些?
- 11.简述分部组合计价的工作步骤。
- 13.某工业建设项目,需要生产用进口设备与材料500t,FOB价为100万美元。国际运费费率是350美元/t,国内运杂费率是2.5%,保险公司的海运水渍险是货价的0.266%,银行财务费为设备与材料离
- 18.什么是工程造价资料?它有哪些用途?
- 3.对比分析说明工程概算和工程预算的编制依据。
- 5.对比说明工程概算和工程预算的编制方法。
- 19.已知某工程每周拟完工程计划投资、已完工程计划投资和已完工程实际投资,见表8.3。