subject
Engineering, 25.02.2020 23:19 scadengo123

It turns out that it is easy to evaluate Boolean formulas directly in linear time. The spirit of this problem is to avoid doing so! A connective in a Boolean formula is an AND, OR, or NOT.

(a) For concreteness, assume that you are only allowed to use the program that evaluates Boolean circuits; everything else has to be done by hand. In one or two sentences, explain how you would use the Boolean circuit evaluation program to evaluate Boolean formulas.
(b) Show what you would do on the following example (from above): ((A ∧ B) ∨ (A ∧ C)) ∧ (B ∧ C)
(c) Assume that your roommate is very bright, and knows about Boolean formulas and circuits. You have a formula with a large number of connectives that you would like to evaluate. You still have the program that evaluates Boolean circuits; as before, everything else has to be done by hand. You are too lazy (or busy) to evaluate the formula yourself, but your roommate is willing to do it for you. In a few sentences, state what you would tell your roommate to do. (NOTE: A Boolean formula is actually two smaller Boolean formulas separated by an AND or OR, or the NOT of a smaller Boolean formula.)
(d) How fast is this, as a function of n, the number of connectives? Justify. (Don’t overthink this! The simple, obvious answer is all you need.)

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 15:10
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
question
Engineering, 04.07.2019 03:10
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
question
Engineering, 04.07.2019 18:10
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
question
Engineering, 04.07.2019 18:10
The drive force for diffusion is 7 fick's first law can be used to solve the non-steady state diffusion. a)-true b)-false
Answers: 1
You know the right answer?
It turns out that it is easy to evaluate Boolean formulas directly in linear time. The spirit of thi...
Questions
question
Biology, 29.07.2019 15:00
Questions on the website: 13722361