Saturday, January 30, 2021

Top 20 Algorithms Every Programmer Should Know

 Searching

1. Linear Search

2. Binary Search

3. Breadth First Search (BFS)

4. Depth First Search (DFS)

Sorting

5. Merge Sort

6. Quick Sort

7. Insertion Sort 

8. Selection Sort 

9. Counting Sort 

10. Heap Sort

11. Topological Sort

12. Kahn’s Topological Sort

Arrays

13. KMP

14. Kadane’s 

15. Quickselect

16. Floyd’s Cycle Detection

17. Boyer–Moore Majority Vote

Basic Algo

18. Euclid’s

19. Union Find

20. Huffman Coding Compression

No comments:

Post a Comment