A Las Vegas algorithm is an algorithm that uses randomness . If the algorithm gives a result , this result will be the correct one .
In computing , a Las Vegas algorithm is a randomized algorithm that always gives correct results ; that is , it always produces the correct result or it informs about the failure .