algorithm 15 740