數據結構與算法(C語言版)__順序查找

順序查找與折半查找(二分查找) 沒有排序的數據:只能順序查找 已經排序的數據:二分查找便可 順序查找:速度慢 例如:100萬個數據,平均要找50萬次!ios #include<iostream> using namespace std; int SequentialSearch(int *a, const int n, const int x); int main(){ int m[
相關文章
相關標籤/搜索