subject

The ith ta holds office hours starting at time si and ending at time ei. each ta holds exactly one office hour (which may last any amount of time, not necessarily one hour, and different tas may have different interval lengths, which may overlap with one another). attendance has been low because students, being ics majors, are afraid of the sun, so the department announces that all tas who do not have a student visit them this week will be fired1. because all of our teaching assistants are awesome2, we want to ensure that none get fired. however, due to student fears of the sun, we want to minimize the total number of visits made to tas. for purposes of this problem, assume each ta’s office hour time is one continuous interval with no breaks, and that a student visiting the sundeck at time t counts as visiting all tas whose office hours interval contains t. also assume that student visits are "instantaneous," in the sense that the amount of time a student stays in the sun is negligible – formally, each student visits the deck at a single point in time. this also to avoid exposing a student to the sun unnecessarily. you propose the following: first, we sort all of the intervals by end time. we send a student to attend office hours at the moment immediately prior to the end of the first ending interval. we remove from our input all tas who overlap with this time, and if the remaining set is non-empty, we repeat. prove that the greedy algorithm in the previous statement minimizes the number of stu- dents we need to send to visit tas.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
What are the most likely causes of conflict at the meeting? check all that apply.
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
One of your customers wants you to build a personal server that he can use in his home. one of his concerns is making sure he has at least one backup of their data stored on the server in the event that a disk fails. you have decided to back up his data using raid. since this server is for personal use only, the customer wants to keep costs down. therefore, he would like to keep the number of drives to a minimum. which of the following raid systems would best meet the customer's specifications? a. raid 0 b. raid 1 c. raid 5 d. raid 10
Answers: 3
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Per the municipal solid waste report, what are the most common sources of waste (trash
Answers: 3
You know the right answer?
The ith ta holds office hours starting at time si and ending at time ei. each ta holds exactly one o...
Questions
question
English, 10.12.2021 01:00
question
English, 10.12.2021 01:00
question
History, 10.12.2021 01:00
question
Mathematics, 10.12.2021 01:00