Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assume you are given an infinite supply of two - input, one - output gates, most of which are OR gates and some of which
Assume you are given an infinite supply of twoinput, oneoutput gates, most of which are OR gates and some of which are AND gates. Unfortunately the OR and AND gates have been mixed together and you cant tell them apart. For a given integer k you would like to construct a twoinput, oneoutput combinational kOR circuit from your supply of twoinput, one output gates such that the following property holds: If at most k of the gates are AND gates then the circuit correctly implements OR Assume for simplicity that k is a power of two.
For a given integer k you would like to design a kOR circuit that uses as few gates as possible.
a Design a OR circuit with the smallest number of gates. That is your circuit should take two inputs, and always return the OR of the inputs, as long as at most one of the gates constituting the circuit is an AND gate, while the remainder are OR gates. Argue the correctness of your circuit.
b Using a OR circuit as a black box or making a new circuit from scratch, design a OR circuit. How many gates does your circuit have? Argue the correctness of your circuit.
c Generalizing the black box approach from part b or using a different approach, design the best possible kOR circuit you can and derive a Theta bound in terms of the parameter k for the number of gates in your kOR circuit. Argue the correctness of your circuit. For full credit, the number of gates in your circuit must be a polynomial in k
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started