"Section 6: Searching & Sorting — Easy/Medium"

📚 Vanakkam DSA Course (24 sections) · Hope AI — ML & DS Course

Overview

Core searching and sorting algorithms every developer must know — from brute-force linear search to efficient merge sort.


Lessons

#Lesson NameDurationNotes
1Linear Search8m 8s
2Binary Search39m 24s
3Bubble Sort48m 22s
4Selection Sort19m 43s
5Insertion Sort34m 22s
6Merge Sort1h 34m 19s

Lesson Checklist

  • [ ] Linear Search (8m 8s)
  • [ ] Binary Search (39m 24s)
  • [ ] Bubble Sort (48m 22s)
  • [ ] Selection Sort (19m 43s)
  • [ ] Insertion Sort (34m 22s)
  • [ ] Merge Sort (1h 34m 19s)

My Notes

Add your personal notes, key takeaways, and insights here as you progress through the section.

Algorithm Complexity Summary

AlgorithmBestAverageWorstSpace
Linear SearchO(1)O(n)O(n)O(1)
Binary SearchO(1)O(log n)O(log n)O(1)
Bubble SortO(n)O(n²)O(n²)O(1)
Selection SortO(n²)O(n²)O(n²)O(1)
Insertion SortO(n)O(n²)O(n²)O(1)
Merge SortO(n log n)O(n log n)O(n log n)O(n)

Problem Notes

Binary Search

  • Requires sorted array
  • Template:

Merge Sort

  • Divide and conquer
  • Stable sort