![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
查找
yue_luo_
这个作者很懒,什么都没留下…
展开
-
3374 数据结构实验之查找二:平衡二叉树
数据结构实验之查找二:平衡二叉树#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; struct node { int ndata; //记录关键字数值 node *l,*r;原创 2016-12-11 21:06:07 · 299 阅读 · 0 评论 -
3375 数据结构实验之查找三:树的种类统计
数据结构实验之查找三:树的种类统计#include <bits/stdc++.h> using namespace std; struct node { char str[22]; int cnt; node *l, *r; }; int n; node *Inster(node *Head, char *s) { if(!He原创 2016-12-11 21:13:15 · 341 阅读 · 0 评论 -
3377 数据结构实验之查找五:平方之哈希表
数据结构实验之查找五:平方之哈希表#include <bits/stdc++.h> using namespace std; int main() { int Hash[550]; int n,k; while(cin>>n>>k) { memset(Hash, -1, sizeof(Hash)); fo原创 2016-12-11 21:23:45 · 354 阅读 · 0 评论 -
3378 数据结构实验之查找六:顺序查找
数据结构实验之查找六:顺序查找#include<stdio.h> int a[1000010]; int main() { int i,j,n,m,k,t; while(scanf("%d %d",&n,&m)!=EOF) { t=-1; for(i=0;i<n;i++) {原创 2016-12-11 21:26:58 · 509 阅读 · 0 评论 -
3379 数据结构实验之查找七:线性之哈希表
数据结构实验之查找七:线性之哈希表#include <bits/stdc++.h> using namespace std; int main() { int Hash[5510]; int n,k; while(cin>>n>>k) { memset(Hash, -1, sizeof(Hash)); f原创 2016-12-11 21:32:28 · 344 阅读 · 0 评论 -
3373 数据结构实验之查找一:二叉排序树
数据结构实验之查找一:二叉排序树#include<iostream> #include<cstring> #include<cstdio> using namespace std; typedef struct node { int date; struct node *lchild,*rchild; }Tree; int len,len1;原创 2016-12-11 20:55:59 · 419 阅读 · 0 评论 -
3376 数据结构实验之查找四:二分查找
数据结构实验之查找四:二分查找#include <bits/stdc++.h> using namespace std; const int maxn = 1e6+10; int a[maxn]; int main() { int n,m; scanf("%d%d",&n,&m); for(int i=0; i<n; i++)原创 2016-12-11 21:20:29 · 763 阅读 · 0 评论