搜索资源列表
salesman-temp
- 货郎担 最短路径问题 用链表储存最短路径节点-traveling salesman problem using the shortest path Listless storage nodes Shortest Path
c
- c++冒泡排序#include \"stdio.h\" void sort() { int i,count=0,a[20] int k=20 printf(\"please input 20 defferent numbers?\\n\") for(i=0 i<20 i++) scanf(\" %d\\a\",&a[i]) while(count<20) { for(i=0 i<k i++)
Insert_sort
- void insert_sort(int *a,int n) { if(n==1) return insert_sort(a,n-1) int temp=a[n-1] for(int i=n-2 i>=0 i--) { if(temp<a[i]) a[i+1]=a[i] else break } a[i+1]=temp }-void insert_sort (int* a, int n) (if
112
- :#include <stdlib.h>#include <stdio.h>#include <time.h> void InsertSort(int a[],int *(k1),int *(k2))//0:直接插入排序{ int i,j int temp *(k1)=0 *(k2)=0 for(i=0 i<149 i++) { temp=a[i+1] *(k2)++ ... -:# Include
temp
- 关于二叉树排序及线性链表的实现及各种操作,仅是面试的一个资料-On the binary sort tree and linear list implementation and all kinds of operations, is only an information interview
Data_struct_1
- 数据结构课后设计题第一章 ◆1.16② 试写一算法,如果三个整数X,Y和Z 的值不是依次非递增的,则通过交换,令其为 非递增。 要求实现下列函数: void Descend(int &x, int &y, int &z) void Descend(int &x, int &y, int &z) { int temp if(x<=y){temp=x x=y y=temp } if(y<=z){temp=y y=z z
temp
- C 数据结构 A*算法 图论 矩阵 最短路径算法-C data structure matrix A* algorithm for shortest path algorithms on graph theory
paixu
- 用指向指针的方法对n个数进行排序并输出,n和各整数在主函数中输入-#include <stdio.h> #define SIZE 100//数组最大长度 #define SWAP(x, y, t) (t = x, x = y, y = t)//交换两个数 void sort(int**p, int n){//排序函数 int i, j int min int temp for(i = 0 i < n- 1 i++){
temperature
- 择使用数组储存数据。*x,*y分别装入观察站的地理坐标,temp装入的是温度信息,*tpx,*tpy分别用作对x,y进行快速排序(tpx[2]=8表示排在第2位的是x[8],rank[8]=2表示x[8]排在第2位)升序,rankx[i]即为最终x[i]的排名。 为了方便计算一个范围内的温度值,定义了一个long long 型的数组sum。算出比点p小的点(不包括点p本身)的所有温度值之和sum,之后范围的四点sum相加减,再对少数点做处理即可得到范围内的温度之和。sum[i][j]表示的是
temp
- c8051f340单片机用10K热敏电阻检测温度,并在终端显示-C8051f340 single-chip 10K thermistor with the detection temperature, and the terminal display
