- 367
- 0
- 约1.96千字
- 约 3页
- 2015-09-26 发布于重庆
- 举报
《数据结构》查找 实验报告格式
河南工业大学实验报告
课程 数据结构 _ 实验名称 实验五: 查找
院 系___________________ 专业班级__ ____ 实验地点
姓 名__________ 学 号____________ 实验时间
指导老师 王云侠 实验成绩 批改日期
实验目的
熟悉静态查找的相关算法
实验内容及要求
实现顺序表的查找算法
实现有序表的折半查找算法
实验过程及结果
实验过程:
源程序:
顺序查找:
#include stdio.h
#define MAX_SIZE 100
typedef struct{
int key;
}element;
element list[MAX_SIZE];
int seqsearch(element list[],int searchnum,int num);
int main()
{
int i,num,searchnum,k;
printf(请输入元素的个数:);
scanf(%d,num);
printf(请输入元素:\n);
fo
您可能关注的文档
- Touch Window 结构篇分析.pdf
- Toward the Scientific Evaluation of Music Information Retrieval Systems.pdf
- Towards a Better Forecasting Model for Economic Indices.pdf
- Torture Tests A Quantitative Analysis for the Robustness of KnowledgeBased Systems.pdf
- Towards a Standardization of ObjectOriented Modelling Languages (Working Paper No.pdf
- Towards a Temporal Extension of Formal Concept Analysis.pdf
- Towards a Tool for Performance Evaluation of Autonomous Vehicle Navigation in Dynamic, OnR.pdf
- Towards Better Integrators for Dissipative Particle Dynamics Simulations.pdf
- Towards Information Retrieval Measures for Evaluation of Web Search Engines. Unpublished ma.pdf
- Towards an Effectivisation of the Riemann Theorem.pdf
原创力文档

文档评论(0)