Solve the cut-off tree problem