Inspiration

What it does

It's an implementation of 3 different sorting algorithms in Python:

Bubble sort Selection sort Insertion sort It also shows how long each method takes (thanks to https://stackoverflow.com/questions/5478351/python-time-measure-function), and also compares it to python's in-built sorted() function for fun!

How we built it

Challenges we ran into

Python passes copies of arrays to functions instead of a reference to the same array, so I had to copy and return the modified arrays. Getting the indexes for the for loops right

Accomplishments that we're proud of

What we learned

What's next for Coding Sorting Algorithms in Python

Research and implement more sorting algorithms Set up a way of generating random lists and testing all the sorting algorithms Program the algorithms in other programming languages (e.g. Ruby)

Built With

Share this project:

Updates