Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit afdee46

Browse files
update annotation.
1 parent bf7dfff commit afdee46

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

‎src/main/java/com/example/SortAlgorithms.java‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
import java.util.Arrays;
44

5+
/**
6+
* 八大排序算法实现
7+
*
8+
* 1. 直接插入排序 {@link #insertionSort}
9+
* 2. 希尔排序 {@link #shellSort}
10+
* 3. 简单选择排序 {@link #selectionSort}
11+
* 4. 堆排序 {@link #heapSort}
12+
* 5. 冒泡排序 {@link #bubbleSort}
13+
* 6. 快速排序 {@link #quickSort}
14+
* 7. 归并排序 {@link #mergingSort}
15+
* 8. 基数排序 {@link #radixSort}
16+
*
17+
* 算法测试类见 {@link Test}
18+
* 算法评估分析类见 {@link Bench}
19+
*
20+
*/
521
class SortAlgorithms {
622
public static final boolean ENABLE_PRINT = true;
723

‎src/main/java/com/example/Test.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
public class Test {
99
private static Bench.Function<int[], int[]> algorithm =
1010
// Change to Bench.quickSort or Bench.mergeSort as appropriate.
11-
Bench.shellSort;
11+
Bench.shellSort;// 需要测试的排序算法
1212

1313
private static boolean check(int[] array) {
1414
int[] reference = Arrays.copyOf(array, array.length);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /