Skip to content

AhnafAhmed13/CS323-Project1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

CSCI 323 Design and Analysis of Algorithms

Project 1: Sorting Algorithms Analysis Project

Objective: Showcase and compare the performance between various sorting algorithms at different input sizes.

Language: Java

Implementation:

  • Created arrays of various sizes with random sets of integers as their elements.
  • Created sorting algorithms (Heap sort, Quick sort, Insertion sort) as separate classes.
  • Used wrapper functions to choose between regular and modified versions of the algorithms.
  • Ran a large number of simulations for each algorithm with various array sizes to get a probabilistic numerical approximation of their runtime.
  • Collected data from all simulations and calculated their average time, comparisons, and swaps.
  • Displayed the results as the program output.

Outcome:

A Java program showcasing various sorting algorithms with their average runtime, average number of comparisons, and average number of swaps. Some patterns emerge during the simulations to portray a clearer picture of the behaviors of each sorting algorithm.

About

Sorting Algorithms Analysis in Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages