Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. (a) Consider the Boolean formula ((AAB) V (AAC)) A (BAC) with assignment to the variables A, B = TRUE, C = FALSE. Evaluate the

image text in transcribed

image text in transcribed

5. (a) Consider the Boolean formula ((AAB) V (AAC)) A (BAC) with assignment to the variables A, B = TRUE, C = FALSE. Evaluate the formula. You do not need to show your work. (b) Consider the Boolean circuit, with assignment to the inputs A, B = TRUE, C = FALSE. Evaluate the Boolean circuit. Show your work by indicating the truth value produced by 10 output each gate. Use the table in the back of this assignment. The senario: You are working as a computer programmer for the Alpha Beta Gamma Software company. It is your dream job. Your manager calls you into the office with the following comment: We hired you because you have a Computer Science degree from one of those fancy colleges. Nobody else here at Alpha Beta Gamma Software has your education or ability. We are moving into the business of Boolean formula evaluation. Starting next month, every morning we will be receiving a large number of large Boolean formulas. For each formula, the assignment of TRUE's and FALSE's to the variables will be given. We will evaluate each formula. We at Alpha Beta Gamma believe that we can rely on you to write a lightning fast program to evaluate these Boolean formulas. You have no idea how to write such a program. You scour the internet but cannot find a satisfactory program to evaluate Boolean formulas. However, you do find a great program to evaluate Boolean circuits. 6. 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) Assume that you are allowed to use the program that evaluates Boolean circuits only once. Briefly explain how you would use the Boolean circuit evaluation program to evaluate a Boolean formula. (b) Show what you would do on the following formula (from Part 4a): ((ANB) V (ANC)) ^ (BAC) Make sure to draw the circuit that is input to the program that evaluates Boolean circuits. 7. Assume the scenario is reversed: You need to evaluate Boolean circuits, but you have a program that evaluates Boolean formulas. Analogously to the previous problem, it is easy to evaluate Boolean circuits directly in linear time. The spirit of this problem is to avoid doing so! (a) Assume that you are allowed to use the program that evaluates Boolean formulas only once. Briefly explain how you would use the Boolean formula evaluation program to evaluate a Boolean circuit. Show what you would do on the circuit in Part 4b. Make sure to state the formula that is input to the program that evaluates Boolean formulas

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_2

Step: 3

blur-text-image_3

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

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions

Question

3. What information do participants need?

Answered: 1 week ago