• edited by
2,204 views
0 0 votes

Which is the best data structure to implement topological sort on directed graph?

  1. Heap
  2. Stack
  3. queue
  4. Array

 

1 Answer

Position:
Show:

Related questions

3 3 votes
5 5 answers
5.1k
5.1k views
1 1 vote
1 1 answer
1.8k
1.8k views
kamakshi asked Nov 18, 2017
1,807 views
Caption
2 2 votes
2 answers 2 answers
615
615 views
Bikram asked May 26, 2017
615 views
Which one of the following is a topological sort for the above graph?$1, 6, 2, 5, 3, 4$$4, 5, 6, 3, 2, 1$$2, 4, 5, 6, 3, 1$$6, 4, 5, 2, 1, 3$
1 1 vote
1 1 answer
152
152 views
Shubham Sharma 2 asked Apr 19
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...