摘要:
本题要求实现一趟希尔排序函数,待排序列的长度1<=n<=1000。 函数接口定义: void ShellInsert(SqList L,int dk); 其中L是待排序表,使排序后的数据从小到大排列。###类型定义: typedef int KeyType; typedef struct { Key 阅读全文
posted @ 2023-12-21 14:22
不会JAVA的小袁
阅读(62)
评论(0)
推荐(0)
摘要:
本题要求实现直接插入排序函数,待排序列的长度1<=n<=1000。 函数接口定义: void InsertSort(SqList L); 其中L是待排序表,使排序后的数据从小到大排列。###类型定义: typedef int KeyType; typedef struct { KeyType *el 阅读全文
posted @ 2023-12-21 14:21
不会JAVA的小袁
阅读(88)
评论(0)
推荐(0)
摘要:
本题要求实现二路归并排序中的归并操作,待排序列的长度1<=n<=1000。 函数接口定义: void Merge(SqList L,int low,int m,int high); 其中L是待排序表,使排序后的数据从小到大排列。###类型定义: #include<stdio.h> #include< 阅读全文
posted @ 2023-12-21 14:20
不会JAVA的小袁
阅读(52)
评论(0)
推荐(0)
摘要:
本题要求实现堆排序中的筛选函数,待排序列的长度1<=n<=1000。 函数接口定义: void HeapAdjust( HeapType H, int s, int m); 其中L是待排序表,使排序后的数据从小到大排列。###类型定义: typedef int KeyType; typedef st 阅读全文
posted @ 2023-12-21 14:18
不会JAVA的小袁
阅读(64)
评论(0)
推荐(0)
摘要:
本题要求实现快速排序的一趟划分函数,待排序列的长度1<=n<=1000。 函数接口定义: int Partition ( SqList L, int low, int high ); 其中L是待排序表,使排序后的数据从小到大排列。###类型定义: typedef int KeyType; typed 阅读全文
posted @ 2023-12-21 14:16
不会JAVA的小袁
阅读(58)
评论(0)
推荐(0)