Recent questions tagged topological-sort

1 1 vote
1 1 answer
152
152 views
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...
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{...
3 3 votes
1 1 answer
1.3k
1.3k views
Consider a directed acyclic graph (DAG) with vertices labeled as P, Q, R, S, T, U, and V. Which of the following sequences represents a possible topological sort of the g...
1 1 vote
1 1 answer
706
706 views
Can anyone explain how the answer is 10?
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
714
714 views
3 3 votes
0 0 answers
558
558 views
How many topological sortings (or topological orderings) does the given directed graph have?
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
1 1 answer
628
628 views
0 0 votes
2 2 answers
1.9k
1.9k views
Match $\text{list I}$ with $\text{List II}$$\begin{array}{llll} & \text{List I} && \text{List II} \\ (A) & \text{Topological sort of DAG} & (I) & O(V+E) \\ (B) & \text{Kr...
1 1 vote
1 1 answer
3.2k
3.2k views
Consider the graph, which of the following is a valid topological sorting?$\text{ABCD}$$\text{BACD}$$\text{BADC}$$\text{ABDC}$
0 0 votes
1 1 answer
1.7k
1.7k views
What are all the topological sorts for the dependency graph of Fig. $5.7$?
0 0 votes
1 1 answer
734
734 views
0 0 votes
1 1 answer
2.2k
2.2k views
Which is the best data structure to implement topological sort on directed graph?HeapStackqueueArray
0 0 votes
0 0 answers
450
450 views
The Adjacency matrix of a directed graph $\text{G}$ is given below.$\begin{array} {} & a & b & c & d & e & f & g & h & i \\ a & 0 & 1 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ b & ...
0 0 votes
0 0 answers
684
684 views
I want to know if there is topological sort for the syntax directed translations.Does LMD or Bottom up parsing have an order. Is there an order in which the result of SDT...
2 2 votes
1 answers 1 answer
1.7k
1.7k views
number of toplogical sort sequence
2 2 votes
1 1 answer
1.4k
1.4k views
2 2 votes
1 1 answer
2.0k
2.0k views
How many Topological Orderings possible?
1 1 vote
1 1 answer
835
835 views
How many Topological Orderings possible?
0 0 votes
2 2 answers
1.5k
1.5k views
How many Topological Orderings possible?