Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged graph-algorithms
1
votes
1
answer
151
Self doubt
Is this statement correct?? and why? .If there are negative weight cycles than dijkstra will surely fail but if there are negative weight edges(need not be cycle) then dijkstra may or may not fail.
Is this statement correct?? and why?.If there are negative weight cycles than dijkstra will surely fail but if there are negative weight edges(need not be cycle) then dij...
Sandy Sharma
794
views
Sandy Sharma
asked
Apr 24, 2018
Algorithms
algorithms
graph-theory
graph-algorithms
+
–
4
votes
2
answers
152
ISRO2018-33
Which of the following is application of Breath First Search on the graph? Finding diameter of the graph Finding bipartite graph Both (a) and (b) None of the above
Which of the following is application of Breath First Search on the graph?Finding diameter of the graphFinding bipartite graphBoth (a) and (b)None of the above
Arjun
3.9k
views
Arjun
asked
Apr 22, 2018
Algorithms
isro2018
graph-algorithms
breadth-first-search
algorithms
+
–
3
votes
2
answers
153
#Graph Theory #Algorithms Self Doubt about Dense Graphs.
Please give some example regarding number of edges in dense graph is - |E| < |V2| I get that when we take log both sides we get O(ElogV), but I can't get this |E| < |V2|
Please give some example regarding number of edges in dense graph is - |E| < |V2|I get that when we take log both sides we get O(ElogV), but I can't get this |E| < |V2|
iarnav
753
views
iarnav
asked
Apr 21, 2018
Algorithms
algorithms
graph-algorithms
time-complexity
+
–
0
votes
1
answer
154
#Algorithms How is this equivalent in Kruskal's Algorithm's Time Complexity?
Kruskal Time complexity is O(mlog m) then how in upper bound it can be written as - O(m2) ----> How log m = O(m) and O (mn) ---------> How log n = O(n)
Kruskal Time complexity is O(mlog m) then how in upper bound it can be written as - O(m2) How log m = O(m)and O (mn) - How log n = O(n)
iarnav
1.5k
views
iarnav
asked
Apr 21, 2018
Algorithms
algorithms
time-complexity
graph-algorithms
+
–
0
votes
0
answers
155
#Algorithms How many cuts are possible are in a graph with n nodes?
Some say answer is 2n and someplace else it's been told 2n-1-1. So, what's the corrent one?
Some say answer is 2n and someplace else it's been told 2n-1-1. So, what's the corrent one?
iarnav
418
views
iarnav
asked
Apr 19, 2018
Algorithms
graph-theory
algorithms
graph-algorithms
minimum-spanning-tree
+
–
3
votes
1
answer
156
Coreman :Graph Algorithms
The square of a directed graph G=(V,E) is the graph G2=(V,E2) such that (u,v) ∈ E2 if and only G contains a path with at most two edges between u and v. Describe efficient algorithms for computing G2 from G for both the adjacency-list and adjacency-matrix representations of G. Analyze the running times of your algorithms.
The square of a directed graph G=(V,E) is the graph G2=(V,E2) such that(u,v) ∈ E2 if and only G contains a path with at most two edges between u and v.Describe efficien...
Abhishek Malik
1.3k
views
Abhishek Malik
asked
Apr 16, 2018
Algorithms
graph-algorithms
cormen
time-complexity
+
–
0
votes
0
answers
157
Implementing Graph Data structure in C++
//Just check create_graph function. #include <iostream> #include <malloc.h> using namespace std; struct Adj_node { int node; struct Adj_node *next; }; typedef struct Adj_node Adj_node; struct Edge { int src, dest; }; typedef struct Edge Edge; ... endl; cin>>e; create_graph(v, e); print_adj_list(); return 0; } How to get rid of this problem?
//Just check create_graph function. #include <iostream #include <malloc.h using namespace std; struct Adj_node { int node; struct Adj_node *next; }; typedef struct Adj_no...
Jason
488
views
Jason
asked
Apr 8, 2018
Programming in C
data-structures
algorithms
graph-algorithms
+
–
0
votes
0
answers
158
Equality of shortest path tree for given node as a root and
I have a small doubt. Chapter 25 All pairs shortest path of CLRS says following: To solve the all-pairs shortest-paths problem on an input adjacency matrix, we need to compute not only the shortest-path weights but also a predecessor ... isnt both things (shortest-paths tree with root $i$ and predecessor subgraph of $G$ for $i$) the same?
I have a small doubt.Chapter 25 All pairs shortest path of CLRS says following:To solve the all-pairs shortest-paths problem on an input adjacency matrix, we need to comp...
GateAspirant999
348
views
GateAspirant999
asked
Mar 24, 2018
Programming in C
shortest-path
algorithms
graph-algorithms
+
–
0
votes
0
answers
159
DFS Modification
How DFS(Depth First Search) modification is used to find whether a graph is planar or not ?
How DFS(Depth First Search) modification is used to find whether a graph is planar or not ?
ankitgupta.1729
1.3k
views
ankitgupta.1729
asked
Mar 21, 2018
Algorithms
depth-first-search
algorithms
graph-algorithms
shai-simonson
+
–
1
votes
2
answers
160
Minimum Spanning Tree Problem
pankaj_vir
2.1k
views
pankaj_vir
asked
Mar 19, 2018
Algorithms
minimum-spanning-tree
graph-algorithms
test-series
+
–
1
votes
0
answers
161
Minimum Spanning Tree Problem
Given a graph with positive and distinct edge weights. If I double or triple.. the edge weights then:- 1. Shortest path will remain same 2. Mst will remain same Right? Note : Here i am doubling or tripling or four times ..... not increasing by +c
Given a graph with positive and distinct edge weights. If I double or triple.. the edge weights then:- 1. Shortest path will remain same2. Mst will remain sameRight?Note ...
Na462
626
views
Na462
asked
Feb 19, 2018
Algorithms
minimum-spanning-tree
algorithms
graph-algorithms
+
–
0
votes
0
answers
162
DFS-Algorithm
Let T be a depth first search tree in an undirected graph G. Vertices u and ν are leaves of this tree T. The degrees of both u and ν in G are at least 2. In such case in the graph there will be two cycles :- One Cycle will contain u and other one v. There cannot be a graph containig a single cycle and containing both u and v and also satisfy above Constraint. Am I right?
Let T be a depth first search tree in an undirected graph G. Vertices u and ν are leaves of this tree T. The degrees of both u and ν in G are at least 2.In such case in...
Na462
834
views
Na462
asked
Feb 18, 2018
Algorithms
depth-first-search
algorithms
graph-algorithms
+
–
35
votes
9
answers
163
GATE CSE 2018 | Question: 47
Consider the following undirected graph $G$: Choose a value for $x$ that will maximize the number of minimum weight spanning trees (MWSTs) of $G$. The number of MWSTs of $G$ for this value of $x$ is ____.
Consider the following undirected graph $G$:Choose a value for $x$ that will maximize the number of minimum weight spanning trees (MWSTs) of $G$. The number of MWSTs of $...
gatecse
17.6k
views
gatecse
asked
Feb 14, 2018
Algorithms
gatecse-2018
algorithms
graph-algorithms
minimum-spanning-tree
numerical-answers
2-marks
+
–
63
votes
5
answers
164
GATE CSE 2018 | Question: 43
Let $G$ be a graph with $100!$ vertices, with each vertex labelled by a distinct permutation of the numbers $1, 2,\ldots, 100.$ There is an edge between vertices $u$ and $v$ if and only if the label of $u$ can be obtained by swapping two adjacent ... denote the degree of a vertex in $G$, and $z$ denote the number of connected components in $G$. Then, $y+10z=$ ______.
Let $G$ be a graph with $100!$ vertices, with each vertex labelled by a distinct permutation of the numbers $1, 2,\ldots, 100.$ There is an edge between vertices $u$ and ...
gatecse
19.8k
views
gatecse
asked
Feb 14, 2018
Algorithms
gatecse-2018
algorithms
graph-algorithms
numerical-answers
2-marks
+
–
47
votes
7
answers
165
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 edge of $G$ is a cross edge with respect to $T_D$. (A cross edge in $G$ ... $\mid i-j \mid =1$. Which of the statements above must necessarily be true? I only II only Both I and II Neither I nor II
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
27.4k
views
gatecse
asked
Feb 14, 2018
Algorithms
gatecse-2018
algorithms
graph-algorithms
graph-search
normal
2-marks
+
–
3
votes
3
answers
166
Ace Test Series: Graph Theory - Number Of Spanning Trees
How to approach such questions ? Please provide detailed solution. Answer given is option C
How to approach such questions ? Please provide detailed solution. Answer given is option C
kapilbk1996
4.3k
views
kapilbk1996
asked
Feb 2, 2018
Graph Theory
minimum-spanning-tree
graph-algorithms
ace-test-series
+
–
6
votes
1
answer
167
Back edge,tree edge,forward edges in BFS
Consider the following statements: 1. Let T be the DFS tree resulting from DFS traversal on a connected directed graph the root of the tree is an articulation point, iff it has at least two children. 2. When BFS is carried out on a directed ... back edge, or cross edge and not forward edge as in the case of DFS. Find TRUE or FALSE for both the statements
Consider the following statements:1. Let T be the DFS tree resulting from DFS traversal on a connected directed graph the root of the tree is an articulation point, iff i...
MIRIYALA JEEVAN KUMA
13.3k
views
MIRIYALA JEEVAN KUMA
asked
Jan 27, 2018
DS
algorithms
breadth-first-search
depth-first-search
graph-algorithms
programming-in-c
data-structures
+
–
7
votes
2
answers
168
True/False
Which of the following statements related to graphs are True? Minimum Spanning Tree has ALWAYS Minimum weight edge included in it. Minimum Spanning Tree MIGHT have Maximum weight edge weight included in it. Maximum Spanning Tree has ALWAYS Maximum weight edge included ... edge included in it. Longest path from source to destination MAY OR MAY NOT have Maximum weight edge included in it.
Which of the following statements related to graphs are True?Minimum Spanning Tree has ALWAYS Minimum weight edge included in it.Minimum Spanning Tree MIGHT have Maximum ...
Balaji Jegan
2.1k
views
Balaji Jegan
asked
Jan 26, 2018
Graph Theory
graph-theory
graph-algorithms
algorithms
+
–
4
votes
1
answer
169
DFS- depth first search
budhu
736
views
budhu
asked
Jan 25, 2018
DS
data-structures
depth-first-search
graph-algorithms
graph-connectivity
+
–
1
votes
1
answer
170
BFS- No of Teversals
How to solve these kind of questions?
How to solve these kind of questions?
Shubham Kumar Gupta
913
views
Shubham Kumar Gupta
asked
Jan 17, 2018
DS
breadth-first-search
algorithms
data-structures
graph-algorithms
+
–
1
votes
0
answers
171
MadeEasy Test Series 2018: Algorithms - Graph Algorithms
Can someone work this out?
Can someone work this out?
Kalpataru Bose
438
views
Kalpataru Bose
asked
Jan 16, 2018
Algorithms
algorithms
graph-algorithms
made-easy-test-series
madeeasy-testseries-2018
+
–
2
votes
2
answers
172
DFS Traversal
If DFS algorithm applied starting from vertex ‘A’ which uses stack data structure then the height of stack is needed in worst case for DFS traversal is _________.
If DFS algorithm applied starting from vertex ‘A’ which uses stack data structure then the height of stack is needed in worst case for DFS traversal is _________.
sumit chakraborty
1.3k
views
sumit chakraborty
asked
Jan 11, 2018
Algorithms
depth-first-search
algorithms
graph-algorithms
numerical-answers
made-easy-test-series
+
–
2
votes
1
answer
173
MadeEasy Test Series 2018: Algorithms - Graph Algorithms
Consider the following graph and sequences given below : Given answer for no of DFS traversal was 2 : S1 and S2. How S2 is a DFS traversal ?
Consider the following graph and sequences given below :Given answer for no of DFS traversal was 2 : S1 and S2.How S2 is a DFS traversal ?
sumit chakraborty
430
views
sumit chakraborty
asked
Jan 11, 2018
Algorithms
algorithms
graph-algorithms
madeeasy-testseries-2018
made-easy-test-series
+
–
2
votes
0
answers
174
NO Of BFS traversal
what is the question asking exactly?
what is the question asking exactly?
gari
633
views
gari
asked
Jan 11, 2018
Programming in C
breadth-first-search
algorithms
graph-algorithms
data-structures
+
–
5
votes
0
answers
175
minimum spanning tree
Lakshman Bhaiya
438
views
Lakshman Bhaiya
asked
Jan 10, 2018
DS
minimum-spanning-tree
graph-algorithms
+
–
2
votes
0
answers
176
MadeEasy Test Series 2018: Algorithms - Graph Algorithms
For a directed graph, the absence of back edges in a DFS tree can have cycle. true or fale.please explain with an example.
For a directed graph, the absence of back edges in a DFS tree can have cycle.true or fale.please explain with an example.
jaig
334
views
jaig
asked
Jan 10, 2018
Algorithms
algorithms
graph-algorithms
madeeasy-testseries-2018
made-easy-test-series
+
–
1
votes
0
answers
177
MadeEasy Test Series 2018: Algorithms - Graph Algorithms
A) S1 only B) S1 and S2 only C) S1 and S3 only D) All statements are true.
A) S1 onlyB) S1 and S2 onlyC) S1 and S3 onlyD) All statements are true.
Abhishek Kumar Singh
337
views
Abhishek Kumar Singh
asked
Jan 8, 2018
Algorithms
algorithms
graph-algorithms
madeeasy-testseries-2018
made-easy-test-series
+
–
1
votes
1
answer
178
Depth First Search
Aditya Bahuguna
681
views
Aditya Bahuguna
asked
Jan 7, 2018
Algorithms
graph-algorithms
depth-first-search
test-series
+
–
2
votes
0
answers
179
Ace Test series: Algorithms - Graph Algorithms
smsubham
467
views
smsubham
asked
Jan 6, 2018
Algorithms
ace-test-series
minimum-spanning-tree
graph-algorithms
algorithms
+
–
2
votes
0
answers
180
Ace Test series: Algorithms - Graph Algorithms
smsubham
284
views
smsubham
asked
Jan 6, 2018
Algorithms
ace-test-series
algorithms
graph-algorithms
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
...
14
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register