Here you can ask questions and find or give answers to organizational, academic and other questions about studying computer science.

1.2k questions

1.3k answers

1.7k comments

575 users

0 votes
In a sequential program, we consider time complexity like T(n). But in parallel computing, we want to achieve low work/total time with the help of more processors. So we try to achieve W(n)/p < Tseq(n). But in PRAM, basic slide 37. The total work achieved by the sequential program is O(n). After using parallelism, we may decrease the depth/time in the parallel program, but the work is still the same O(n). So, then why do we use this type of algorithm in real life?
in # Study-Organisation (Master) by (480 points)

1 Answer

0 votes
 
Best answer
In general, you cannot reduce the work by parallel processors. The work is related with the information content which has lower bounds that you cannot cross, regardless whether you use one or more processors. Hence, we consider the minimal work of algorithms used to solve a given problem (note that the work is independent of using one or more processors, since you can simulate any parallel algorithm also with a single processor). Now, keeping the minimal work, we aim at the reduction of the parallel time.

On page 37, that was successful, since the work is kept as the minimal work O(n), while the parallel time became O(1). Hence, with O(n) processors, the problem can be solved in a time independent of n, and with a constant number of processors less than O(n), you can utilize all of these processors. For sequential algorithms, having more than on processor is useless, but for the algorithm on page 37, that is not the case. Here, many processors help!
by (171k points)
selected by

Related questions

0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer
Imprint | Privacy Policy
...