Skip to content

amartinsmg/SortingAlgorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithms

This project provides C++ implementations of various sorting algorithms. The implemented algorithms include:

  • Bubble Sort
  • Heap Sort
  • Insertion Sort
  • Merge Sort
  • Quick Sort
  • Selection Sort
  • Shell Sort

Getting Started

To compile and run the test file, follow these steps:

  1. Clone the repository:
git clone https://github.com/amartinsmg/SortingAlgorithms.git
  1. Change to the project directory:
cd SortingAlgorithms
  1. Build the test executable using the provided Makefile:
make test
  1. Execute the test program:
./debug/test

Usage

The test program allows you to evaluate the performance and correctness of the implemented sorting algorithms. It utilizes three distinct arrays of doubles, integers, and long longs, and applies each sorting algorithm to these arrays. The program compares the sorted arrays with pre-sorted arrays to validate the correctness of the algorithms.

Contributing

Contributions are welcome! If you find a bug or have a suggestion for an improvement, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Sorting Algotithms in C++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors