Dependency Algorithm - find a minimum set of packages to install
问题 I'm working on an algorithm which goal is to find a minimum set of packages to install package "X". I'll explain better with an example: X depends on A and (E or C) A depends on E and (H or Y) E depends on B and (Z or Y) C depends on (A or K) H depends on nothing Y depends on nothing Z depends on nothing K depends on nothing The solution is to install: A E B Y. Here is an image to describe the example: Is there an algorithm to solve the problem without using a brute-force approach? I've