Complexity of Contact Circuits Realizing a Function of Logical Algebra