Chapter 10: Problem 10
Write a PRAM algorithm for Quicksort using \(n\) processors to sort a list of \(n\) elements.
Chapter 10: Problem 10
Write a PRAM algorithm for Quicksort using \(n\) processors to sort a list of \(n\) elements.
All the tools & learning materials you need for study success - in one app.
Get started for freeConsider the problem of adding \(n\) numbers of a list. If it takes \(t_{a}\) time for one person to add two numbers, and it takes no time to pass the result of an addition from one person to another, how many people do we need to minimize the total time spent to get the final answer? What will be the minimum amount of time needed to find the answer if we have enough people? Justify your answer.
Write a CRCW PRAM algorithm that uses \(n^{2}\) processors to multiply two \(n \times n\) matrices. Your algorithm should perform better than the standard \(\Theta\left(n^{3}\right)\) -time serial algorithm.
Write a scquential algorithm that implements the Tournament Method to find the largest key in an array of \(n\) keys. Show that this algorithm is no more efficient than the standard sequential algorithm.
Write a PRAM algorithm that runs in \(\Theta(\lg n)^{2}\) ) time for the problem of mergesorting. (Hint: Use \(n\) processors, and assign each processor to a key to determine the position of the key in the final list by binary searching.)
Assuming that one person can add two numbers in \(t_{e}\) time, how long will it take that person to add all \(n\) numbers of a list considering the operation of addition as the basic operation? Justify your answer.
What do you think about this solution?
We value your feedback to improve our textbook solutions.