subject

The size of a comparison network is the number of comparators, and the depth is the number of levels of comparators. For example, in the Wikipedia article, the initial sorting network for four inputs has size five and depth three. Notice that the first two comparators can execute simultaneously, so they are actually at the same level. The parallel bubble sort network for six inputs has size fifteen and depth nine. In general, a parallel bubble sort network for n inputs has size n(n βˆ’ 1)/2 and depth 2n βˆ’ 3. A minmax network inputs a list of size n and outputs a list of size n with the smallest value at the beginning of the list the largest value at the end of the list. For example if the input is the list of size n = 8

(40,80, 30, 60, 10, 70,20,50).

The output would be (10, ?, ?, ?, ?, ?, ?,80).

1. Let n be a power of 2.

a. Show how to construct an efficient minmax network with n inputs. Primarily minimize the depth and secondarily minimize the size. Just describe the network; do not justify.
b. What is the (exact) size of your network?
c. What is the (exact) depth of your network?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select β€œstate” under field name, then type in the state name under β€œequal to”
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
Respond to the following in three to five sentences. select the workplace skill, habit, or attitude described in this chapter that you believe is most important for being a successful employee.
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
You know the right answer?
The size of a comparison network is the number of comparators, and the depth is the number of levels...
Questions
question
Mathematics, 04.05.2021 17:20
question
Mathematics, 04.05.2021 17:20
question
Health, 04.05.2021 17:20
question
Mathematics, 04.05.2021 17:20
question
Physics, 04.05.2021 17:20
Questions on the website: 13722361