Chapter 10: Problem 10
Write a PRAM algorithm for Quicksort using \(n\) processors to sort a list of \(n\) elements.
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
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 free
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.
Assuming that one person can add two numbers in \(t_{e}\) time, how long will it take that person to add two \(n \times n\) matrices considering the operation of addition as the basic operation? Justify your answer.
Consider the problem of adding the numbers in a list of \(n\) numbers, If it takes \(t_{d}(n-1)\) time for one person to add all \(n\) numbers, is it possible for \(m\) people to compute the sum in less than \(\left[t_{e}(n-1)\right] / m\) time? Justify your answer.
Write a PRAM algorithm using \(n^{3}\) processors to multiply two \(n \times n\) matrices. Your algorithm should run in \(\Theta(\lg n)\) time.
What do you think about this solution?
We value your feedback to improve our textbook solutions.