84.3k views
2 votes
Topic: Graphs.1.) Bob loves foreign languages and wants to plan his courseschedule for the following years. He is interested in the followingnine language courses: LA15, LA16, LA22, LA31, LA32, LA126, LA127,LA141, and LA 169. The course prerequisites are.i.) LA15: (None)ii.) LA16: LA 15iii.) LA22: (None)iv.) LA31:LA 15v.) LA32:LA16, LA31vi.) LA126: LA22, LA32vii.) LA127: LA 16viii.) LA141:LA22, LA 16ix.) LA 169: LA32.Find the sequence of courses that allows Bob to satisfy allthe prerequisites.

1 Answer

5 votes

Answer:

LA15; LA22

LA16; LA31; LA32

LA169; LA126;

LA127; LA141

Step-by-step explanation:

Given


Courses: LA15,\ LA16,\ LA22,\ LA31,\ LA32,\ LA126,\ LA127,\ LA141,\ LA 169.

Required

Course sequence to satisfy the prerequisite

From the course prerequisite, we have:


1.\ LA15 \to None and
3.\ LA22 \to None

This means that LA15 and LA22 are the base courses, and they have no prerequisite. So, we have:


[LA15; LA22]

LA16 and LA31 have LA15 as their direct course prerequisite. So, the sequence becomes


[LA15 \to [LA16, LA31]; LA22]

To complete the sequence, we read each course and place them other their prerequisite.

See attachment for complete tree

From the tree, we have the sequence to be:

LA15; LA22

LA16; LA31; LA32

LA169; LA126;

LA127; LA141

Topic: Graphs.1.) Bob loves foreign languages and wants to plan his courseschedule-example-1
User Acrube
by
4.7k points