Algorithms and Data Structures (INF1, Autumn'05)

Exercise Set 13



Exercise 1 (hand-in):

Take a look at the digraph from exercise 11.13 in the main textbook.


Exercise 2:



Exercise 3:

Model the organization scheme of your semester project as a DAG with cost (include only the main tasks - cca 10 to 20 nodes). Try to put as many steps in parallel as possible and estimate the time each task takes by a unit price (1 unit = 1 week of work).

Exercise 4:

Rewrite the algorithm dfs(g:DIGRAPH,a:VERTEX_TYPE) such that instead of recursion it uses a stack to remember which nodes have to be yet investigated.