The invention relates to the technical field of computers, and discloses a method for generating a minimum
test case set of a
genetic algorithm based on
combinatorial optimization. Comprising the following steps: S1, extracting a logic dependency relationship in
software, constructing a causal diagram, mapping a
conditional branch and variable relationship into a
Boolean expression, simplifying the causal diagram, merging invalid paths, reducing input, and converting the
Boolean expression into a simplified ordered
binary decision diagram; s2, according to the simplified ordered
binary decision diagram obtained in the step 1, a combination number is obtained, and the combination number is the number of every two combinations of parameters in the simplified ordered
binary decision diagram; and S3, optimizing and simplifying the ordered binary decision diagram by adopting an improved
genetic algorithm to obtain an optimal minimum
test case set. According to the method, the causal diagram is simplified, the binary decision diagram is simplified into a simplified ordered binary decision diagram, input path branches are reduced, the problem of path explosion is effectively solved, and the cost of test work is reduced.