Skip to content

TheRyanMajd/sorting-algorithms

Repository files navigation

sorting-algorithms

Authors: Ryan Majd & Maulik Durani
Emails: [email protected] & [email protected]

Overview

This repository contains the implementation of Algoithms covered in-class in Java. The project is part of the CS2720 (Data Structures) course, taught by Dr. Jin Lu.

Programming Report 2 Graph

Located in the programming-assignment-4-report.pdf file.

How To Compile

The Program

To compile the Java program, you can use the following command:

java -cp bin src/cs2720/p4/Driver.java resources/"fileName.txt"

Where fileName.txt refers to whichever input file you choose! Additionally, you can also use the provided compile.sh and run.sh script for compilation and running. Keep in mind that run.sh automatically uses the random.txt from the resources folder

./compile.sh
./run.sh

The Data from Report 2: SortingExperiment.java

To compile the Java program, you can use the following command:

java -cp bin src/cs2720/p4/SortingExperiment.java

When run, the program asks for the number of input size and simulates everything needed in the table for report question 2 as well as the amount for the n number of size. Input is a random number between (0,9999) inclusive.

Make sure to have the necessary Java environment set up on your machine.

Available Commands

selection-sort (s)
merge-sort (m)
heap-sort (h)
quick-sort-fp (q)
quick-sort-rp (r)

Contributions

Ryan Majd: Implemented scafolded template of the program, the second half of the report, Algo-efficiency Graph, readme.md, SortingExperiment.java.

Maulik Durani: Implemented the Algorithms structure, Sorting.java and completed first half of the report.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published