Seeing Sorting

By Jackson Hammond

Learning sorting is hard. The algorithms and their Big-O notation take lots of practice to understand, but all new CS students need to learn them. It's like eating your vegetables 🥕🥦🌽🥬

Use this tool to help with those studies. It uses bar charts to illustrate data arrays as they're being sorted. Array elements that are being compared are purple, and elements being swapped are green. The line charts help show both the time and the cost an algorithm takes to sort an array.

Details of an Algorithm

Choose an algorithm below to read more about how it works, view its pseudo code, and watch it sort an array step by step.

Algorithm Comparison

Choose two algorithms below and click "Compare" to watch how their performance compares to one another. Once they're both completed click "Reset" to shuffle the arrays and start again.

/