bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
Learn/DSA

DSA

Time Complexity

Big O analysis applied back to the sorting algorithms already covered, so runtime tradeoffs become concrete.

Lesson 1

DSA Time Complexity

To fully understand algorithms we must understand how to evaluate the time an algorithm needs to do its job, the runtime.

Read lesson →Loading…
Lesson 2

DSA Bubble Sort Time Complexity

See the earlier lesson for a general explanation of what time complexity is.

Read lesson →Loading…
Lesson 3

DSA Selection Sort Time Complexity

The Selection Sort algorithm goes through all elements in an array, finds the lowest value, and moves it to the front of the array, and does this over and over until the array is sorted.

Read lesson →Loading…
Lesson 4

DSA Insertion Sort Time Complexity

The worst case scenario for Insertion Sort is if the array is already sorted, but with the highest values first. That is because in such a scenario, every new value must "move through" the whole…

Read lesson →Loading…
Lesson 5

DSA Quicksort Time Complexity

The Quicksort algorithm chooses a value as the 'pivot' element, and moves the other values so that higher values are on the right of the pivot element, and lower values are on the left of the pivot…

Read lesson →Loading…
Lesson 6

DSA Counting Sort Time Complexity

Counting Sort works by first counting the occurrence of different values, and then uses that to recreate the array in a sorted order.

Read lesson →Loading…
Lesson 7

DSA Radix Sort Time Complexity

The Radix Sort algorithm sorts non negative integers, one digit at a time.

Read lesson →Loading…
Lesson 8

DSA Merge Sort Time Complexity

The Merge Sort algorithm breaks the array down into smaller and smaller pieces.

Read lesson →Loading…
Lesson 9

DSA Linear Search Time Complexity

Linear Search compares each value with the value it is looking for. If the value is found, the index is returned, and if it is not found -1 is returned.

Read lesson →Loading…
Lesson 10

DSA Binary Search Time Complexity

Binary Search finds the target value in an already sorted array by checking the center value. If the center value is not the target value, Linear Search selects the left or right sub-array and…

Read lesson →Loading…

DSA chapters

All
1. DSA Tutorial2. Arrays3. Linked Lists4. Stacks & Queues5. Hash Tables6. Trees7. Graphs8. Shortest Path9. Minimum Spanning Tree10. Maximum Flow11. Time Complexity12. DSA Reference13. Practice