Implemented Alpha algorithm.