Chapter 10: Problem 7
Write a CREW PRAM algorithm for adding all \(n\) numbers of a list in \(\Theta(\lg n)\) time.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
/*! 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 7
Write a CREW PRAM algorithm for adding all \(n\) numbers of a list in \(\Theta(\lg n)\) time.
These are the key concepts you need to understand to accurately answer the question.
All the tools & learning materials you need for study success - in one app.
Get started for free
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.
Consider the problem of adding two \(n \times n\) matrices. If it takes \(t_{\alpha}\) time for one person to add two numbers, 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 answers.
Write a CREW PRAM algorithm for determining for each element of an \(n\) -clement linked list if it is the middle \(\left(\int n / 2 \text { th }\right)\) element in \(\Theta(\lg n)\) time.
Write a PRAM algorithm for Quicksort using \(n\) processors to sort a list of \(n\) elements.
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.
What do you think about this solution?
We value your feedback to improve our textbook solutions.