Selection algorithm 4lab_dm