摘要: 快速排序主要是分治的思想,找到枢轴元素,并递归的找两边的枢轴元素,直至有序 #include<stdio.h> void QuickSort(int A[],int low,int high){ int l=low,h=high; if(low<high){ int pivot=A[low];//将 阅读全文
posted @ 2022-12-06 22:22 敲出未来,未来可期 阅读(7) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include <math.h> typedef int ElemType; void SelectSort(ElemType A[],int n){ int t,min,i=0,j=0,flag; for( i=0;i<=n-1;i++){ min=i; fl 阅读全文
posted @ 2022-12-06 21:35 敲出未来,未来可期 阅读(13) 评论(0) 推荐(0)