algorithm 27 434