[1]傅晓航,郑欢欢.k 分搜索的时间复杂度分析[J].计算机技术与发展,2021,31(02):175-179.[doi:10. 3969 / j. issn. 1673-629X. 2021. 02. 032]
 FU Xiao-hang,ZHENG Huan-huan.Time Complexity Analysis of k-Bisection Search[J].,2021,31(02):175-179.[doi:10. 3969 / j. issn. 1673-629X. 2021. 02. 032]
点击复制

k 分搜索的时间复杂度分析()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
31
期数:
2021年02期
页码:
175-179
栏目:
应用前沿与综合
出版日期:
2021-02-10

文章信息/Info

Title:
Time Complexity Analysis of k-Bisection Search
文章编号:
1673-629X(2021)02-0175-05
作者:
傅晓航郑欢欢
南京理工大学 计算机科学与工程学院,江苏 南京 210094
Author(s):
FU Xiao-hangZHENG Huan-huan
School of Computer Science & Engineering,Nanjing University of Science & Technology,Nanjing 210094,China
关键词:
分治算法二分搜索 k 分搜索最优算法归纳法
Keywords:
divide-and-conquerbinary search k -bisection searchoptimal algorithminductive method
分类号:
TP301. 5
DOI:
10. 3969 / j. issn. 1673-629X. 2021. 02. 032
文献标志码:
A
摘要:
分治策略的思想是将一个规模较大的问题分解为多个形式相同的子问题来解决。搜索是指在一个排好序的数组中寻找与给定数值 x 相等的元素, 传统的搜索算法是遍历, 而二分搜索是一种基于分治策略的搜索算法。 二分搜索是将数 组每次分为相等的两部分,将待查元素 x 与数组中间的元素比较,若相等则搜索成功;否则将搜索范围缩小为原来的一半, 之后以此类推,直到找到待查元素,与遍历相比,二分搜索复杂度明显降低。 以二分搜索为基础,每次可以将数组分为更 多部分,即 k 分搜索,探寻 k 为何值时 k 分搜索算法的时间复杂度最低,能够对搜索算法进一步优化。 通过分析、归纳与证 明,得出 k 分搜索的时间复杂度为 O(k logkn) ,由于该函数是递增的,因此二分搜索是效率最高的搜索算法,复杂度为 O(log2 n) ;此外,当 k = n 时, k 分搜索退化为遍历,复杂度退化为 O(n) 。
Abstract:
The idea of a divide-and-conquer strategy is to solve a large problem by breaking it down into subproblems of the same form. Search refers to finding the elements equal to the given value x in an ordered array. The traditional search algorithm is traversal, while the binary search is a search algorithm based on divide-and-conquer strategy. The binary search is to divide the array into? two equal parts each time,compare the elements to be searched with the elements in the middle of the array,if equal,the search is successful; otherwise, the search scope will be reduced to half of the original,and so on,until the elements to be checked are found. Compared with traversal, the complexity of binary search is significantly reduced. On the basis of binary search,the array can be divided into more parts each time, that is, k -bisection search. The time complexity of k -bisection search algorithm is the lowest when searching for the value of k ,which can further optimize the search algorithm. Through analysis,induction and proof,the time complexity of k -score search is O(k logkn) . Because the function is increasing,the binary search is the most efficient search algorithm,of which the complexity is O( log2 n) . In addition,when k = n , k-bisection search degenerates to ergodic,and the complexity degenerates to O(n) .

相似文献/References:

[1]戴晓明 朱萍.平面散乱点三角剖分分治算法的实现[J].计算机技术与发展,2006,(01):11.
 DAI Xiao-ming,ZHU Ping.Divide Algorithm Realization of Plane Scattered Data Triangulation[J].,2006,(02):11.

更新日期/Last Update: 2020-02-10