Part 2: Solving the "Please take me out of here!" with a Greedy Approach

Back to labs page.

The second task requires you to try tackling the "Please take me out of here!" problem by using a greedy approach.

As you know from the course, a greedy algorithm is any algorithm that constructs the optimal solution of the problem by performing a local, efficient optimal choice at each step. The attractive features of greedy algorithms is they are usually easy to program, and very efficient in their computational complexity.

A number of problems can be solved by greedy algorithms: you might want to have a look, for example, at the MST problem or the SSSP problem.

Unfortunately not all the problems can be solved efficiently with this approach, and "Please take me out of here!" is, of course, one of these problems. This means that, regardless of which greedy strategy one can imagine, there will always be a class of instances for which the proposed strategy will produce a sub-optimal result.

In this assignment we want you to experiment how easy it is to imagine a greedy strategy for a problem, and how tricky it is to ensure the designed strategies guarantees optimality in all problem instances.

To achieve this result, you need to complete the following tasks:

You then need to provide us documentation of your experiments. This documentations consists of

The requirements on these two files are given below.

PROGRAM REQUIREMENTS

Please remember a solution always starts from node 1.

REPORT REQUIREMENTS

For this part your report will be a document written in ENGLISH with the following structure:

Submission

To submit you will use the Fire system.

Deadline for this assignment is 23 Semptember, and the deadline is strict.