can find optimal splitting sets