PROJECT2 B
PROJECT2 B
Notes:
• The out-degree of a node is the number of directed edges that point out
of the node.
• The representations for the input and output graphs (such as adjacency
matrix, or adjacency list) are your choice.
– For each task there are two given machines on which it can run, it
must be assigned to precisely one of them. A machine, however,
may run an unlimited number of tasks.
– The execution time of every task is 1 time unit. If a machine is
assigned k tasks, it completes its work in k time units, starting
from 0.
– The whole task system is completed, when every machine com-
pleted its work. This is the completion time of the system.
1
– The goal is to assign the tasks to the machines, under the above
constraints, such that the completion time of the whole task sys-
tem is minimized.
2. Analyze the running time of the algorithm, in terms of the O(.) notation
(order of magnitude). Your algorithm must run in polynomial time, in
terms of the graph parameters. Exhaustive search is not acceptable.
3. Prove the correctness of the algorithm, i.e., convince the reader that it
indeed finds an optimal solution.
2
5. Select some test examples for demonstration, and run your program on
them. Show a few results graphically. There is no rigid requirement on
the number, size, and structure of the test examples, but they should
demonstrate your solution in a way that looks convincing to a reader
(who can be viewed as a potential “customer”).
Submission guidelines
Describe everything, including the algorithm, program, sources, results and
figures neatly and clearly in a study. Include everything in a single document
that can be read as a report. It should have a professional appearance,
scanned handwriting is not acceptable! The preferred file type is pdf. Do
not submit executable code, but include the source code as an Appendix in
the document. The project report will be read as a document and not run
as a program (but there are two exceptions, see them under Evaluation).
Submit the document through eLearning. Do not send it via e-mail!
Notes:
• The work should be fully individual and original. Any form of cheat-
ing is a serious violation of University policies and can lead to serious
consequences.
• It may be helpful to think about the whole project presentation that
your task is not only to solve a technical problem, but you also have
to “sell” the results. Try to look at your work from the viewpoint of a
potential customer, to whom you want to sell such a software product.
How convincing would your presentation look for a customer?
Evaluation
The evaluation will focus on how well each of the specific tasks have been
carried out. Even though the submission will not be run, only read as a
document, there are two exceptions. You will be asked to demonstrate on
a computer how your program actually runs, if any of the following cases
occur:
3
1. You do not agree with the grade and want to improve it. In this case
the demonstration should show that your work is actually better than
the received grade.
2. There is suspicion that the work is not original or not individually done
or the results were not produced by your own correctly running pro-
gram. In this case a demonstration is required to clarify the situation
and to receive any score.