数据结构算法练习.docVIP

  • 2
  • 0
  • 约2.16千字
  • 约 3页
  • 2018-03-09 发布于河南
  • 举报
数据结构算法练习

电子信息工程学系实验报告 课程名称: 数据结构与算法 实验项目名称: 算法练习 实验时间: 班级: 姓名: 学号: 实 验 目 的: 复习c语言 了解数据结构算法分析 实 验 环 境: Windows XP Win-Tc 实 验 内 容 及 过 程: 编程实现,有一组N个数而确定其中第K个最大值,并分析所写算法的复杂性。要求算法尽可能高效。 编程代码如下: #include stdio.h #include conio.h #include time.h /*The elements in the array from large to small according to the order*/ int method(int* p,int num,int k) { int temp,i,j,max; for(i=0;ik-1;

文档评论(0)

1亿VIP精品文档

相关文档