摘要:
算法具体解释请参考算法导论 1 #ifndef QUICKSORT_H 2 #define QUICKSORT_H 3 4 #include <iostream> 5 6 using namespace std; 7 8 9 /*************************************************10 Function: // quick_sort11 Description: // 快速排序实现12 Input: // array: 输入数组13 // begin: 数组待排序前端元素下... 阅读全文
摘要:
#ifndef HEAPSORT_H#define HEAPSORT_H#include <iostream>using namespace std;/*************************************************Function: // build_heapDescription: // 堆性质维护函数Input: // array:输入待排序数组 // num: 待处理数组元素位置 // size: 数组长度Output: // 无Return... 阅读全文