Changing poset algorithm