主观题:Monte Carlo or Las Vegas
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? 答案: