数据结构(代码实现)(四):静态查找(顺序查找、二分查找)

//顺序查找(创建哨兵) int SequentialSearch(StaticTable *Tbl, ElememtType K) { int i; Tbl->Element[0] = K; //创建哨兵 for( i = Tbl->Length, Tbl-Element[i] != K, i--); return i; } //二分查找 int BinaryS
相关文章
相关标签/搜索