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, 22.06.2019 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
1. before plugging in a new device to a computer you should unplug all other devices turn off the computer turn on the computer 2. many of the maintenance tools for a computer can be found in the control panel under administrative tools display personalization
Answers: 1
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
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
French, 24.11.2021 08:40
question
Chemistry, 24.11.2021 08:40
Questions on the website: 13722359