Splitting a problem into independent subproblems through assignment of some variables, and solving the subproblems efficiently