GATE CS 2023 · Graph Traversals (BFS & DFS)

NAT · 2 marks · Problem PROG-GRPH-0045

Let \(U = \{1, 2, 3\}\). Let \(2^U\) denote the powerset of \(U\). Consider an undirected graph \(G\) whose vertex set is \(2^U\). For any \(A,B \in 2^U, (A,B)\) is an edge in \(G\) if and only if (i) \(A \neq B\), and (ii) either \(A \subseteq B\) or \(B \subseteq A\). For any vertex \(A\) in \(G\), the set of all possible orderings in which the vertices of \(G\) can be visited in a Breadth First Search (BFS) starting from \(A\) is denoted by \(B(A)\).If \(\phi\) denotes the empty set, then the cardinality of \(B(\phi )\) is .

Numerical answer (NAT).

Solve it on GATE DA practice →More Graph Theory & Algorithms problems

Show the worked solutionOfficial GATE Answer Key: [5040.0, 5040.0].See full step-by-step discussion on GateOverflow: https://gateoverflow.in/399265/gate-cse-2023-question-46

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com