set Algorithms