0
$\begingroup$

We have the big O notations for sequential algorithms , but is there a notation to represent parallel algorithms in a similar way?

Motivation:

A sequential algorithm may be O(n7) but its parallel implementation might make it O(1) so what is the motivation and tradeoff between spending time to design lower complexity algorithms then simply paralyzing it to achieve an even better performance? How this fact could be incorporated in the complexity theory notations?

Note:

Writing a parallel version is also a challenge but many times its a low hanging fruit which can be quickly solved without much creativity.

Raphael
73.3k31 gold badges183 silver badges403 bronze badges
asked Sep 4, 2016 at 10:47
$\endgroup$
3
  • $\begingroup$ "but its parallel implementation might make it O(1)" -- in which model? $\endgroup$ Commented Sep 4, 2016 at 12:27
  • $\begingroup$ Note that parallel and concurrent computing are very different things. You should clarify what you want to talk about. $\endgroup$ Commented Sep 4, 2016 at 12:35
  • $\begingroup$ Finally, "complexity classes" and "Landau classes" are not the same thing. $\endgroup$ Commented Sep 4, 2016 at 12:36

1 Answer 1

1
$\begingroup$

Parallel complexity uses the same Landau notation but a different machine model, usually the PRAM which allows polynomially many processors (in the input size). This gives rise to complexity classes like NC.

If you are into algorithms outside of massively-parallel settings, this is all quite useless: the existence of PRAM algorithms does not tell you anything about algorithms on "real" computers, i.e. such with finitely many processors.

answered Sep 4, 2016 at 12:35
$\endgroup$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.