Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged directed-acyclic-graph
2
2 votes
1
1 answer
122
122 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Tree in DAG
Suppose DFS is called on a DAG $G$, and the resulting DFS forest has a single tree. Then $G$ has exactly one source vertex.True False
GO Classes
122
views
asked
Aug 19
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-253
goclasses-cs-dpp
goclasses-cs-dpp-day-351
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
directed-acyclic-graph
+
–
1
1 vote
0
0 answers
176
176 views
DFS and Topological Ordering Question (University of California, Berkeley — CS 170)
naveendewangan
176
views
asked
Jul 18
Algorithms
dfs-bfs
topological-sort
algorithms
depth-first-search
directed-acyclic-graph
multiple-selects
+
–
11
11 votes
2
2 answers
2.2k
2.2k views
GATE CSE 2026 | Set 2 | Question: 27
Let $G$ be a weighted directed acyclic graph with $m$ edges and $n$ vertices. Given $G$ and a source vertex $s$ in $G$, which one of the following options gives the worst...
gatecse
2.2k
views
asked
Feb 23
Algorithms
gatecse-2026-set2
algorithms
shortest-path
directed-acyclic-graph
time-complexity
two-marks
+
–
0
0 votes
1
1 answer
669
669 views
Compiler design
directed acyclic graph(DAG)is a simplified step from the AST. Solve the following expressions by AST and DAG: X=(((a+a))+((a+a)+(a+a)))
Sarahcs
669
views
asked
May 6, 2024
Compiler Design
compiler-design
directed-acyclic-graph
+
–
0
0 votes
1
1 answer
758
758 views
BARC 2024 CSE
Number of nodes in the DAG(Directed Acyclic Graph) representing (a+b)+c+(a+b)
Ayanava Dutta
758
views
asked
Mar 17, 2024
Compiler Design
normal
directed-acyclic-graph
compiler-design
+
–
11
11 votes
5
5 answers
5.0k
5.0k views
GATE DS&AI 2024 | Question: 41
Consider the directed acyclic graph (DAG) below:Which of the following is/are valid vertex orderings that can be obtained from a topological sort of the DAG?$\text{...
Arjun
5.0k
views
asked
Feb 16, 2024
Algorithms
gate-ds-ai-2024
algorithms
topological-sort
directed-acyclic-graph
multiple-selects
two-marks
+
–
1
1 vote
1
1 answer
566
566 views
UGC NET CSE | June 2008 | Part 2 | Question: 1
Which of the following does not define a tree?A tree is a connected acyclic graph.A tree is a connected graph with $n-1$ edges where ' $n$ ' is the number of vertices in ...
admin
566
views
asked
Jan 6, 2024
Others
ugcnetcse-june2008-paper2
directed-acyclic-graph
tree
+
–
0
0 votes
1
1 answer
806
806 views
#selfdoubt
how many topological sort possible for above graph?directions like this question https://gateoverflow.in/39669/gate-cse-2016-set-1-question-11
Dknights
806
views
asked
Jan 30, 2023
Programming in C
programming
topological-sort
directed-acyclic-graph
+
–
0
0 votes
0
0 answers
486
486 views
TestBook TestSeries question to find number of paths in directed graph
Consider the following directed graph and assume the number of paths to reach to itself i.e. N(A) = 1.Number of paths from A to K are __
Sahil_Lather
486
views
asked
Jan 28, 2023
Algorithms
algorithms
directed-acyclic-graph
testbook-test-series
+
–
1
1 vote
2
2 answers
1.5k
1.5k views
DRDO CSE 2022 Paper 2 | Question: 1
What is the minimum number of nodes required in a DAG (Directed Acyclic Graph) for the following block?\[\begin{aligned}U=Z & =V+W \\X=Y & =U+1 \\A & =X+Y\end{aligned}\]
admin
1.5k
views
asked
Dec 15, 2022
Algorithms
drdocse-2022-paper2
algorithms
graph-algorithms
directed-acyclic-graph
5-marks
descriptive
+
–
11
11 votes
5
5 answers
1.2k
1.2k views
GO Classes CS Test Series | Algorithms | Topic Wise Test 4 | Question: 9
Consider a DAG $\mathrm{G}=(\mathrm{V}, \mathrm{E})$ which has topological ordering of vertices $v_1, v_2, \ldots ,v_n$. We want to count number of paths from vertex $v_i...
GO Classes
1.2k
views
asked
Aug 16, 2022
Algorithms
goclasses_cs_algo_tw4
goclasses
algorithms
directed-acyclic-graph
topological-sort
two-marks
+
–
0
0 votes
0
0 answers
966
966 views
DAG ( compiler Design)
How Directed acyclic graph would be constructed for this instruction?b[j] = a ;
Ankita87077
966
views
asked
Oct 28, 2021
Compiler Design
compiler-design
directed-acyclic-graph
+
–
43
43 votes
4
answers
4 answers
16.3k
16.3k views
GATE CSE 2021 | Set 2 | Question: 55
In a directed acyclic graph with a source vertex $\textsf{s}$, the $\textit{quality-score}$ of a directed path is defined to be the product of the weights of the edges on...
Arjun
16.3k
views
asked
Feb 18, 2021
Algorithms
gatecse-2021-set2
algorithms
graph-algorithms
directed-acyclic-graph
numerical-answers
two-marks
+
–
33
33 votes
4
answers
4 answers
23.7k
23.7k views
GATE CSE 2021 | Set 1 | Question: 50
Consider the following $C$ code segment:a = b + c; e = a + 1; d = b + c; f = d + 1; g = e + f;In a compiler, this code segment is represented internally as a directed acy...
Arjun
23.7k
views
asked
Feb 18, 2021
Compiler Design
gatecse-2021-set1
compiler-design
code-optimization
directed-acyclic-graph
numerical-answers
two-marks
+
–
1
1 vote
1
1 answer
762
762 views
NIELIT Scientific Assistant A 2020 November: 53
Which of the following is not true for tree and graph?A tree is a graphA graph is a treeTree can have a cycleTree is a $\text{DAG}$
gatecse
762
views
asked
Dec 9, 2020
Compiler Design
nielit-sta-2020
compiler-design
code-optimization
directed-acyclic-graph
easy
+
–
0
0 votes
2
2 answers
2.5k
2.5k views
NIELIT 2016 DEC Scientist B (CS) - Section B: 36
The graph that shows basic blocks and their successor relationship is called:DAGControl graphFlow graphHamiltonian graph
admin
2.5k
views
asked
Mar 31, 2020
Compiler Design
nielit2016dec-scientistb-cs
compiler-design
directed-acyclic-graph
+
–
0
0 votes
2
2 answers
6.9k
6.9k views
Ullman (Compiler Design) Edition 2 Exercise 6.1 Question 2 (Page No. 363)
Construct the DAG and identify the value numbers for the subexpressions of the following expressions, assuming $+$ associates from the left.$a+b+(a+b)$$a+b+a+b$$a+a+((a+a...
admin
6.9k
views
asked
Sep 7, 2019
Compiler Design
ullman
compiler-design
three-address-code
directed-acyclic-graph
descriptive
+
–
1
1 vote
2
2 answers
4.0k
4.0k views
Ullman (Compiler Design) Edition 2 Exercise 6.1 Question 1 (Page No. 362)
Construct the DAG for the expression$((x + y)-((x + y)\ast(x -y))) + ((x+y)\ast(x-y))$
admin
4.0k
views
asked
Sep 7, 2019
Compiler Design
ullman
compiler-design
three-address-code
directed-acyclic-graph
descriptive
+
–
2
2 votes
1
1 answer
1.2k
1.2k views
Difference between DAG and Multi-stage graph
I have trouble understanding the difference between DAG and Multi-stage graph. I know what each of them isBut I think that a multi-stage graph is also a DAG. Are multi-st...
gmrishikumar
1.2k
views
asked
Apr 28, 2019
Graph Theory
graph-theory
graph-algorithms
graph-connectivity
multi-stage-graph
directed-acyclic-graph
+
–
0
0 votes
0
0 answers
430
430 views
self doubt
A directed acyclic graph has no connected components.TRUE OR FALSE???
Doraemon
430
views
asked
Mar 30, 2019
Programming in C
directed-acyclic-graph
+
–
0
0 votes
2
2 answers
6.5k
6.5k views
Made Easy Test Series
b = b + cd = b + db = b – de = d + bThe minimum number of nodes and edges present in the DAG representation of above basic block respectively are ?4 and 55 and 46 and 66 ...
balraj_allam
6.5k
views
asked
Jan 27, 2019
Compiler Design
compiler-design
code-optimization
directed-acyclic-graph
made-easy-test-series
+
–
0
0 votes
1
1 answer
2.6k
2.6k views
me test
Consider the basic block given below:u=u+vv=v+wx=v-wy=v-xz=u+vThe minimum number of nodes and edges present in the DAG representations of the above basic block respective...
newdreamz a1-z0
2.6k
views
asked
Jan 12, 2019
Compiler Design
compiler-design
code-optimization
directed-acyclic-graph
numerical-answers
+
–
0
0 votes
0
0 answers
1.9k
1.9k views
DAG Syllabus
Is DAG from compiler design is in the syllabus?
Shamim Ahmed
1.9k
views
asked
Dec 26, 2018
Compiler Design
directed-acyclic-graph
compiler-design
+
–
0
0 votes
2
2 answers
13.8k
13.8k views
Directed Acyclic Graph
Question.Construct the Dag for the following Assume that + is left associative?a)a+b+(a+b)b)a+b+a+bc)a+a+(a+a+a+(a+a+a+a))Please give the Answer to these questions?????
saumya mishra
13.8k
views
asked
Jun 13, 2018
Compiler Design
compiler-design
code-optimization
directed-acyclic-graph
+
–
Page:
1
2
next »