Fixed height algorithm when one set is empty