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 · 术语表
什么是 Randomised algorithm, Las Vegas, Monte Carlo?
又称: randomised algorithm · Las Vegas algorithm · Monte Carlo algorithm