One of the possible order is below as there can be multiple possible topological sorted order:

5. [5 pts] Perform a topological sort on the poset below shown as a digraph, listing...
1. (5 pts) Perform topological sorting on the directed graph below. Show two orderings that can result, such that no letter is in the same position in each ordering: e.g., D cannot be in the 3rd position in both orderings; if the algorithm does not finish, show the part of the graph that remains unprocessed (and explain why it remains unprocessed). Order 1 Order 2
2. (5 Points) Given adjacency list representation of a digraph below with 10 vertices from 0 to 9, does it have a topological order? If so, provide one. Otherwise, explain why. 0: 4 2 1 3 1: 2 2: 3 3: 4: 2 5: 1 4 3 8 9 6: 3 2 1 9 7: 2 1 8: 2 1 4 6 9: 3 1 4
(A) Consider the following algorithm for computing a topological sort of a DAG G: add the vertices to an initially empty list in non-decreasing order of their indegrees. Either argue that the algorithm correctly computes a topological sort of G, or provide an example on which the algorithm fails. (B) Can the number of strongly connected components of a graph decrease if a new edge is added? Why or why not? Can it increase? Why or why not? (C) What...
2. Is the topological sort in
the Cormen textbook fig 22.7 unique? Are there other ways of
sorting? Explain why or why not considering the DFS approach.
613 22.4 Topological sort 11/16 undershorts socks) 17/18 watch 9/10 shoes 13/14 1215 Pants shirt 1/8 6/7 (belt (a) tie 2/5 jacket 3/4 (b) socks (undershorts ants shoes (watch (shirt belt tie acket 12/15 13/14 9/10 1/8 3/4 Figure 22.7 (a Professor Bumstead topologically sorts his clothing when getting dressed. Each directed edge...
Apply the topological sort algorithm to the graph. Follow the
algorithm in you textbook and clearly show the content of the three
lists: resultList, noIncoming and remainingEdges after each
iteration.
2. Apply the topological sort algorithm to the graph below. Follow the algorithm in you textbook and clearly show the content of the three lists: resultList, nolncoming and remainingEdges after each iteration GraphTopologicalSort (graph) { resultList = empty list of vertices no Incoming = list of all vertices with no...
Question 4 3 pts Apply the source-removal algorithm to the digraph shown below. a b с d e g Edit Insert Format Tools Table 12pt Paragraph B I U A
13. (10 points) Apply dijkstra's algorithm to the digraph shown below in order to find the shortest path from S to T. A BE 7 8 E 3 00 5 4 S 6 T 9 9 D
Q6: 20 pts) For the directed graph assigned to you, run the Depth First Search algorithm. (a) Clearly show the order in which the vertices are pushed and popped. (b) Clearly write the list of edges and their classification into one of the four categories as determined using DFS. (c) Determine whether the directed graph assigned to you is a DAG or not? If it is a DAG. write the topological sort of the vertices.
Student Name: Q5-15 pts) Run the Depth First Search algorithm on the following directed acyclic graph (DAG) and determine a topological sort of the vertices as well as identify the tree edges, forward edges and cross edges 3 5 0 2 4 7