Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Sorting Algorithms

This repo includes sorting algorithms such as:

  1. Bogo sort
  2. Selection sort
  3. Bubble sort

Bogo Sort

Bogo sort is basically reshuffling the list until it's sorted. It's not an efficient algorithm to use (O((n+1)!)). resim

Selection Sort

Finding the current minimum number of the list, adding it to the first index of unsorted list, and keep doing it until it's completely sorted. It can be done either swapping indexes or creating a new list. In selection.py, you can see an example of new list creating method resim
image source

Bubble Sort:

This algorithm compares two adjacent elements and swaps them until they are in the intended order. In bubble.py, you can see an example of a sorting algorithm starting from the end of the list and keep towards the beginning. resim
image source

About

Repo that includes some sorting algorithms, written in Python.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages