网络设计实验报告.docxVIP

  • 6
  • 0
  • 约5.46千字
  • 约 20页
  • 2021-04-12 发布于天津
  • 举报
实验名称:第9章实验 实验类型:验证性实验 班级学号:2011211102 姓名:车红岫 实验日期:2013.6 问题描述 以下四个验证性实验都做。 (1) 顺序查找验证 (2) 折半查找验证 (3) 二叉排序树的建立 (4) 哈希表的建立 数据结构设计 (1) 顺序查找验证 typedef struct { KeyType *elem; // 零号单元留空 in t le ngth; // 表长度 }SSTable; (2) 折半查找验证 int score[100]; int len gth; int key; (3) 二叉排序树的建立 typedef struct node { datatype key; struct node *lchild,*rchild; }bs no de; 哈希表的建立 typedef structL node { int data; structL node *n ext; }Ln ode, *ListL ink; // 建立链表结点 typedef struct { in tpos; ListL in kfirst no de; // 建立数组结点 }HashBox; typedef struct { HashBoxHArrary[INIT_MAXSIZE]; // 建立哈希数组(哈希表的地址表头) }HashArray;

文档评论(0)

1亿VIP精品文档

相关文档