Docsity

CS 6505: Midterm Questions - Algorithm, Computability and Complexity, Exams of Computer Science

Partial preview of the text

Download CS 6505: Midterm Questions - Algorithm, Computability and Complexity and more Exams Computer Science in PDF only on Docsity!

CS 6505: Algorithm, Computability and

Complexity

Fall 2007

Sample Midterm Questions

Turing-recognizable languages are closed under complementation. That is, if language L is Turing-recognizable, then so is its complement L.

Answer: True False

Justification:

If the capacity of each edge in a flow network G = (V, E) is multiplied by c, then the value of a maximum flow in G is also multiplied by c. Moreover, if f is a maximum flow in the original network (before the edge capacities are changed), then f ′^ defined as f ′(e) = cf (e) for each edge e ∈ E is a maximum flow in the new network (after the edge capacities are changed).

Answer: True False

Justification:

Although the original Ford-Fulkerson algorithm may fail to terminate in the case where edge capacities are arbitrary real numbers, it can be slightly modified so that it is guaranteed to terminate in the case where edge ca- pacities are rational numbers, regardless of how the augmenting paths are chosen. This is an immediate consequence of the statement in Question 3.

Answer: True False

Justification: