There are many problems in which one activity cannot be started before another one has been completed. One such problem is determining the order in which you can take courses. Some courses have prerequisite. Furthermore, the prerequisites may have prerequisites. The Directed Acyclic Graph (DAG), (Figure 2) above shows the courses and prerequisites of a computer science program at a university. 6 Implementation: Use the Graph above, (Figure 2) to answer the following questions. 1. What is a Directed Acyclic Graph? 2. Perform a Breath First Search (BSF) on the above Graph. (Figure 2). Show the necessary steps using the sample table below. Perform a Depth First Search (DSF) on the above Graph. (Figure 2). Show the necessary steps using the sample table below. Vertex being Visited Contents after Visit Visit Sequence
There are many problems in which one activity cannot be started before another one
has been completed. One such problem is determining the order in which you can take
courses. Some courses have prerequisite. Furthermore, the prerequisites may have
prerequisites. The Directed Acyclic Graph (DAG), (Figure 2) above shows the courses
and prerequisites of a computer science program at a university.
6
Implementation: Use the Graph above, (Figure 2) to answer the following questions.
1. What is a Directed Acyclic Graph?
2. Perform a Breath First Search (BSF) on the above Graph.
(Figure 2). Show the necessary steps using the sample table below.
Perform a Depth First Search (DSF) on the above Graph.
(Figure 2). Show the necessary steps using the sample table below.
Vertex being Visited | Contents after Visit | Visit Sequence |


Step by step
Solved in 4 steps with 2 images
