Skip to content

C++ code implements various sorting algorithms and measures their performance

Notifications You must be signed in to change notification settings

SarahAbuirmeileh/SortingAlgorithmsAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithm Performance Comparison 🔥

This C++ code implements various sorting algorithms and measures their performance using the high_resolution_clock from the library. The sorting algorithms included in this code are:

  1. Quick sort
  2. Bubble sort
  3. Insertion sort
  4. Selection sort
  5. Merge sort

The main purpose of this code is to compare the execution time of these sorting algorithms when sorting an array of randomly generated integers.

After running the code, the user can analyze the execution time of each sorting algorithm and compare their performance. Lower execution time indicates better performance in terms of speed.

Chart Representation:

To visualize the time differences between the sorting algorithms, a chart can be created using the data obtained from running the code. The x-axis can represent the sorting algorithms, and the y-axis can represent the time taken for each algorithm in nanoseconds.

My results



image



image

Releases

No releases published

Packages

No packages published

Languages