See how sorting algorithms work step by step.
- Bubble Sort
- Linear Search
- Binary Search
- Selection Sort
- Insertion Sort
-
Open the project using any Java IDE.
-
Pick which algorithm do you want to see and comment out the other.
public static void main(String[] args){
ArrayStructures newArray = new ArrayStructures();
newArray.generateRandomArray();
newArray.printHorzArray(-1,-1);
// newArray.linearSearchForValue(10);
newArray.bubbleSort();
// We must Sort first
// newArray.binarySearchForValue(17);
// newArray.selectionSort();
// newArray.insertionSort();
}