×
×

# Show that a greedy algorithm that schedules talks in a ISBN: 9780073383095 37

## Solution for problem 58E Chapter 3.1

Discrete Mathematics and Its Applications | 7th Edition

• Textbook Solutions
• 2901 Step-by-step solutions solved by professors and subject experts
• Get 24/7 help from StudySoup virtual teaching assistants Discrete Mathematics and Its Applications | 7th Edition

4 5 0 364 Reviews
17
5
Problem 58E

Show that a greedy algorithm that schedules talks in a lecture hall, as described in Example 7. by selecting at each step the talk that overlaps the fewest other talks, does not always produce an optimal schedule.

Step-by-Step Solution:

Solution :Step 1:In this problem, we have to show that the greedy algorithm that schedules talks in a lecture hall, if selecting at each step the talk that overlaps the fewest other talks, does not always produce an optimal schedule.Step 2:Greedy Algorithm: The greedy approach works for a number of optimization problems, including some of the most fundamental optimization problems in computer science. Thus this is an important algorithm design technique to understand. Even when greedy algorithms do not produce the optimal solution, they often provide fast heuristics(nonoptimal solution strategies) and are often used in finding good approximations. Greedy Algorithm for selection problem: Now the Lecture -Hall Assignment(s ,f) n= length [s] For i = 1 to n Do HALL [i] = NIL k= 1 While (Not empty (s)) do HALL [k] = GREEDY -ACTIVITY-SELECTOR(s,t,n) k = k+1 Return HALL

Step 3 of 3

##### ISBN: 9780073383095

This textbook survival guide was created for the textbook: Discrete Mathematics and Its Applications, edition: 7. This full solution covers the following key subjects: talks, other, described, Example, fewest. This expansive textbook survival guide covers 101 chapters, and 4221 solutions. The answer to “Show that a greedy algorithm that schedules talks in a lecture hall, as described in Example 7. by selecting at each step the talk that overlaps the fewest other talks, does not always produce an optimal schedule.” is broken down into a number of easy to follow steps, and 37 words. Since the solution to 58E from 3.1 chapter was answered, more than 366 students have viewed the full step-by-step answer. The full step-by-step solution to problem: 58E from chapter: 3.1 was answered by , our top Math solution expert on 06/21/17, 07:45AM. Discrete Mathematics and Its Applications was written by and is associated to the ISBN: 9780073383095.

Unlock Textbook Solution