Dominating set in algorithms environment