Valid split algorithm?