Question: Greedy algorithm... At a conference, your goal is to attend the smallest subset of events that conflict with every other event that you could be

Greedy algorithm...
At a conference, your goal is to attend the smallest subset of events that conflict with every other event that you could be attending - that way, if your boss asks you why you didn't attend more events, you'll be able to tell her that you couldn't attend any other events due to scheduling conflicts.
Formally, the conference events are given as an input list V , and each event vi is defined by a start time and finish time (si, fi). Your goal is to select the smallest subset of events such that every event in V overlaps with at least one of your chosen events. An event vi =(1,4) overlaps with the event vj =(3,5) but not with the event vk =(4,6).
How to describe a greedy algorithm that finds an optimal solution?
For example, the optimal solution for these events:
v1=(1,3);
v2=(2,4);
v3=(3,4);
v4=(3,5);
v5=(4,5);
v6=(4,6);
v7=(5,7).
consists of the events v2, v6
Please provide detailed, step by step help.
Previous tutor answer was incorrect...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!