Week 4 Assignment 4 with solution final
Week 4 Assignment 4 with solution final
Assignment – 4
Qns.1: Which option(s) is/are correct related to partitioning?
a. Partitioning is the process of decomposing complex systems into smaller, manageable
parts.
b. Partitioning of a chip into smaller subcircuits is called system level partitioning.
c. The partitioning of a system into a group of PCBs is called board-level partitioning.
d. The aim is to minimize the area of each chip as the manufacturing cost is proportional to
chip area.
Qns.5: The values of D(1), D(3), D(6), and D(8) in the first iteration of the KL algorithm for the
given graph are _____ respectively.
a. 1, 0, 0, 1
b. 0, 1, 1, 0
c. 0, 1, 0, -2
d. 1, 0, 0, -2
e. 0, 0, 1, -1
Ans: (b)
Sol: The definition of the cost function used in the KL algorithm is D(a) = Ec(a) – Enc(a)
Where Ec(a) is the set of a’s incident edges that are cut by the cut line, and
Enc(a) is the set of a’s incident edges that are not cut by the cut line.
D(1) = 1 – 1 = 0
D(3) = 2 – 1 = 1
D(6) = 2 – 1 = 1
D(8) = 1 – 1 = 0
Qns.6: The sum of Δg(2,5) and Δg(3,7) in the first iteration of the KL algorithm for the given
graph is _____.
Ans: 0
Sol: The definition of the gain used in the KL algorithm is Δg(a,b) = D(a) + D(b) – 2c(a,b)
Where c(a,b) = 1, if there is an edge between a and b else c(a,b) = 0.
Δg(2,5) = D(2) + D(5) – 2c(2,5) = 0 + 0 – 2*0 = 0.
Δg(3,7) = D(3) + D(7) – 2c(3,7) = 1 + 1 – 2*1 = 0.
Sum = Δg(2,5) + Δg(3,7) = 0 + 0 = 0.
Qns.7: How many times is Cost D(nodes) calculated in the first pass of the KL algorithm for the
given graph?
Ans: 20
Sol: In the first iteration (k=1), there are 8 nodes.
∴ In the first iteration, D is calculated 8 times. In the successive iterations, two nodes are fixed.
So, in second iteration, D is calculated 6 times and so on.
∴ Number of times D is calculated in first pass of KL algorithm is = 8 + 6 + 4 + 2 = 20.
Qns.8: The value of gain, Δg(c), in the first iteration of the FM algorithm, is ____.
Ans: 1
Qns.9: Which of the following is the correct balance criterion for the given graph?
a. 4 ≤ Area(A) ≤ 11
b. 3 ≤ Area(A) ≤ 11
c. 3 ≤ Area(A) ≤ 12
d. 4 ≤ Area(A) ≤ 12
Ans: (b)
Qns.10: Choose the base cell(s) for the first iteration of the FM algorithm for the given graph.
a. a
b. b
c. c
d. d
e. e
f. f
Ans: (c)
Sol: A base cell is a cell c with the greatest cell gain ∆g(c), among all free cells whose move
does not violate the balance criterion.