顺序表的查找完整实现代码

顺序表表的完整实现代码 利用二分查找 fib查找!!!

#include<iostream>

#include<time.h>

#include<iomanip>

#include<fstream>

using namespace std;

#define EQ(a,b) ((a) == (b)) #define LT(a,b) ((a) < (b) )

#define LE(a,b) ((a) <= (b))

typedef int keyType;

typedef struct {

int key; float info;

}sTable;

int seq_search(sTable ST[],int n,int key) {

ST[0].key = key;

}

int i = n; while(ST[i].key!=key) i--; return i;

struct node{

int key;

struct node *next;

};

int list_search(struct node *ST,int key) {

}

typedef struct {

int key; int math; struct node *m = ST; while(m->next!=NULL&&m->key!=key) m = m->next; return m->key;

int english;

}elemType;

你可能喜欢

  • 数据结构顺序表实验报告
  • 二叉排序树
  • 查找算法
  • C语言冒泡排序
  • 排序课件
  • 数据结构顺序查找
  • 数据结构高分笔记
  • C语言改错题

顺序表的查找完整实现代码相关文档

最新文档

返回顶部