Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/diptangsu/Sorting-Algorithms
/ functions
Functions
423 in github.com/diptangsu/Sorting-Algorithms
⨍
Functions
423
◇
Types & classes
58
↓ 39 callers
Function
print
C/RadixSort.c:42
↓ 35 callers
Method
print
(int arr[], int n)
Java/RadixSort.java:63
↓ 25 callers
Method
print
A utility function to print an array
Kotlin/RadixSort.kt:73
↓ 14 callers
Function
swap
A utility function to swap two elements
Cpp/QuickSort.cpp:5
↓ 12 callers
Method
printSortingTime
(SortType sortType, int[] arr)
Java/AlgorithmComparison.java:48
↓ 10 callers
Method
swap
* * @param arr * The array of elements for swap * @param x * One of the element for swap * @param y * Another element to
Kotlin/IntroSort.kt:97
↓ 7 callers
Method
getPlayer
(int i)
Java/TournamentSort.java:62
↓ 5 callers
Method
getWinners
(int root)
Java/TournamentSort.java:82
↓ 4 callers
Function
bubbleSort
A function to implement bubble sort
Cpp/BubbleSort.cpp:12
↓ 4 callers
Method
getLosers
(int root)
Java/TournamentSort.java:86
↓ 4 callers
Function
partition
This function takes last element as pivot, places the pivot element at its correct position in sorted array, and places all smaller (smaller than pi
Cpp/QuickSort.cpp:17
↓ 4 callers
Function
quickSort
The main function that implements QuickSort arr[] --> Array to be sorted, low --> Starting index, high --> Ending index */
Cpp/QuickSort.cpp:39
↓ 4 callers
Function
sort
C/BogoSort.c:22
↓ 4 callers
Method
sort
(T[] v, Comparator<T> comparator)
Java/TournamentSort.java:19
↓ 3 callers
Method
compareSortingAlgorithms
(int arr[])
Java/AlgorithmComparison.java:32
↓ 3 callers
Function
compare_algorithms
(numbers)
Python/AlgorithmComparisons.py:29
↓ 3 callers
Method
heapSort
(int arr[])
Java/HeapSort.java:20
↓ 3 callers
Function
merge
C/MergeSort.c:38
↓ 3 callers
Function
mergeSort
(arr)
JavaScript/mergeSort.js:3
↓ 3 callers
Method
sort
Kotlin/CountingSort.kt:2
↓ 3 callers
Function
swap
global variable to check if swap() function is called
C/BubbleSort.c:4
↓ 3 callers
Function
timeTaken
(algorithm string, arr []int)
Go/AlgorithmComparison.go:36
↓ 2 callers
Method
Randomize
( int range )
Java/Bozosort.java:33
↓ 2 callers
Method
bitonicSort
This is the Sorting function that iteratively sorts the array @param arr The array/sub-array to be sorted @param start Starting Index to condider
Java/BitonicSort.java:29
↓ 2 callers
Function
bubbleSort
Perform bubbleSort on every alternating element starting from 'start' Returns true if the alternating elements are sorted already, otherwise false.
Cpp/OddEvenSort.cpp:6
↓ 2 callers
Method
bubbleSort
(int arr[])
Java/BubbleSort.java:22
↓ 2 callers
Function
bubble_sort
Author - Aditya Rana Generic Bubble Sort in rust
Rust/BubbleSort.rs:4
↓ 2 callers
Function
bucketSort
C/BucketSort.c:11
↓ 2 callers
Method
calcDepth
@param arr The array of elements @return The maximum recursion depth of array
Java/IntroSort.java:108
↓ 2 callers
Function
cocktail_sort
Author - Aditya Rana Generic Cocktail Sort in rust
Rust/CocktailSort.rs:4
↓ 2 callers
Function
combSort
(arr)
Python/CombSort.py:14
↓ 2 callers
Method
combSort
(int[] arr)
Java/CombSort.java:22
↓ 2 callers
Method
compare
Kotlin/TournamentSort.kt:98
↓ 2 callers
Method
compare
(Integer a, Integer b)
Java/TournamentSort.java:139
↓ 2 callers
Method
compex
(int num1, int num2)
Java/Bozosort.java:41
↓ 2 callers
Function
countSort
C/RadixSort.c:12
↓ 2 callers
Function
counting_sort
counting sort for collections of u32 O(n + maxval) in time, where maxval is the biggest value an input can possibly take
Rust/CountSort.rs:5
↓ 2 callers
Function
cycleSort
* Sort an array in place and return the number of writes. */
C/CycleSort.c:10
↓ 2 callers
Method
cycleSort
(int arr[], int n)
Java/CycleSort.java:15
↓ 2 callers
Function
display
Cpp/ShellSort.cpp:10
↓ 2 callers
Function
doFlip
C/PancakeSort.c:34
↓ 2 callers
Function
flip
(arr, i)
Python/PancakeSort.py:8
↓ 2 callers
Method
flip
(int arr[], int i)
Java/PancakeSort.java:8
↓ 2 callers
Function
getMax
C/RadixSort.c:3
↓ 2 callers
Function
getNextGap
(gap float64)
Go/CombSort.go:5
↓ 2 callers
Method
gnomeSort
Kotlin/GnomeSort.kt:33
↓ 2 callers
Method
gnomeSort
(int arr[])
Java/GnomeSort.java:35
↓ 2 callers
Method
heapAdjust
(int arr[], int i, int n)
Java/HeapSort.java:38
↓ 2 callers
Function
heapSort
main function to do heap sort
Cpp/HeapSort.cpp:32
↓ 2 callers
Method
heapSort
Kotlin/HeapSort.kt:20
↓ 2 callers
Function
heap_sort
Generic Implementation of heap sort in rust
Rust/HeapSort.rs:3
↓ 2 callers
Function
heapify
To heapify a subtree rooted with node i which is an index in arr[]. n is size of heap
Cpp/HeapSort.cpp:7
↓ 2 callers
Function
heapify
(arr, n, root)
Python/HeapSort.py:7
↓ 2 callers
Function
heapify
(arr []int, i, n int)
Go/heapsort.go:36
↓ 2 callers
Function
insertionSort
Cpp/Timsort.cpp:5
↓ 2 callers
Method
insertionSort
(int arr[])
Java/InsertionSort.java:22
↓ 2 callers
Function
insertion_sort
Author - Aditya Rana Generic Insertion Sort in rust
Rust/InsertionSort.rs:4
↓ 2 callers
Method
introSort
@param arr The array of elements @param low The lowest array index to sort @param high The highest array index to sor
Java/IntroSort.java:35
↓ 2 callers
Method
isPlayer
(int i)
Java/TournamentSort.java:116
↓ 2 callers
Function
maxHeap
(input, i)
JavaScript/HeapSort.js:1
↓ 2 callers
Method
mergeSort
(int arr[], int lower, int upper)
Java/MergeSort.java:20
↓ 2 callers
Function
minimum
(a, b int)
Go/timsort.go:68
↓ 2 callers
Function
move_down
(arr: &mut [T], mut root: usize)
Rust/HeapSort.rs:19
↓ 2 callers
Function
printArray
Cpp/OddEvenSort.cpp:40
↓ 2 callers
Function
printArray
Cpp/Timsort.cpp:86
↓ 2 callers
Function
printArray
Cpp/TimSort.cpp:91
↓ 2 callers
Function
printArray
C/PancakeSort.c:47
↓ 2 callers
Method
printArray
(int arr[], int arr_size)
Java/PancakeSort.java:47
↓ 2 callers
Method
printSequence
(int[] sortedSequence)
Java/BucketSort.java:27
↓ 2 callers
Method
printSequence
(int[] sortedSequence)
Java/TimSort.java:24
↓ 2 callers
Method
printSequence
(int[] sortedSequence)
Java/GnomeSort.java:29
↓ 2 callers
Method
quickSort
@param arr The array/sub-array to be sorted @param lower lower index @param upper upper index
Java/QuickSort.java:26
↓ 2 callers
Function
quick_sort
Author - Aditya Rana Generic Quick Sort in rust
Rust/QuickSort.rs:4
↓ 2 callers
Function
radixsort
The main function to that sorts arr[] of size n using Radix Sort
C/RadixSort.c:34
↓ 2 callers
Method
randomInts
(int n)
Java/TournamentSort.java:26
↓ 2 callers
Function
selectionSort
Cpp/SelectionSort.cpp:11
↓ 2 callers
Method
selectionSort
(int arr[])
Java/SelectionSort.java:22
↓ 2 callers
Function
selection_sort
Implementation of Selection sort in rust
Rust/SelectionSort.rs:2
↓ 2 callers
Method
setMatch
(int root, int winner, int winners, int losers)
Java/TournamentSort.java:90
↓ 2 callers
Method
setWinner
(int root, int winner)
Java/TournamentSort.java:66
↓ 2 callers
Method
setWinners
(int root, int winners)
Java/TournamentSort.java:70
↓ 2 callers
Function
shellSort
Cpp/ShellSort.cpp:16
↓ 2 callers
Method
shellSort
(int[] nums)
Java/ShellSort.java:21
↓ 2 callers
Function
shell_sort
Author - Aditya Rana Generic Shell Sort in rust
Rust/ShellSort.rs:4
↓ 2 callers
Function
showArray
C/CycleSort.c:89
↓ 2 callers
Function
shuffle
C/BogoSort.c:12
↓ 2 callers
Method
sort
Kotlin/TournamentSort.kt:106
↓ 2 callers
Method
sort
The main method. @param array a generic collection to be sorted. @param left the begin of the order. @param right the end of the order.
Java/ThreeWayQuickSort.java:19
↓ 2 callers
Function
swap
(input, indexA, indexB)
JavaScript/HeapSort.js:15
↓ 2 callers
Method
swap
Kotlin/ThreeWayQuickSort.kt:73
↓ 2 callers
Method
swap
@param arr The array of elements for swap @param x One of the element for swap @param y Another element to swap
Java/IntroSort.java:96
↓ 2 callers
Method
swap
(int[] array, int i, int j)
Java/OddEvenSort.java:41
↓ 2 callers
Method
swap
The swap method. @param array a generic collection. @param i the index of the element that will be swapped with the j-element. @param j the index of
Java/ThreeWayQuickSort.java:72
↓ 2 callers
Method
time
(String description, Runnable action, InstrumentedCompare compare)
Java/TournamentSort.java:34
↓ 1 callers
Function
BubbleSort
(arr []int)
Go/bubblesort.go:22
↓ 1 callers
Function
BucketSort
(arr []int)
Go/bucketsort.go:22
↓ 1 callers
Function
HeapSort
(arr []int)
Go/heapsort.go:22
↓ 1 callers
Function
InsertionSort
(arr []int)
Go/insertionsort.go:22
↓ 1 callers
Function
Merge
A function to merge the two half into a sorted data.
Cpp/MergeSort.cpp:6
↓ 1 callers
Function
MergeSort
A function to split array into two parts.
Cpp/MergeSort.cpp:57
next →
1–100 of 423, ranked by callers