![]() These algorithms are very fast but could make an error. A good example is probabilistic primality testing. Such algorithms can make a mistake, but usually the error probability is very low. Monte Carlo algorithms, on the other hand, are randomized algorithm whose running time is set ahead of time. When stating the running time of a Las Vegas algorithm (say a factoring algorithm), we actually state the expected running time if we are unlucky, the algorithm could run for longer. An example is integer factoring algorithms – they always return the correct factors, but their running time depends on the randomness. Las Vegas algorithms are randomized algorithms that always return the correct answer, but their running time depends on the coin tosses. Probabilistic algorithms, for example probabilistic algorithms for primality testing, are algorithms that use randomness and could make an error with some (hopefully) small probability.Īn important distinction has to be made between Monte Carlo algorithms and Las Vegas algorithms. ![]() Randomized algorithms are algorithms that use randomness, in contradistinction with deterministic algorithms that do not. The two terms randomized algorithms and probabilistic algorithms are used in two different contexts. Random input to reduce the expected running time or memory usage,īut always terminate with a correct result in a bounded amount of ![]() Kind of randomized algorithms, and the other kind is those use the
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |