Learn the Algorithm of Search, Sort, Dynamic Programming, Backtracking, Greedy algorithm, Graph algorithms, etc with programming examples.
Sorting Algorithms
- Merge Sort – O(nlog(n))
- Insertion Sort – O(n2)
- Counting Sort – O(n + k)
- Radix Sort – O(n*w)
- Quick Sort – Θ(nlog(n))
- Shell Sort – O(n²)
- Bubble Sort – O(n2)
- Topological Sort – O(V+E)
Search Algorithms
- Linear Search – O(n)
- Binary Search – O(log(n))
Greedy Algorithm
Graph Algorithms
- Breadth-First Search – O(V+E)
- Depth First Search – O(V+E)
- Inorder Traversal
- Inorder, Preorder & Postorder Tree Traversal
- Shortest Path in Unweighted Undirected Graph using BFS – O(V+E)
- Shortest Path in Unweighted Undirected Graph using DFS – O(V+E)
- Shortest Path in Weighted Directed Graph using Bellman-Ford algorithm – O(VE)
- Detect Cycle in a Directed Graph – O(V+E)
- Prim’s Minimum Spanning Tree – O(E*log(E))
Backtracking
- What is Backtracking?
- Ford Fulkerson Algorithm – O(fE)
- N Queen Problem
- Subset Sum Problem
- Graph Coloring Problem
- Sudoku
- Combination of Factors
- Find Shortest Path in a Maze
- Hamiltonian Cycle
Dynamic Programming
- What is Dynamic Programming
- 01 Knapsack Problem using Dynamic Programming
- Coin Change Problem
- Dijkstra’s Shortest Path Algorithm – O(V +Elog(V))
- Bellman-Ford Algorithm – O(VE)
- Matrix Chain Multiplication
- Rod Cutting Problem
Read more articles on Algorithms here.