Answered step by step
Verified Expert Solution
Link Copied!

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 two-input, one-output 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 >=0, you would like to construct a two-input, one-output combinational k-OR circuit from your supply of two-input, 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 >=0, you would like to design a k-OR circuit that uses as few gates as possible.
(a) Design a 1-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 1-OR circuit as a black box or making a new circuit from scratch, design a 2-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 k-OR circuit you can and derive a \Theta -bound (in terms of the parameter k) for the number of gates in your k-OR 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

Students also viewed these Databases questions

Question

How to reverse a Armstrong number by using double linked list ?

Answered: 1 week ago