-->
当前位置:首页 > 题库

主观题:Monte Carlo or Las Vegas

Luz5年前 (2021-06-19)题库513
A **Las Vegas** algorithm is a randomized algorithm that always gives the correct result, however the runtime of a Las Vegas algorithm differs depending on the input. 

A **Monte Carlo** algorithm is a randomized algorithm whose output may be incorrect with a certain (typically small) probability. The running time for the algorithm is fixed however.

Which one is better?

What is the relationship between them?







答案: