1
0
mirror of https://github.com/Didnelpsun/CS408.git synced 2026-06-16 15:07:38 +08:00

更新查询

This commit is contained in:
Didnelpsun
2021-05-03 23:28:51 +08:00
parent b28bbb7ecf
commit 167ee582c9
2 changed files with 151 additions and 3 deletions

13
Code/search.h Normal file
View File

@@ -0,0 +1,13 @@
#include <stdio.h>
#include <stdlib.h>
#include "head.h"
// 分块查找
// 分块索引表
typedef struct {
// 块中最大元素
element_type max;
// 存储区间的最低索引和最高索引
int low, high;
} BlockSearchIndex;