Skip to content

This library contains a few sorting algorithms for Java with corresponding outputs to compare sort runs and times with other sorting algorithms

License

Notifications You must be signed in to change notification settings

lpj-app/java-sorting-algorithms-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Sorting Algorithms Library

A library of various sorting algorithms implemented in Java.

Table of Contents

Features

  • Easy to use with a simple API.
  • Sorts different lists of different data types with intermediate steps and visual end result

Supported lists, datatypes and algorithms

Datatypes:

  • Integer
  • Double
  • Float
  • Long

List types:

  • Array
  • ArrayList

List of all implemented algorithms:

  • Bubblesort
  • Selectionsort
  • Insertionsort
  • Bogosort
  • Quicksort
  • Heapsort

Screenshots

image

image

image

Installation

To use the Java Sorting Algorithms Library in your project, follow these steps:

  1. Downlaod the jar file from here
  2. Create a new folder in your workspace called lib

image

  1. CTRL X+CTRL V the .jar file from your download folder into the lib folder

image

  1. Click on your project, then ALT+ENTER to enter the properties of the project
    4.1 Click on Java Build Path on the left and then on Libraries in the upper right corner

    image

    4.2 Click Add JARs on the right, browse to the Lib folder in the project and select the JAR file

    image

    4.3 finally press Apply and close

Usage

To sort an array of integers using bubble sort:

image

Credits

License

Apache License Version 2.0 - For more Information check the License

About

This library contains a few sorting algorithms for Java with corresponding outputs to compare sort runs and times with other sorting algorithms

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages