Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged depth-first-search
1
1 vote
0
0 answers
190
190 views
DFS and Topological Ordering Question (University of California, Berkeley — CS 170)
naveendewangan
190
views
asked
Jul 18
Algorithms
dfs-bfs
topological-sort
algorithms
depth-first-search
directed-acyclic-graph
multiple-selects
+
–
1
1 vote
1
1 answer
166
166 views
UGC NET CSE | December 2025 | Part 2 | Question: 44
Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason RAssertion A: Depth first search can be used to perform a topological s...
Shubham Sharma 2
166
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
graph-algorithms
topological-sort
depth-first-search
data-structures
+
–
1
1 vote
1
1 answer
137
137 views
UGC NET CSE | December 2025 | Part 2 | Question: 45
Which of the following statements about DFS are correct?It can detect cycles in a graphIt can be used to find connected components.It works for both directed and undirect...
Shubham Sharma 2
137
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
depth-first-search
graph-algorithms
graph-theory
algorithms
+
–
6
6 votes
2
2 answers
979
979 views
GATE DA 2026 | Question: 30
Consider a directed graph $G=(V, E)$, where $V$ is the finite set of vertices and $E$ is the set of directed edges between the vertices. $G$ may contain cycles but there ...
gatecse
979
views
asked
Feb 23
Algorithms
gateda-2026
algorithms
graph-algorithms
breadth-first-search
depth-first-search
two-marks
+
–
10
10 votes
5
5 answers
2.3k
2.3k views
GATE CSE 2026 | Set 1 | Question: 40
Consider the following pseudocode for depth-first search (DFS) algorithm which takes a directed graph $G(V, E)$ as input, where $d[v]$ and $f[v]$ are the discovery time a...
gatecse
2.3k
views
asked
Feb 23
Algorithms
gatecse-2026-set1
algorithms
depth-first-search
two-marks
multiple-selects
+
–
1
1 vote
1
1 answer
484
484 views
GATE CSE 2026 | Set 1 | Algorithms | Memory Based | Question 38
Suppose the input directed graph $G(V,E)$ is a DAG. For an edge $(u,v)\in E$, which of the following will NEVER be correct in DFS discovery/finish times?$d[u] < d[v] < f[...
GO Classes
484
views
asked
Feb 12
Algorithms
goclasses
gate2026_cs_set1_memorybased
algorithms
graph-algorithms
depth-first-search
multiple-selects
two-marks
+
–
21
21 votes
6
6 answers
4.9k
4.9k views
GATE DA 2025 | Question: 55
Consider a directed graph $G=(V, E)$, where $V=\{0,1,2, \ldots, 100\}$ and $E=\{(i, j): 0<j-i \leq 2$, for all $i, j \in V\}$. Suppose the adjacency list of each vertex i...
Arjun
4.9k
views
asked
Feb 27, 2025
Algorithms
gateda-2025
algorithms
depth-first-search
numerical-answers
two-marks
+
–
37
37 votes
4
4 answers
15.0k
15.0k views
GATE CSE 2025 | Set 2 | Question: 19
Which of the following statements regarding Breadth First Search (BFS) and Depth First Search (DFS) on an undirected simple graph $G$ is/are TRUE?A DFS tree of $G$ is...
Arjun
15.0k
views
asked
Feb 27, 2025
Algorithms
gatecse2025-set2
algorithms
searching
breadth-first-search
depth-first-search
multiple-selects
one-mark
+
–
0
0 votes
0
0 answers
925
925 views
DFS when removing edges.
Hi everyone.I have a question for everyone as follows:Given a connected undirected graph with N vertices and N edges and an integer K.Print the number of ways to remove e...
Miku221
925
views
asked
Aug 31, 2024
Algorithms
depth-first-search
graph-algorithms
graph-connectivity
graph-theory
+
–
22
22 votes
3
answers
3 answers
12.7k
12.7k views
GATE DS&AI 2024 | Question: 4
Consider performing depth-first search (DFS) on an undirected and unweighted graph $G$ starting at vertex $s$. For any vertex $u$ in $G, d[u]$ is the length of the sh...
Arjun
12.7k
views
asked
Feb 16, 2024
Algorithms
gate-ds-ai-2024
graph-search
depth-first-search
algorithms
one-mark
+
–
21
21 votes
8
8 answers
6.9k
6.9k views
GATE DS&AI 2024 | Question: 34
Consider a state space where the start state is number $1$. The successor function for the state numbered $n$ returns two states numbered $n+1$ and $n+2$. Assume tha...
Arjun
6.9k
views
asked
Feb 16, 2024
Algorithms
gate-ds-ai-2024
algorithms
breadth-first-search
depth-first-search
two-marks
+
–
1
1 vote
1
1 answer
1.0k
1.0k views
Memory Based GATE DA 2024 | Question: 27
Consider performing Depth-First Search (DFS) on an undirected and unweighted graph $\bar{G}$ starting at vertex $S$. For any vertex $u$ in $G$, where $d[u]$ is the length...
GO Classes
1.0k
views
asked
Feb 4, 2024
Algorithms
gate2024-da-memory-based
goclasses
algorithms
graph-algorithms
depth-first-search
+
–
2
2 votes
1
1 answer
776
776 views
Memory Based GATE DA 2024 | Question: 34
BFS DFS question asking the number of nodes expanded BFS = DFSBFS $$ DFSNone
GO Classes
776
views
asked
Feb 4, 2024
Algorithms
gate2024-da-memory-based
goclasses
algorithms
graph-algorithms
depth-first-search
breadth-first-search
+
–
0
0 votes
0
0 answers
447
447 views
how can it have back edges?
pcla
447
views
asked
Jan 27, 2024
Algorithms
algorithms
graph-algorithms
depth-first-search
+
–
3
3 votes
3
3 answers
7.6k
7.6k views
GATE Data Science and Artificial Intelligence 2024 | Sample Paper | Question: 1
Let $\text{b}$ be the branching factor of a search tree. If the optimal goal is reached after $\text{d}$ actions from the initial state, in the worst case, how many times...
admin
7.6k
views
asked
Oct 21, 2023
Others
gateda-sample-paper-2024
depth-first-search
+
–
0
0 votes
2
2 answers
1.2k
1.2k views
mde esy test series
Which of the following statements is/are true?A. In a labelled undirected connected simple graph G, all the depth-first search from same node form same tree.B. In a label...
Himanshu555
1.2k
views
asked
Nov 8, 2022
Algorithms
made-easy-test-series
graph-theory
depth-first-search
graph-algorithms
+
–
2
2 votes
1
1 answer
631
631 views
UGC NET CSE | October 2022 | Part 1 | Question: 44
Consider the following graph : For the graph; the following sequences of depth first search (DFS) are given$\text{abcghf}$$\text{abfchg}$$\text{abfhgc}$$\text{afghbc}$Whi...
admin
631
views
asked
Oct 23, 2022
Graph Theory
ugcnetcse-oct2022-paper1
graph-theory
data-structures
depth-first-search
+
–
0
0 votes
1
1 answer
698
698 views
#Dfs And Bfs
Please list the problems where BFS alone can do and DFS alone can do and both can do??
Subbu.
698
views
asked
Jul 16, 2022
Algorithms
algorithms
breadth-first-search
depth-first-search
+
–
Page:
1
2
3
4
5
next »