Consider the following algorithm for topological sorting:
topologicalSort(digraph) for each vertex v TSNum(v) = the number of edges coming to v; // indegree if TSNum(v) is 0 enqueue(v);i = 1;while queue is not empty v = dequeue(); num(v) = i++; for each edge(vu) TSNum(u)--; if TSNum(u) is 0 enqueue(u);
Apply this algorithm to the graph in Figure and show all changes in the queue and in TSNum’s. Also, process this figure with the algorithm from Section. What is the difference between these two algorithms?
Figure A digraph.

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.