Comparing sorting algorithms
In addition to working on my own programs to keep my coding skills fresh, I also wanted to revise much of what I learned during my BSc Hons Computing course.
In order to practice what I had previously learned about algorithms, I created another web app using HTML, CSS and JavaScript. This app allows the user to generate a list of random numbers, and choose one of three sorting algorithms in order to sort the numbers from smallest to largest.
The choices of sort include Bubble Sort, Insertion Sort, and Quick Sort. These algorithms vary in terms of efficiency and speed, so I decided to include a timer in my app, allowing the user to compare how quickly each sorting algorithm sorts their list of numbers.