Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Homework

Q1. What would happen if someone discovered an NP-complete language L that was in P? Justify your answer.

Q2. Suppose we know that there is a polynomial-time reduction of a language L to SAT. What can we say about L? Justify your answer.

Q3. The game PEBBLES is played on a k × n chessboard. Initially each square of the chessboard has a black pebble, or a white pebble, or no pebble. You play the game by removing pebbles one at a time. You win the game if you can end up with a board in which each column contains only pebbles of a single color and each row contains at least one pebble.

(a) Show that the set of winnable PEBBLES games is in NP by describing a nondeterministic polynomial-time algorithm to determine whether a given PEBBLES board is winnable.

(b) Given a boolean expression E in 3-CNF with k clauses and n variables, construct the following k × n board: If literal xi is in clause cj, put a black pebble in column xi, row cj. If literal ¬xi is in clause c­j, put a white pebble in column xi, row cj. Show that E is satisfiable if and only if this PEBBLES game is winnable. [See HMU, Section 10.3.1, p. 448, for a definition of 3-CNF.]

(c) What can you conclude from (a) and (b)?

Q4. PAC-learning problem. Suppose we have a collection of 100 concepts. How many samples do we need to examine to find a true concept with an error of at most 0.1 and a probability of at least 95%?

Q5. Consider the lambda expression (λx. a x)((λy. b y) c).

(a) Identify all redexes in this expression.

(b) Evaluate this expression using normal order evaluation.

(c) Evaluate this expression using applicative order evaluation.

Q6. Let G be the function definition (λf. λx. f(f x)). Evaluate the lambda expression GG.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92557571
  • Price:- $35

Guranteed 24 Hours Delivery, In Price:- $35

Have any Question?


Related Questions in Computer Engineering

Question suppose we have two binary search trees b1 and b2

Question : Suppose we have two binary search trees B 1 and B 2 Give an algorithm to merge B 1 and B 2 into a single binary search tree, and runs in time linear in the sum of the sizes of the two trees. Give good justific ...

A string in c is simply an array of characters with the

A string in C++ is simply an array of characters with the null character(\0) used to mark the end of the string. C++ provides a set of string handling function in as well as I/O functions in . With the addition of the ST ...

Question suppose you were looking at network traffic and

Question : Suppose you were looking at network traffic and saw one computer transmit: Who has 192.168.1.1 And saw the reply 192.168.1.1 is at 00:cc:11:8b:73:22. What process would you be looking at? Why is this process n ...

The project is the process of implementing an information

The project is the process of implementing an information system proposal that provides a specific strategic direction while setting company performance goals and delivering customer value. I need help Identifying 4 diff ...

You have 2 tasks to createer-modeling in ms visio simple

You have 2 tasks to createER-Modeling in MS visio. Simple jab for the database expert that would take him 30 min to finish. My requirement not only for the expert to get the task done. I need to do it myself. Then he cor ...

A helium filled water balloon is launched from the ground

A helium filled water balloon is launched from the ground where the pressure is 752mmHg and temperature is 21c. Under these conditions it's volume is 75L. When it has climbed to an altitude where the pressure is 89mmHg a ...

Discuss honeypots are they legal should they be legal what

Discuss honeypots. Are they legal? Should they be legal? What are some of the potential problems for those implementing a honeypot?

In the spring of 2015 three utility companies in the

In the Spring of 2015, three utility companies in the Ukraine received email purporting to come from Ukraine's parliament, the Rada. It was addressed to employees that were used to receiving communications from the Rada ...

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Why are we in the golden age of technology entrepreneurship

Why are we in the 'golden age' of technology entrepreneurship? What factors are helping entrepreneurs more rapidly achieve their vision, and with a lower cost?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As