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:30
Requirement types discussed during software development include functional and color scheme nonfunctional and code style constraint and nonfunctional fashionable and functional.
Answers: 2
question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 23.06.2019 11:30
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
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
Mathematics, 29.01.2020 12:46
question
Mathematics, 29.01.2020 12:46
question
Mathematics, 29.01.2020 12:46
question
Mathematics, 29.01.2020 12:46
question
Mathematics, 29.01.2020 12:46
Questions on the website: 13722361