Skip to content

shehryarx05/Sorting-Algorithm-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains the code and data used in my research comparing the practical performance of four sorting algorithms: bubble sort, selection sort, insertion sort, and merge sort. The code generates random datasets, measures execution times across increasing input sizes, and produces the results shown in my research paper.

Contents

sorting_test.py: sorting functions, timing logic, and data generation

multiple_trials.py: averaged execution times

data.json: recorded execution times from experimental runs

How to run

Install Python 3.10 or later, then run:

sorting_test.py first

multiple_trials.py next

This will create a data folder containing graphs and another folder containing a JSON file.

About

Code Used COMPARATIVE ANALYSIS OF SORTING ALGORITHM SPEEDS AND EFFICIENCY Research

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages