16 Qs · since 2014 · 24 marks · 1 marks/paperStandard yield
GATE tests Graph Traversals (BFS and DFS) through deep theoretical properties rather than simple code tracing. Key emphases include edge classification (tree, back, forward, cross… Guide
someAlgo that takes an undirected graph as input.
someAlgo(G)
1. Let be any vertex in . Run BFS on starting at . Let be a vertex in at maximum distance from as given by the BFS.
2. Run BFS on again with …Topic guide
GATE tests Graph Traversals (BFS and DFS) through deep theoretical properties rather than simple code tracing. Key emphases include edge classification (tree, back, forward, cross edges), timestamp intervals via the Parenthesis Theorem, DAG topological orderings, and structural invariants like the BFS level difference inequality and tree height versus graph diameter. Recent papers heavily favor MSQs and multi-property conceptual deductions over simple single-answer lookups.
DFS Edge Classification and Parenthesis Theorem
common · MSQ · 2 marks · 2026, 2025, 2024, 2021
Evaluating valid/invalid discovery and finishing timestamp orderings or identifying tree/back/forward/cross edge counts in directed graphs vs DAGs vs undirected graphs.
BFS Metric and Distance Properties
common · mixed · 1.5 marks · 2025, 2017, 2015, 2014
Questions leveraging BFS shortest path properties, level bounds for non-tree edges (), queue order validation, and graph diameter vs BFS tree height bounds.
Topological Sort Existence and Counting
common · mixed · 1 marks · 2021, 2016, 2014
Determining valid topological sort sequences, counting possible topological orderings for independent DAG paths via multiset permutations, or checking DAG cycle conditions.
Graph Connectivity and DFS Tree Structures (Articulation Points, SCCs, 2-Colorability)
common · MSQ · 2 marks · 2026, 2025, 2021, 2014
Analyzing structural components identified by traversals: root/leaf articulation point conditions in DFS trees, transpose graph SCC invariance, bipartite 2-coloring, and tree diameter algorithms.
Traversal Complexity and Maximum Recursion Depth
occasional · mixed · 1 marks · 2026, 2014
Analyzing runtime under adjacency list vs adjacency matrix , or finding worst-case DFS stack/recursion depth in specific graph topologies.
BFS Edge Distance Inequality
Determining possible level differences between endpoints of any edge in an unweighted undirected BFS tree.
BFS Tree Height vs Graph Diameter
Finding lower bounds on the height of any BFS tree given the maximum pairwise shortest distance in an undirected graph.
Independent DAG Chains Topological Sort Count
Counting distinct topological orderings when intermediate DAG components form disjoint independent linear chains.
DFS Timestamp Interval Inclusion (Parenthesis Theorem)
Relating ancestor/descendant relationships and classifying tree/back/forward edges using discovery and finish timestamps.
DFS / BFS Time Complexity
Evaluating algorithm runtimes for connectivity, topological sorting, and 2-colorability under various representations.
Shift from direct 1-mark MCQs (e.g., matrix traversal asymptotic runtime, direct queue orders) to rigorous 2-mark MSQs exploring edge incompatibilities (e.g., why a tree cannot be both BFS and DFS when forward edges exist).
2026, 2025, 2024, 2021, 2014
Introduction of analytical graph metric problems, combining BFS properties with metric graph theory concepts such as tree height vs diameter and two-sweep diameter algorithms.
2025
Deepening emphasis on formal DFS timestamp interval definitions () rather than manual hand-execution traces.
2026
Easy questions ask for standard traversal complexities ( for matrix), basic queue ordering checks, or topological sort verification on small DAGs. Medium questions involve DFS timestamp interval logic, MSQ edge classification across directed vs undirected graphs, articulation point structural rules, BFS non-tree edge constraints, and diameter-to-height bounds.