DEV Community

Pranish Shrestha
Pranish Shrestha

Posted on

25 Algorithms that all developers should know

Searching Algorithms

  1. Linear search
  2. Binary search
  3. Depth first search
  4. Breath first search

Sorting

  1. Insertion sort
  2. heap sort 3.Counting sort
  3. merge sort
  4. selection sort
  5. Quick sort

Graphs

  1. Kruskal's Algorithm
  2. Les Algorithm
  3. Dijkstra's Algorithm
  4. Bellman Ford Algorithm
  5. Floyd Warshall Algorithm
  6. Topological sort Algorithm
  7. Flood Fill Algorithm

Arrays

  1. kadane's Algorithm
  2. Floyd's Cycle detection Algorithm
  3. KMP Algorithm
  4. Quick select Algorithm
  5. Boyer - more majority vote Algorithm

Basics

  1. Huffman Coding Compression Algorithm
  2. Euclid's Algorithm
  3. Union Find Algorithm

Top comments (0)