Skip to content

onnple/sortingalgorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

排序算法(Sorting Algorithms)

内部排序和外部排序算法,原文地址:

排序算法说明

1、选择排序

extern void selection_sort(int array[], int n);

2、冒泡排序

extern void bubble_sort(int array[], int n);

3、插入排序

extern void insertion_sort(int array[], int n);

4、希尔排序

extern void shell_sort(int array[], int n);

5、堆排序

extern void heap_sort(int array[], int n);

6、归并排序

extern void merge_sort(int array[], int n);

7、快速排序

extern void quick_sort(int array[], int n);

8、桶排序

extern void bucket_sort(int array[], int n);

9、外部排序

extern void external_sort(char *input, char *output, int runs, int run_size);

Releases

No releases published

Packages

No packages published

Languages