Minimization
The circuit produced by our method may not give the most economical circuit.
For a general circuit, the minimization problem is an unsolved problem. However, for a function in the sum-of-products form there is a technique that produces the minimal solution.
The method is known as the Karnaugh MapMethod.