test_class.file: base/src/test/java/com/learn/base/algorithm/SortTest.java
test_class.identifier: SortTest
test_case.body: @Test
      public void buildHeapTest() {
          int[] data = {1, 4, 5, 3, 2};
          Sort.buildHeap(data, data.length);
          for (int i : data) {
              System.out.println(i);
          }
      }
test_case.class_method_signature: SortTest.buildHeapTest()
test_case.full_signature: @Test public void buildHeapTest()
test_case.identifier: buildHeapTest
test_case.invocations: buildHeap println
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void buildHeapTest()
focal_class.file: base/src/main/java/com/learn/base/algorithm/Sort.java
focal_class.identifier: Sort
focal_class.class_method_signature: Sort.maopaoSort(int[] data)
focal_class.full_signature: public static void maopaoSort(int[] data)
focal_class.identifier: maopaoSort
focal_class.modifiers: public static
focal_class.parameters: (int[] data)
focal_class.return: void
focal_class.signature: void maopaoSort(int[] data)
focal_class.class_method_signature: Sort.quickSort(int[] data)
focal_class.full_signature: public static void quickSort(int[] data)
focal_class.identifier: quickSort
focal_class.modifiers: public static
focal_class.parameters: (int[] data)
focal_class.return: void
focal_class.signature: void quickSort(int[] data)
focal_class.class_method_signature: Sort.insertSort(int[] data)
focal_class.full_signature: public static void insertSort(int[] data)
focal_class.identifier: insertSort
focal_class.modifiers: public static
focal_class.parameters: (int[] data)
focal_class.return: void
focal_class.signature: void insertSort(int[] data)
focal_class.class_method_signature: Sort.selectSort(int[] data)
focal_class.full_signature: public static void selectSort(int[] data)
focal_class.identifier: selectSort
focal_class.modifiers: public static
focal_class.parameters: (int[] data)
focal_class.return: void
focal_class.signature: void selectSort(int[] data)
focal_class.class_method_signature: Sort.quickSort(int[] data, int left, int right)
focal_class.full_signature: public static void quickSort(int[] data, int left, int right)
focal_class.identifier: quickSort
focal_class.modifiers: public static
focal_class.parameters: (int[] data, int left, int right)
focal_class.return: void
focal_class.signature: void quickSort(int[] data, int left, int right)
focal_class.class_method_signature: Sort.quickSort2(int[] arr, int l, int r)
focal_class.full_signature: public static void quickSort2(int[] arr, int l, int r)
focal_class.identifier: quickSort2
focal_class.modifiers: public static
focal_class.parameters: (int[] arr, int l, int r)
focal_class.return: void
focal_class.signature: void quickSort2(int[] arr, int l, int r)
focal_class.class_method_signature: Sort.heapSort(int[] arr, int node)
focal_class.full_signature: public static void heapSort(int[] arr, int node)
focal_class.identifier: heapSort
focal_class.modifiers: public static
focal_class.parameters: (int[] arr, int node)
focal_class.return: void
focal_class.signature: void heapSort(int[] arr, int node)
focal_class.class_method_signature: Sort.buildHeap(int[] arr, int length)
focal_class.full_signature: public static void buildHeap(int[] arr, int length)
focal_class.identifier: buildHeap
focal_class.modifiers: public static
focal_class.parameters: (int[] arr, int length)
focal_class.return: void
focal_class.signature: void buildHeap(int[] arr, int length)
focal_class.class_method_signature: Sort.adjustHeap(int[] arr, int index, int length)
focal_class.full_signature: public static void adjustHeap(int[] arr, int index, int length)
focal_class.identifier: adjustHeap
focal_class.modifiers: public static
focal_class.parameters: (int[] arr, int index, int length)
focal_class.return: void
focal_class.signature: void adjustHeap(int[] arr, int index, int length)
focal_class.class_method_signature: Sort.swap(int[] arr, int a_index, int b_index)
focal_class.full_signature: public static void swap(int[] arr, int a_index, int b_index)
focal_class.identifier: swap
focal_class.modifiers: public static
focal_class.parameters: (int[] arr, int a_index, int b_index)
focal_class.return: void
focal_class.signature: void swap(int[] arr, int a_index, int b_index)
focal_method.body: public static void buildHeap(int[] arr, int length) {
          for (int i = 0; i < length; i++) {
              adjustHeap(arr, i, length);
          }
      }
focal_method.class_method_signature: Sort.buildHeap(int[] arr, int length)
focal_method.full_signature: public static void buildHeap(int[] arr, int length)
focal_method.identifier: buildHeap
focal_method.invocations: adjustHeap
focal_method.modifiers: public static
focal_method.parameters: (int[] arr, int length)
focal_method.return: void
focal_method.signature: void buildHeap(int[] arr, int length)