Answered step by step
Verified Expert Solution
Question
1 Approved Answer
D AT ASTRUCTURE AN DALGORITHM DESIGNQuestion Question Two (20 Marks) a. New students enrolling for Information Engineering need to take some certain courses before graduation.
D AT ASTRUCTURE AN DALGORITHM DESIGNQuestion Question Two (20 Marks) a. New students enrolling for Information Engineering need to take some certain courses before graduation. Given the following list of courses to be completed with a precedence constraints, Courses {1= Algorithm Analysis and Design, 2= Complexity theory, 3= Intelligent Systems, 4= Introduction to Information Engineering, 5= Cryptography, 6= Engineering Computing, 7= Data Mining}. The courses can be taken in any order as long as the following course prerequisites are met: 6 and 4 are prerequisite for 7, 1 and 2 have no prerequisites, 3 requires 1, 2 and 7, 1 is prerequisite for 4, 5 requires 2, 3, 4 and 7, while 6 requires 1, 2 and 5. The student can take only one course at a time. i. Model a Diagraph to represent the courses and constraints (5 marks) ii. Determine in which order you will schedule your time table using topological sorting for the diagraph. (3 marks) iii. Give 2 practical applications of topological sorting. (2 marks) Note You can draw the adjacency list to indicate constraint before modeling the diagraph Vertex= course, edge = Precedence Constraint
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started