subject

The university has hired you to write an algorithm to schedule their final exams. each quarter, the university offers n different classes. there are r different rooms on campus and t different time slots in which exams can be offered. you are given two arrays e[1..n] and s[1..r] where e[i] is the number of students enrolled in the ith class, and s[j] is the number of seats in the jth room. at most one final exam can be held in each room during each time slot.

a. write an algorithm to assign a room and a time slot to each class (or report correctly that no such assignment is possible).
b. provide time complexity analysis.
c. explain why your algorithm is correct.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:00
What computer network component allows data transfers from one computer to another through a telephone line?
Answers: 1
question
Computers and Technology, 22.06.2019 09:00
What is one way in which tablets differ from laptops and notebooks? tablets are designed for touch-based interaction. tablets are designed to be used as desktops. tablets are designed for input via a keyboard and mouse. tablets are designed to be larger than laptops.
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
Me dangers of social media and the internetexplain what each means: 1) social media and phones have become an addiction.2) outside people have access to you all the time.3) cyberstalking4) cyberbullying5) catphishing6) viruses7) identity theft8) credit card fraud9) hacking10) money schemes
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
Answers: 1
You know the right answer?
The university has hired you to write an algorithm to schedule their final exams. each quarter, the...
Questions
question
Mathematics, 18.12.2020 21:30
question
Mathematics, 18.12.2020 21:30
question
Mathematics, 18.12.2020 21:30
question
Mathematics, 18.12.2020 21:30
question
Mathematics, 18.12.2020 21:30
question
Mathematics, 18.12.2020 21:30
question
Mathematics, 18.12.2020 21:30
question
Mathematics, 18.12.2020 21:30
Questions on the website: 13722367