Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Give a pseudo code, code the algorithm in java, and give the outputs from the details below. The data is above. You can also use

Give a pseudo code, code the algorithm in java, and give the outputs from the details below.

The data is above. You can also use object-orientated programming. Separate all of the classes and the main program. Also run the program to show the output.

 

Inputs: . Course Offerings: Course Code, Name, Credits, Prerequisites, Faculty, Duration, Room . Faculty Availability: Name, Course Code, Times, Days, Location . Student List: Names . Classroom Information: Name, Capacity

 Outputs: . Optimal Schedule: Course Code, Name, Faculty, Time Slot, Room

1. Make a list of all possible time slots for each course based on faculty availability and available classrooms.

2. Make a graph G = (V, E), where V is the set of nodes representing courses, faculty, and classrooms, and E is the set of edges representing scheduling conflicts. 

3. For each course node, add edges to all nodes representing courses that conflict with the course in terms of faculty availability and classroom availability. 

4. Apply a graph coloring algorithm to G to find a valid schedule for all courses.

5. Check that the schedule satisfies the constraints: . Room capacity: Ensure that each course is scheduled in a feasible capacity room. . Faculty workload: Ensure that each faculty member is not scheduled for more courses than their workload limit. . Student scheduling conflicts: Ensure that no two courses are scheduled at the same time for students with a scheduling conflict. 

6. If the schedule is valid, output the optimal schedule, including the course code, name, faculty name, time slot, and room. 

7. If the schedule is not valid, return to step 1 and repeat the process with a different set of possible time slots until a valid schedule is found.


   

Course Offerings Table: Course Code 810707 MATH201 ENG201 HISIO Chem201 PSYCH Faculty Availability Table: Faculty Name Dr. Johnson Dr. John DY. Lee Dr.Kim Dr. Park Name Intro to Bio Linea Alg Eng. Comp Intro to Hist Organic Chem Intro to Psych Course Code Math 301 Math 301 ENG 201 Hislol Psychol Credits 3 4 3 3 4 3 Times 9:00AM-11:00AM 9:00AM-11:00AM 1:00PM-3:00PM 10:00AM-12:00PM 2:00PM-4:00PM Pre-req None None Englal None Chemlol, Chemloz, Chemi Sych Days MW MW TR TR TR Location Math(al) Math(al) Human123 Human123 Socalscil76 O

Step by Step Solution

3.42 Rating (149 Votes )

There are 3 Steps involved in it

Step: 1

Certainly I am able to furnish you with a pseudocode framework for the algorithm followed by the implementation of a simpler version in the Java programming language Regrettably I am unable to execute ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions