GATE / CS ARCHIVE

GATE CSE 2016 SET 1 / QUESTION 33

GATE CSE 2016 Set 1 Q33

Computer Organization & Architecture · Data Representation & Arithmetic · Full GATE CSE 2016 Set 1 paper

GATE 2016 Set 1, Q33 2 marks · MCQ
Report issue

Data Representation & Arithmetic

Question 33, GATE 2016: An n-bit carry-lookahead adder uses gates with fan-in at most 2. What is its asymptotic addition time? A: Θ(1). B: Θ(log n). C: Θ(√n). D: Θ(n).
Tap to enlarge
Your answer
Answer & solution

Official answer: B

With bounded fan-in 2, carry generate/propagate combines through a balanced prefix tree of depthΘ(log n). The high-order result depends on Θ(n) inputs, and depth d gates can depend on at most 2d inputs, giving a matching Ω(log n) lower bound. Thus Θ(log n), B.

A carry can be summarized by generate and propagate signals, and adjacent summaries combine associatively. A balanced tree merges pairs, then groups of 4,8 and so on; after logarithmically many levels the needed carry information spans all bits. With fan-in bounded by 2, a constant number of levels cannot combine information from arbitrarily many positions. This restriction is why the unbounded-fan-in intuition of a single huge AND/OR gate cannot justify constant-time addition here.

Original paper, page 13 · Answer key