in DS
800 views
2 votes
2 votes

number of toplogical sort sequence

in DS
by
800 views

4 Comments

I got 420
0
0
it should be 420
0
0
I got 282... what is the correct ans?
0
0

1 Answer

6 votes
6 votes

3 Comments

Yes this seems right..Good method @Shaik . I missed out some possibilities.. But your approach is pretty nice :)
0
0

@Shaik Masthan Sir can you please explain how got the above expression i.e 5!/(2!2!)?

0
0
@ after deleting C we can have 7  element

____               ____     ______        _______       _______        ________    __________

after 7 places A goes to any where so  A have 7 possibility

reamining six places   D every time come to first

and remaining five place   G comes after   E

and  H comes after F so  formula  is 5!/2!*2!=30     devided by 2! two time becuase G comes after   E

H comes after F

so 7*30=210

and same for node C  7*30=210

so overall =420
0
0

Related questions