Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 910 Bytes

algorithms.md

File metadata and controls

52 lines (33 loc) · 910 Bytes

Core Problems

  • Sort
  • Search
  • String processing
  • Graph problems
  • Combinatorial Problems
  • Geometric Problems
  • Numerical Problems

Algorithms

  • Brute Force
  • Divide and Conquer
  • Decrease and Conquer
  • Dynamic Programming
  • Greedy
  • Transfer and Conquer
  • Backtracking
  • Branch and Bound
  • Recursive (DFS, BFS)
  • Randomized

Categories Link

    1. Deterministic vs. Randomized
    1. Offline vs. Online
    1. Exact vs approximate vs. heuristic vs. operational
    1. Example: Approximation algorithm

Note: Binary Search is included in Divide and Conquer

Time complexity

  • log N --- 10 ns
  • N --- 1 us
  • N * log N --- 20 us
  • N ^ 2 --- 1 ms

algorithm categories