FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

A Question for Electrical and Computer Engineers

 


NewGuyinTown
Is it safe to say a ripple-carry adder has O(n) and the look-ahead carry adder has O(1)?
Esch
While it's marginally safe to say that a ripple-carry adder has O(n) complexity, I don't think you can say that a carry-lookahead adder has O(1). As you increase n, the number of gates you require increases tremendously (by a factor of O(n^2), actually) as well as (more importantly) the number of inputs to your gates (especially the OR gates), which ends up making them much slower.

I'm not sure what the performance analysis would be off the top of my head, but it's surely more than constant time.
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.