Consider an event organizer scheduling a set of n meetings, each with a start and a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider an event organizer scheduling a set of n meetings, each with a start and a finish time. Suppose that all the start and finish times are distinct. The event venue has plenty of rooms, but renting a room is expensive. Therefore, the event organizer aims to schedule the meetings so that • each meeting takes place at a different room, • no two meetings that take place in the same room conflict with each other, and • the minimum number of rooms are used for the meetings. For instance, the following four meetings (denoted by different colors) are scheduled to use two rooms: The red and green meetings in Room 1, and the yellow and blue meetings in Room 2. Room 2 Room 1 Design a greedy algorithm to find the minimum number of rooms that are needed to schedule all the meetings subject to the constraints above. (a) (10 points) The greedy choice of "choosing the meeting with the earliest finish time" does not lead to an optimal solution. Please give an example with at most 4 meetings to illustrate this. (b) (10 points) Find a different greedy choice that your algorithm will make at each step, and that leads to an optimal solution. Please explain how optimality is guaranteed. (c) (10 points) Write down a pseudocode for your greedy algorithm. (d) (10 points) Analyze the worst-case asymptotic running time of your greedy algorithm. Consider an event organizer scheduling a set of n meetings, each with a start and a finish time. Suppose that all the start and finish times are distinct. The event venue has plenty of rooms, but renting a room is expensive. Therefore, the event organizer aims to schedule the meetings so that • each meeting takes place at a different room, • no two meetings that take place in the same room conflict with each other, and • the minimum number of rooms are used for the meetings. For instance, the following four meetings (denoted by different colors) are scheduled to use two rooms: The red and green meetings in Room 1, and the yellow and blue meetings in Room 2. Room 2 Room 1 Design a greedy algorithm to find the minimum number of rooms that are needed to schedule all the meetings subject to the constraints above. (a) (10 points) The greedy choice of "choosing the meeting with the earliest finish time" does not lead to an optimal solution. Please give an example with at most 4 meetings to illustrate this. (b) (10 points) Find a different greedy choice that your algorithm will make at each step, and that leads to an optimal solution. Please explain how optimality is guaranteed. (c) (10 points) Write down a pseudocode for your greedy algorithm. (d) (10 points) Analyze the worst-case asymptotic running time of your greedy algorithm.
Expert Answer:
Answer rating: 100% (QA)
a Earliest finish time greedy choice An example of why choosing the meeting with the earliest finish time doesnt always work is as follows Consider 3 meetings Meeting 1Starts at 1000Ends at 1100 Meeti... View the full answer
Related Book For
Database Systems Design Implementation And Management
ISBN: 9780357673034
14th Edition
Authors: Carlos Coronel, Steven Morris
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The Company is considering investing in a new Compressed Air machine that has an estimated life of 8 years. The cost of the machine is $6 million, and the machine will be depreciated using MACRS over...
-
Samson Company manufactures embroidered jackets. The company uses a standard cost system to control manufacturing costs. The following data represent the standard unit cost of a jacket: Fixed...
-
An amount of $46,000 is divided among three investments yielding $3020 in interest per year. The interest rates for the three investments are 5%, 7%, and 8% simple interest. Find the amount placed in...
-
For each of these problems, perform the following steps. a. State the hypotheses and identify the claim. b. Find the critical value(s). c. Compute the test value. d. Make the decision. e. Summarize...
-
Hi-Cloud, Inc., is a start-up tech company. It is seeking a substantial line of credit from a federally insured commercial bank. Among other questions, the loan application requires disclosure of the...
-
Accounting for Forward Contracts-Hedging and Speculation Futura Corporation, a calendar-year corporation, is an active trader in foreign exchange, to hedge its international activities and for...
-
Assume the export price of a Nissan car from Japan is Yen 3,000,000. The exchange rate is Yen 122.00/$. A forecast on inflation in the USA is 2% and 0% in Japan per annum. Assuming purchasing power...
-
If the Sommers had chosen the original 15-year, 6.25% mortgage proposal, how much tax shelter would they have lost (over the last five years) as compared to the 30-year, 7.25% mortgage?
-
The hydrated salt Na2CO3 xH2O undergoes 63% loss in mass on heating and becomes anhydrous. The value of x is:
-
Work is not necessarily interesting or rewarding or satisfying as the descriptions show. On the contrary, we know that many jobs are dull, repetitive, and stressful. One of the challenges for...
-
The customer is a 25000 people company. They are currently using an in-house ERP solution for streamlining the business functions and processes. They have a home grown ERP but they are not able to...
-
Prince Musical Supply sells musical instruments but is not well known in the industry. The CEO hopes to increase market share over the next year and has directed her sales team to focus on finding...
-
Suppose Kenny is involved in an accident that was not his fault and the other driver has 50/100/25 coverage limits. Kenny's injuries amount to $20,000. How much will the other driver's policy cover...
-
Using your Virtual machine, do the following tasks: PART1: You will be required to add 3 users to your system. For the sake of simplicity, use the following information for your user...
-
2) Let X be a compact subset of R2. Consider the metric space (X, d) with the Euclidean metric d. a) Find the IFS with contraction factors that generates the treelike set given below. 45 D --- 0=45...
-
Read the following description and Write a response of it. The discretion of public administrators can be decreased, but not altogether eliminated. Officials will use their discretion in any given...
-
Write a query to display the subject and the number of books in each subject. Sort the results by the number of books in descending order and then by subject name in ascending order (Figure P7.84)....
-
Write a query to display the book number, title with year, and subject for each book. Sort the results by the book number (Figure P7.89). Figure P7.89 Book Title with Year BOOK NUM 5235 Beginner's...
-
Explain the differences between data, information, and a database.
-
Management is Ongoing process Social process Integrated process All the above
-
Which of the following approaches is used to study management? Art Process Science Profession
-
Which is the correct order for the process of management? Planning, organizing, staffing, directing, and controlling Planning, organizing, directing, staffing, and controlling Planning,...
Study smarter with the SolutionInn App