Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged graph-search
15
15 votes
5
5 answers
10.3k
10.3k views
GATE CSE 2025 | Set 2 | Question: 49
Consider the following algorithm someAlgo that takes an undirected graph $G$ as input. ...
admin
10.3k
views
asked
Feb 27, 2025
Algorithms
gatecse2025-set2
algorithms
breadth-first-search
graph-search
numerical-answers
two-marks
+
–
3
3 votes
1
1 answer
380
380 views
GO Classes Test Series | Data Structures and Algorithms | Basic graph algorithms: traversals and Shortest path | Question: 3
Let $\text{G = (V, E)}$ be a simple undirected graph, and $s$ be a particular vertex in it called the source. For $x \in \text{V},$ let $d(x)$ denote the shortest distanc...
GO Classes
380
views
asked
Oct 16, 2024
Algorithms
goclasses_da_dsa_tw6
goclasses
algorithms
graph-search
breadth-first-search
one-mark
multiple-selects
+
–
19
19 votes
3
answers
3 answers
12.4k
12.4k 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.4k
views
asked
Feb 16, 2024
Algorithms
gate-ds-ai-2024
graph-search
depth-first-search
algorithms
one-mark
+
–
42
42 votes
8
8 answers
21.1k
21.1k views
GATE CSE 2024 | Set 1 | Question: 35
Let $G$ be a directed graph and $T$ a depth first search $\text{(DFS)}$ spanning tree in $G$ that is rooted at a vertex $v$. Suppose $T$ is also a breadth first searc...
Arjun
21.1k
views
asked
Feb 16, 2024
Algorithms
gatecse-2024-set1
algorithms
multiple-selects
graph-search
two-marks
+
–
46
46 votes
14
14 answers
22.5k
22.5k views
GATE CSE 2024 | Set 1 | Question: 50
The number of edges present in the forest generated by the $\text{DFS}$ traversal of an undirected graph $G$ with $100$ vertices is $40$. The number of connected componen...
Arjun
22.5k
views
asked
Feb 16, 2024
Algorithms
gatecse-2024-set1
numerical-answers
graph-search
graph-algorithms
two-marks
+
–
0
0 votes
1
1 answer
739
739 views
UGCNET CSE December 2022: 41
Consider the following statements:$\text{P}$: There exists no simple, undirected and connected graph with $80$ vertices and $77$ edges.$\text{Q}$: All vertices of Euler g...
admin
739
views
asked
May 20, 2023
Others
ugcnetcse-dec2022
graph-algorithms
graph-connectivity
euler-graph
bipartite-graph
graph-planarity
graph-coloring
graph-isomorphism
graph-matching
graph-search
degree-of-graph
eigen-value
+
–
56
56 votes
4
4 answers
19.2k
19.2k views
GATE CSE 2023 | Question: 46
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$...
admin
19.2k
views
asked
Feb 15, 2023
Algorithms
gatecse-2023
algorithms
breadth-first-search
numerical-answers
two-marks
graph-search
+
–
0
0 votes
1
answers
1 answer
2.0k
2.0k views
NPTEL Assignment Question
Consider the following strategy to solve the single source shortest path problem with edge weights from source s.1. Replace each edge with weight w by w edges of weight 1...
rsansiya111
2.0k
views
asked
Dec 8, 2021
Algorithms
nptel-quiz
shortest-path
graph-search
graph-algorithms
+
–
1
1 vote
2
2 answers
3.4k
3.4k views
MadeEasy Test Series: Algorithms - Graph Algorithms
Which of the following statement is true?For a directed graph, the absence of back edges in a DFS tree can have cycle.If all edge in a graph have distinct weight then the...
Abhishek Kumar 38
3.4k
views
asked
Jan 4, 2019
Algorithms
made-easy-test-series
algorithms
graph-search
graph-algorithms
+
–
1
1 vote
4
4 answers
5.1k
5.1k views
algorithm
In the following graph, discovery time stamps and finishing time stamps of Depth First Search (DFS) are shown as x/yx/y, where x is discovery time stamp and y is finishin...
eyeamgj
5.1k
views
asked
May 10, 2018
Algorithms
depth-first-search
graph-algorithms
graph-search
+
–
0
0 votes
1
1 answer
748
748 views
Self Doubt
How can we distinguish b/w back edge, the forward edge and cross edge in BFS or DFS traversal in Graphs?
Durgesh Singh
748
views
asked
Apr 29, 2018
Algorithms
algorithms
graph-theory
graph-search
+
–
78
78 votes
7
answers
7 answers
44.8k
44.8k views
GATE CSE 2018 | Question: 30
Let $G$ be a simple undirected graph. Let $T_D$ be a depth first search tree of $G$. Let $T_B$ be a breadth first search tree of $G$. Consider the following statements.No...
gatecse
44.8k
views
asked
Feb 14, 2018
Algorithms
gatecse-2018
algorithms
graph-algorithms
graph-search
normal
two-marks
+
–
0
0 votes
1
1 answer
1.0k
1.0k views
Test Series
Please explain why first option is wrong Question: 12Choose the true statement.1.Preorder traversal of tree resembles the depth first search of the graph.2.Inorder traver...
Diksha Aswal
1.0k
views
asked
Dec 4, 2017
Algorithms
test-series
graph-theory
graph-search
+
–
1
1 vote
1
1 answer
701
701 views
Discrete
Consider the following graph:What is maximum depth of recursive calls for processing graph by using DFS?5678
Kuldeep Pal
701
views
asked
Jul 16, 2017
Algorithms
graph-algorithms
depth-first-search
graph-search
test-series
+
–
2
2 votes
1
1 answer
956
956 views
#GRAPH_ALGORITHM
I want to know in which condition we should apply BFS and DFS for GRAPH Search ? And why?
Akashsaha
956
views
asked
May 5, 2017
Algorithms
graph-algorithms
graph-search
+
–
40
40 votes
5
answers
5 answers
13.2k
13.2k views
GATE CSE 2017 | Set 2 | Question: 15
The Breadth First Search (BFS) algorithm has been implemented using the queue data structure. Which one of the following is a possible order of visiting the nodes in the ...
Madhav
13.2k
views
asked
Feb 14, 2017
Algorithms
gatecse-2017-set2
algorithms
graph-algorithms
graph-search
+
–
5
5 votes
1
1 answer
6.1k
6.1k views
Testbook live Testseries
Which of the following statements are false ?$1.$ A depth-first search of a directed graph always produces the same number of tree edges (i.e., independent of the order i...
Akriti sood
6.1k
views
asked
Jan 23, 2017
Algorithms
graph-search
shortest-path
testbook-test-series
+
–
20
20 votes
4
answers
4 answers
8.6k
8.6k views
GATE CSE 1989 | Question: 4-vii
In the graph shown above, the depth-first spanning tree edges are marked with a $’ T’$. Identify the forward, backward, and cross edges.
Misbah Ghaya
8.6k
views
asked
Nov 30, 2016
Algorithms
gate1989
descriptive
algorithms
graph-algorithms
depth-first-search
graph-search
+
–
6
6 votes
1
answers
1 answer
3.6k
3.6k views
#Algorithm # DFS
Let G be a graph with n vertices and m edges.a. True or false: All its DFS forests (for traversals starting at different vertices) will have the same number of trees?b. T...
Geet
3.6k
views
asked
Oct 26, 2016
Algorithms
graph-search
depth-first-search
+
–
Page:
1
2
next »