What is the maximum number of bits in the sum of the n k-bit

Assignment Help Computer Networking
Reference no: EM13948709

The sum of n k-bit numbers can be computed by a combinational arithmetic circuit as follows.

Assume that n is an exact power of 2. The circuit consists of a complete binary tree of ripple-carry adders, in which each node in the tree adds two numbers and produces a sum which is fed to its parent. The n/2 leaves of the tree input the n k-bit numbers, and the total sum is produced as output by the root. Each ripple-carry adder is as small as possible while still ensuring that the sum is correctly computed.

[a] What is the maximum number of bits in the sum of the n k-bit numbers?

What is the number of full adders in any ripple-carry adder at height h in the tree, where we view leaves as having height 0?

[b] Give a tight asymptotic upper (big-Oh) bound in terms of n and k, on the size of this circuit (definition below). Briefly explain your answer.

[c] Give a tight asymptotic upper bound in terms of n and k on the depth of this circuit (definition below). Briefly explain your answer.

[d] Describe a combinational circuit that computes the sum of n k-bit numbers more efficiently. Analyze the size and depth of this circuit.

Circuit Depth :

As in the case of the comparison networks, we measure the propagation delay of a combinational circuit in terms of the largest number of combinational elements on any path from the inputs to the outputs. Specifically, we define the depth of a circuit, which corresponds to its worst-case "running time", inductively in terms of the depths of its constituent wires. The depth of an input wire is 0. If a combinational element has inputs x1, x2,..., xn at depths d1, d2,...,dn respectively, then it's outputs have depth (max{d1, d2,..., dn}+1).

The depth of a combinational element is the depth of its outputs. The depth of a combinational circuit is the maximum depth of any combinational element in it. Since we prohibit combinational circuits from containing cycles, the various notions of depth are well defined. If each combinational element takes constant time to compute its output values, then the worst-case propagation delay through a combinational circuit is proportional to its depth.

A combinational circuit can sometimes compute faster that its depth. Suppose that a large sub-circuit feeds into one input of a 2-input AND gate but that the other input of the AND gate has a value of 0. The output of the gate will then be 0, independent of the input being applied to the circuit, and the abstraction of depth as the "running time" of the circuit is therefore quite reasonable.

Circuit Size :

Besides circuit depth, there is another resource that we typically wish to minimize when designing circuits - the size of a combinational circuit, which is defined as the number of combinational elements it contains. Intuitively, circuit size corresponds to the memory space used by an algorithm.

This definition of circuit size is not particularly useful for small circuits. After all, since a full adder has a constant number of inputs and outputs and computes a well-defined function, it satisfies the definition of a combinational element. A full adder built from a single full adder combinational element therefore has size 1. In fact, according to this definition, any combinational element has size 1.

Reference no: EM13948709

Questions Cloud

Explain how a cumulative recorder works : Discuss the various ways of measuring learning. Explain how a cumulative recorder works? Explain the difference between within-subject and between-subjects experiments. Explain why a random assignment of subjects is unnecessary in ABA experiments
New sources of energy that are cheap and abundant : Your state's sole nuclear power plant is shutting down, and you are attending a hearing on sources of replacement power. Options on the table include building a coal-fired plant or a combined-cycle gas plant.
Why are fixed costs never relevant in a product mix decision : Why are fixed costs never relevant in a product mix decision? Why would a firm ever offer a price on a product that is below its full cost? When can a firm legally offer different prices for the same product?
Develop a similar class hierarchy for pets. : Java programmers can use class hierarchies for the purposes of inheritance. For example, given a Tree class, we could define Conifer and Deciduous sub classes that inherit from the parent Tree class as you can see here:
What is the maximum number of bits in the sum of the n k-bit : Describe a combinational circuit that computes the sum of n k-bit numbers more efficiently. Analyze the size and depth of this circuit.
What is the japanese name for the popular art : What is the Japanese name for the popular art, usually woodcuts, that literally means "pictures of the floating world"? What are the stamped characters called that have been added to many Chinese letters and paintings
Classify the resources in each of the given situations : Classify the resources in each of the above situations as flexible or committed. If the resource is committed, determine whether it is committed for the short term or committed for multiple periods.
Print the file path and the number of lines in the file : Run my script on a weekday, redirecting your output to the file my_save and append a copy of my script.
Which three countries have most equal income distribution : The two points for the international income distributions reported in Table 8-1 can be used to make a rough calculation of the Gini coefficient. Use a spreadsheet to estimate the Gini coefficient for each country. Which three countries have the mo..

Reviews

Write a Review

Computer Networking Questions & Answers

  Case studydiane the consultantsummary of case three years

case studydiane the consultantsummary of case three years ago diane started her own consulting business. she has been

  Discuss the characteristics of internet, wireless and lan

What solution would you offer? These offices do not need Internet connection, just internal, and in order for them to be able to communicate with each other, the network data packets need to route between the offices.

  Project management database system

Create a project management database system which manages baseline project information for an IT database design project, for many different users in multiple different locations of an organization.

  Describe quality-of-service

You were hired as a network engineer for a small firm that had just recently implemented a voice-over Internet protocol (VoIP) solution in its converged network, which had replaced all of its analog lines. Describe quality-of-service

  What topology would work best for the project?

Explain your choices for the topology and hardware chosen for this IT project.

  Information technology hello please i would like to

hello ltbrgt please i would like to get a good score with this assignment.hope to get a feedback

  Identify vendor-specific server-monitoring utility

Management utilities can be vendor-specific or vendor-neutral. There are many utilities that are available to provide a proactive approach to monitoring each node of the cluster. Identify vendor-specific server-monitoring utility

  Prepare design for private line network private line

How to create "rough design" to this network "prepare a rough design for private line network which would bring 256 kbps private line to each of bank's fifty branch offices.

  Explain possible violations of moral rights and of justice

In your judgment, were possible utilitarian benefits of building Caltex plant in 1977 more significant than possible violations of moral rights and of justice which may be involved?

  Explain the key concepts of circuit switching and packet

write a 4- to 6-page paper use tables whenever possible toquestion 1 describe open systems interconnection osi protocol

  Long-distance communication in a wan infrastructure

How can cables like coaxial and UTP cable be used for long-distance communication in a WAN infrastructure?

  Describe the purpose of each component in your network.

Label all components, and briefly describe the purpose of each component in your network. Each description should be placed near its associated component.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd