Algorithm and results