dooleyb1 / SortingAlgorithms

Java implementation of the sorting algorithms; Insertion Sort, Quick Sort, Merge Sort, Shell Sort, Selection Sort, Bubble Sort.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SortingAlgorithms

Java implementation of several sorting algorithms;

Usage

To begin with compile all java files.

make

Perform Insertion Sort.

make insertion

Perform Quick Sort.

make quick

Perform Merge.

make merge

Perform Shell Sort.

make shell

Perform Selection Sort.

make selection

Perform Bubble Sort.

make bubble

Example

make insertion

Enter an array of doubles seperated by commas (e.g 1.3, 283.3, 39.0) :
1.3, 2819.1, 38191.3, 128.2, 3945.7, 181203.1

Sorted Array (Insertion Sort):
[1.3, 128.2, 2819.1, 3945.7, 38191.3, 181203.1]

About

Java implementation of the sorting algorithms; Insertion Sort, Quick Sort, Merge Sort, Shell Sort, Selection Sort, Bubble Sort.

License:MIT License


Languages

Language:Java 99.1%Language:Makefile 0.9%