#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define TRUE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define INFEASIBLE -1
#define OVERFLOW -2
#define LIST_INIT_SIZE 100 //存储空间的初始分配量
#define EQ(a,b) ((a) == (b))
#define LT(a,b) ((a) < (b))
#define LQ(a,b) ((a) <= (b))
typedef int Status;
typedef int KeyType;
typedef struct
{
KeyType key;
int weight;
}ElemType;
typedef struct
{
ElemType *elem; //unit elem[0] keep NULL
int length; //length of table
}SSTable;
/*************
【数据结构】算法9.1 顺序表查找-顺序查找
最新推荐文章于 2023-01-11 13:05:35 发布