GATE CS roadmap
Algorithms
How to design algorithms and prove how fast they are. 6 topics, about 35 hours.
Asymptotic analysis and recurrences
About 6 h.
- Compare growth rates with O, Ω and Θ
- Solve recurrences with the recursion tree and the master theorem
Visualisers: Recurrences
Sorting
About 6 h.
- Trace every classic sort and state its best, worst and average cost
- Say which sorts are stable and in place
- Count comparisons and swaps for a given input
Visualisers: Sorting
Graph traversal
About 5 h.
- Run BFS and DFS and classify every edge
- Find components, detect cycles and topologically sort a DAG
Visualisers: Graph traversal, Strongly connected components
Greedy algorithms and MSTs
About 5 h.
- Run Kruskal's and Prim's and explain the cut property
- Recognise when greedy fails
Visualisers: Minimum spanning tree
Shortest paths
About 5 h.
- Run Dijkstra, Bellman-Ford and Floyd-Warshall by hand
- Say why Dijkstra fails with negative edges
Visualisers: Shortest paths
Dynamic programming
About 8 h.
- Fill LCS, knapsack, edit distance and matrix-chain tables
- Spot overlapping subproblems and write the recurrence
Visualisers: Dynamic programming