Randomized Algorithms Classification and Applications (original) (raw)

Last Updated : 20 Jan, 2026

Randomized algorithms are classified in two categories.

1. **Las Vegas

A Las Vegas algorithm is an algorithm which uses randomness, but gives guarantees that the solution obtained for given problem is correct.

2. **Monte Carlo:

A random algorithm is Monte-carlo algorithms if it can give the wrong answer sometimes.

The Monte-carlo methods are used in places where deterministic algorithms take a lot time. Monte carlo integration is the most common application of Monte-carlo algorithm. There are various methods used for integration by using Monte-carlo methods such as,

i) Direct sampling methods which includes the stratified sampling, recursive stratified sampling, importance sampling.
ii) Random walk Monte-carlo algorithm which is used to find out the integration for given problem.
iii) Gibbs sampling.

**Example to Understand the above Classification:

Consider a binary array where exactly half elements are 0 and half are 1. The task is to find index of any 1.

Applications of Randomized Algorithms