Week 12 Assignment Solution
Week 12 Assignment Solution
A. bounded above
B. bounded below
C. Both A and B
D. None of the above
2. In a flow network, for any flow f and any cut (S,T), we have
A. | f | < f(S,T)
B. | f | > f(S,T)
C. | f | = f(S,T)
D. None of the above
3. Find the net flow across the cut (S,T) in the given flow network. Here S = {v 1 ,v 2 ,s}
and T = {v 3, v 4 ,t}.
A. 17
B. 19
C. 26
D. 23
Hints: Flow=12+11-4=19
4. When computing the nth fibonacci number, which of the following is a better idea, in
terms of computational complexity?
A) Combining
B) Hashing
C) Memoization
D) Dividing
A. P⊃EXP⊃R
B. (P−R)⊃EXP
C. P⊂EXP⊂R
D. P⊂EXP⊃R
8. Which of the following is true (assume that P ≠ NP)? (Here NPC stands for NP-
complete)
A. NP=NPC
B. P ⊂ NPC
C. P=NPC
D. NPC ∩ P= Φ
9. Decision problems which are solvable in polynomial time via a lucky algorithm are:
A. NP problems
B. EXP problems
C. R problems
D. All of the above
10. What is the capacity of the cut (S,T) in the flow network given below? S contains the
vertices s, o and p. T contains the vertices q, r and t.
A. 9
B. 5
C. 11
D. 8
Hints: Capacity=3+2=5