Checkout
checkout
view
Your Cart Your Cart: item(s)
Add to Shopping Cart
$2.19 Instant Download
Computer Science, Data Structures and Algorithms
Year 1

Algorithm Problem


Mr. Johnson draws an n-input comparison network with m comparators according to the following conventions.  The lines of the network go left-to-right, and comparators are drawn vertically to connect two lines.  The network is drawn on an underlying grid, so that each comparator occupies one of at most m columns.  Comparators can share columns, but they do not overlap.  An example of such a drawing is given below for a 4-input sorting networks.

Mr. Johnson represents a given drawing as a list L of triples, in which each triple (x, y, c) represents a comparator connecting line x to line y in column c.  For example, a representation of the sorting network above might be the list L =  (2,4,3), (1,3,2), (1,2,1), (2,3,4), (3, 4, 1).  Describe an efficient algorithm to determine the depth of a comparison network, where the input is Mr. Johnson’s representation of a drawing of the network. Analyze your algorithm in terms of m and n.

See attached file for full problem description.

Attachments
Mr Johnson.doc  View File

By OTA:  Sandeep Kumar, MTech

OTA Rating:  4.8/5

Your Price:  $2.19  (original value ~$59.85)

What's included:

  • Plain text response
$2.19 Download Add to Cart

Add to Shopping Cart
$2.19 Instant Download
Algorithm Problem - Argue briefly that to test whether a given n-element permutation can be sorted by an n-input comparison network, it suffices to test the network on n—1 sequences of 0’s and 1’s.
Algorithm Problem - The sum of n k-bit numbers can be computed by a combinational arithmetic circuit as follows. Assume 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 a...
Algorithm Problem - a. Consider an n-element list in an n-processor EREW parallel random-access machine, where some elements of the list are marked as being blue. Describe an efficient parallel algorithm to form a new list consisting of all the blue elements. Analyze your algorithm. b. Suppose that some nodes in an n-node binary tree are marked blue. Describe an efficient EREW algorithm to f...
Algorithm Problem - Analyze each of the following statements to indicate whether the statement is true or false, respectively. If the statement is correct, briefly state why. If the statement is wrong, correct it. Please elaborate on your justification or correction, but be brief. One-sentence explanations should suffice. T F For any asymptotically nonnegative function f (n). we have ...
Linear Programming Model - The Warner Corporation has three branch plants with excess production capacity. Fortunately, the corporation has a new product ready to begin production, and all three plants have this capability, so some of the excess capacity can be used in this way. This product can be made in three sizes--large, medium, and small--that yield a net unit profit of $420, $360, and $300,...

Page generated in 0.0189 seconds

About Us ·  Contact Us ·  Samples ·  Solutions ·  Legal Terms and Conditions ·  Privacy Policy

©2008 SolutionLibrary.com

Search for Solutions About Us Samples