Skip to content

Ephraim67/sorting_algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithms

This repository contains implementations of various sorting algorithms. Written in C, it aims to make the user understand more about time complexity of some sorting algorithms. Sorting algorithms are essential tools in computer science and are used to arrange elements of a list in a specific order.

Algorithms Included

  1. Bubble Sort: A simple comparison-based algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.
  2. Insertion Sort: Another simple comparison-based algorithm that divides the input list into two parts: a sorted sublist and an unsorted sublist, and repeatedly selects the smallest (or largest) element from the unsorted sublist and moves it to the sorted sublist.
  3. Selection Sort: An efficient comparison-based algorithm that builds the final sorted list one item at a time, by repeatedly taking the next element from the input list and inserting it into its correct position in the already sorted part of the list.
  4. Quick Sort: Another divide-and-conquer algorithm that picks an element as a pivot and partitions the input list around the pivot, recursively sorting each partition.

Usage

Each algorithm implementation is provided in its respective file along with documentation instructions on how to use it.

Contributing

Contributions to this repository are welcome! If you would like to add a new sorting algorithm or improve an existing implementation, please follow these steps:

  1. Fork this repository.
  2. Create a new branch (git checkout -b feature/new-algorithm).
  3. Make your changes and commit them (git commit -am 'Add new algorithm').
  4. Push to the branch (git push origin feature/new-algorithm).
  5. Create a new pull request.

Authors

This repository was authored by:

  1. Norbert Ephraim
  2. Christiana Apinoko

License

This project is licensed under the MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages