数据结构课程设计 数据结构课程设计_查找_源代码.docVIP

  • 29
  • 0
  • 约1.07万字
  • 约 14页
  • 2018-06-09 发布于江西
  • 举报

数据结构课程设计 数据结构课程设计_查找_源代码.doc

数据结构课程设计 数据结构课程设计_查找_源代码.doc

数据结构课程设计 数据结构课程设计_查找_源代码 导读:就爱阅读网友为您分享以下“数据结构课程设计_查找_源代码”的资讯,希望对您有所帮助,感谢您对92的支持! #include #include #include #include FILE *fp; //---------折半查找------------------------ #define MAX 20 int data[MAX]; int binary_find(int key, int low, int high) { int mid; if(low == high) { if(data[low] == key) return low; else return -1; } else { mid = (low + high) / 2; if(mid == low) mid++; if(key //Binary Search int binary_search(int key) { return binary_find(key, 0, MAX - 1); } void zheban() { int found; int value; if((fp=fopen(\ {printf(\ } for(int i=0;i fs

文档评论(0)

1亿VIP精品文档

相关文档