第十三周 專案1 驗證演算法(2)

2021-08-11 05:01:00 字數 975 閱讀 4089

*作 者:武美妤

*完成日期:2023年11月16日

*版 本 號:v1.0

#include #define maxl 100    //資料表的最大長度

#define maxi 20 //索引表的最大長度

typedef int keytype;

typedef char infotype[10];

typedef struct

nodetype;

typedef nodetype seqlist[maxl]; //順序表型別

typedef struct

idxtype;

typedef idxtype idx[maxi]; //索引表型別

知識點總結:分塊查詢是一種介於順序查詢和折半查詢之間的查詢方法。

學習心得:對分塊查詢的**還不太理解,要在課下多加練習。

第十三周專案1 驗證演算法2

檔名稱 專案1 驗證演算法 作 者 董麗娟 完成日期 2017年11月23日 版 本 號 v1.0 分塊查詢 include define maxl 100 資料表的最大長度 define maxi 20 索引表的最大長度 typedef int keytype typedef char infot...

第十三周專案 演算法驗證(2)

作 者 張行 完成日期 2017年12月30日 版 本 號 v1.0 問題描述 1 dijkstra演算法的驗證 2 floyd演算法驗證 3 拓撲排序演算法驗證 結果顯示 如圖所示 main.cpp include include include graph.h define maxsize 10...

第十三周專案1 驗證演算法(1)

all rights reservrd.檔名稱 test.cpp 版本號 v1.0 問題描述 驗證演算法 問題及 折半查詢 include define maxl 100 typedef int keytype typedef char infotype 10 typedef struct node...