A randomised algorithm may draw random numbers as it runs; its running time and its answer are then random variables, for each input. It is a Las Vegas algorithm if its answer is always correct and only its running time is random, and a Monte Carlo algorithm if its running time is bounded but its answer may be wrong with some probability.
Computer Science · Glosarium
Apa itu Randomised algorithm, Las Vegas, Monte Carlo?
Dikenal juga sebagai: randomised algorithm · Las Vegas algorithm · Monte Carlo algorithm