SORTING &
BIG O NOTATION
Organizing chaotic data into sequential order is one of the most thoroughly studied problems in computer science. How you sort your data dictates how fast your database can search, query, and retrieve information.
Time Complexity
Not all algorithms are created equal. We measure the efficiency of an algorithm using Big O Notation, which describes how the runtime scales as the dataset grows larger.
Divide and Conquer
The algorithms waste time comparing elements that are already relatively sorted. To reach speeds, we must use recursion.
Try running Selection Sort, randomizing the array, and then running Merge Sort. The difference in speed and strategy is incredibly obvious when visualized.
Sorting Visualizer
Efficiency Comparison
Further Optimization
Move beyond comparative sorting to explore memory constraints and integer keys.