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 overlaps with the event vj but not with the event vk
How to describe a greedy algorithm that finds an optimal solution?
For example, the optimal solution for these events:
v;
v;
v;
v;
v;
v;
v
consists of the events v v
Please provide detailed, step by step help.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
