GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER ORGANIZATION & ARCHITECTURE

Count bounded-fan-in carry-lookahead levels

2 questions solved the same way, newest first. Back to Computer Organization & Architecture

How these are solved

A fixed-size carry generator or bounded-fan-in gate network combines carries in a hierarchy. Count logarithmic depth as operand width grows; distinguish this from unlimited-fan-in constant delay or linear ripple-carry propagation.

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

1 mark · MCQ
Report issue

Hierarchical carry-lookahead delay

Data Representation & Arithmetic

Question 2.5, GATE 1997: An N-bit adder uses 4-bit 74181 ALUs and 4-bit 74182 carry generators, with N divisible by 4. What is best asymptotic addition delay?
Tap to enlarge
Your answer
Answer & solution

Answer: B: proportional to log N (no official key was published)

A four-way carry generator combines propagate/generate information for four lower-level groups. Cascading these in a balanced hierarchy reduces the number of groups by a factor of four per level. Therefore carry information traverses O(log₄ N)=O(log N) levels, followed by constant local sum-generation work. B is the best bounded-fan-in architecture among the choices. A serial chain would take linear time, but is not the best organization; constant delay would require unbounded fan-in or a different physical model.

Original paper, page 2