subject

Suppose that you are going to a conference, and have a set of seminars to select from. Each seminar occurs at a specific time (e. g., 1:00pm - 2:00pm). If two seminars overlap in time, you cannot participate in both of them. Your goal is to go to as many seminars as possible. For example, suppose there is a talk on algorithms from 1pm-2pm, a talk on OS from 1:30pm - 3pm, a talk on programming languages from 2pm-4pm, a talk on data structures from 2:30pm - 3:30pm, and a talk on compilers from 3:30pm - 5pm. You can do algorithms, data structures, and compilers. It is not possible to do more than three seminars given this particular set of times.

Required:
Design an efficient greedy algorithm to select non-overlapping seminars so that the number of seminars is maximized. Your algorithm should return the actual seminars selected, not just the number of seminars.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:00
Which requirement is an appropriate reason for a business to use it tools
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
The song about casey jones a railroad engineer who gives his life on the job would most likely gall under the folk song category of? a-work song b-nonsense song c-religious song d-ballad
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
You know the right answer?
Suppose that you are going to a conference, and have a set of seminars to select from. Each seminar...
Questions
question
English, 20.09.2021 04:50
question
Chemistry, 20.09.2021 04:50
Questions on the website: 13722360