要求随机关生一个序列,任意查找其中一个元素时,采用二分搜索法实现,并且还能显示查找次数。使用二分法首先要使序列列按从小到大排序,因此程序中还要有排序功能。...
代码说明:
要求随机关生一个序列,任意查找其中一个元素时,采用二分搜索法实现,并且还能显示查找次数。使用二分法首先要使序列列按从小到大排序,因此程序中还要有排序功能。- there is a random series ,when looking for any an element in this series,we can achieve this by the method of bisectional searching,also the number of search times will be displayed.when using this method ,first of all you should sequence the series bigger and bigger.For this reason the program shoule have the founction of secquencing.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!