Recent questions tagged directed-acyclic-graph

2 2 votes
1 1 answer
122
122 views
11 11 votes
2 2 answers
2.2k
2.2k views
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...
0 0 votes
1 1 answer
669
669 views
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)))
0 0 votes
1 1 answer
758
758 views
Number of nodes in the DAG(Directed Acyclic Graph) representing (a+b)+c+(a+b)
11 11 votes
5 5 answers
5.0k
5.0k views
​​​​​​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{...
1 1 vote
1 1 answer
566
566 views
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 ...
0 0 votes
1 1 answer
806
806 views
how many topological sort possible for above graph?directions like this question https://gateoverflow.in/39669/gate-cse-2016-set-1-question-11
0 0 votes
0 0 answers
486
486 views
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 __
1 1 vote
2 2 answers
1.5k
1.5k views
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}\]
11 11 votes
5 5 answers
1.2k
1.2k views
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...
0 0 votes
0 0 answers
966
966 views
How Directed acyclic graph would be constructed for this instruction?b[j] = a ;
43 43 votes
4 answers 4 answers
16.3k
16.3k views
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...
33 33 votes
4 answers 4 answers
23.7k
23.7k views
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...
1 1 vote
1 1 answer
762
762 views
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}$
0 0 votes
2 2 answers
2.5k
2.5k views
The graph that shows basic blocks and their successor relationship is called:DAGControl graphFlow graphHamiltonian graph
0 0 votes
2 2 answers
6.9k
6.9k views
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...
1 1 vote
2 2 answers
4.0k
4.0k views
Construct the DAG for the expression$((x + y)-((x + y)\ast(x -y))) + ((x+y)\ast(x-y))$
2 2 votes
1 1 answer
1.2k
1.2k views
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...
0 0 votes
0 0 answers
430
430 views
A directed acyclic graph has no connected components.TRUE OR FALSE???
0 0 votes
2 2 answers
6.5k
6.5k views
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 ...
0 0 votes
1 1 answer
2.6k
2.6k views
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...
0 0 votes
0 0 answers
1.9k
1.9k views
Is DAG from compiler design is in the syllabus?
0 0 votes
2 2 answers
13.8k
13.8k views
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?????