Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Scheduling in P ? Image that WISER is down, so UMB has hired you to compute possible course schedules for the school. A schedule is
Scheduling in P
Image that WISER is down, so UMB has hired you to compute possible course schedules for the school.
A schedule is an assignment mapping of courses to classrooms. If there are different courses and different classrooms, compute the maximum number of possible schedules to consider in a bruteforce algorithm.
Now assume you are asked to find a valid schedule and you have a constanttime verifier that can check one assignment of courses to classrooms. Explain why this bruteforce algorithm to find a valid schedule is actually in
P
P
Now imagine the bruteforce algorithm from above is generalized to
n different courses and
n different classrooms. Explain the worst case run time of this algorithm to find valid assignment, in terms of
n and explain why it is no longer in
P
P
Finally, assume that checking the validity of one assignment gives enough information to eliminate half of the remaining unchecked assignments round down Give an algorithm to find a valid schedule, using this new knowledge after each check, that runs in at most polynomial time.
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