edited by
1,362 views
2 votes
2 votes

How many topological sorts of the following directed graph are possible?

 

edited by

2 Answers

Best answer
3 votes
3 votes
The topological sorts can exchange the position of any pair node which have no directed path between them.  So nodes (b,c) , (e,f) , (h,i) are interchangeable as there is no path between them .  So for each pair there are 2 permutation so total no of permutations are 2^3 = 8
selected by
3 votes
3 votes
Total 8 are possible...

To reach at D we have two paths

a-b-c-d and a-c-b-d

Now to reach at G we have again 4 paths..

a-b-c-d-e-f-g , a-b-c-d-f-e-g and

a-c-b-d-e-f-g , a-c-b-d-f-e-g

To reach at j we have 8 paths same as above...

So 8 would be the ans...

We can also do directly..
edited by

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
0 answers
2