pncsoares / sort-algorithms

Sort algorithms πŸ”’

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sort algorithms

This repository aims to demonstrate sort algorithms in multiple languages.

Which types of sort algorithms exists?

With code examples

Algorithm Information Language
Quick sort Go to detail πŸ“„ C#
Insertion sort Go to detail πŸ“„ C#
Bubble sort Go to detail πŸ“„ C#
Heap sort Go to detail πŸ“„ C#
Selection sort Go to detail πŸ“„ C#
Merge sort Go to detail πŸ“„ C#

To do

  • Iterative Merge Sort
  • Iterative Quick Sort
  • Counting Sort
  • Radix Sort
  • Bucket Sort
  • ShellSort
  • TimSort
  • Comb Sort
  • Pigeonhole Sort
  • Cycle Sort
  • Cocktail Sort
  • Strand Sort
  • Bitonic Sort
  • Pancake sorting
  • Binary Insertion Sort
  • BogoSort or Permutation Sort
  • Gnome Sort
  • Sleep Sort – The King of Laziness / Sorting while Sleeping
  • Structure Sorting (By Multiple Rules) in C++
  • Stooge Sort
  • Tag Sort (To get both sorted and original)
  • Tree Sort
  • Cartesian Tree Sorting
  • Odd-Even Sort / Brick Sort
  • QuickSort on Singly Linked List
  • QuickSort on Doubly Linked List
  • 3-Way QuickSort (Dutch National Flag)
  • Merge Sort for Linked Lists
  • Merge Sort for Doubly Linked List
  • 3-way Merge Sort

Technologies

Setup

Clone repository

Create and go to the directory where you want to place the repository

  cd my-directory

Clone the project

  git clone https://github.com/pncsoares/sort-algorithms.git

Go to the project directory

  cd sort-algorithms

Build

  dotnet build SortAlgorithms

Execute tests

  dotnet test SortAlgorithms.Tests

License

MIT

About

Sort algorithms πŸ”’

License:MIT License


Languages

Language:C# 100.0%