Describing a nondeterministic polynomial-time algorithm

Assignment Help Computer Engineering
Reference no: EM131748887

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.

Reference no: EM131748887

Questions Cloud

Compare and contrast gilgamesh and rama as heroes : Compare and contrast Gilgamesh and Rama as heroes. How does each hero embody the values of his culture
Discuss christianity influenced medieval european states : Compare the ways that Christianity influenced Medieval European states and the way that Buddhism influenced
Describe that all transactions are cash transactions : Gunn Manufacturing Company experienced the following accounting events during its first year of operation. With the exception of the adjusting entries.
What are the weaknesses of this thesis statement : What are the weaknesses of this thesis statement, essay will cover the ethos, pathos, and logos of the CDC web page
Describing a nondeterministic polynomial-time algorithm : COMS W3261 CS Theory: Homework. Show that the set of winnable PEBBLES games is in NP by describing a nondeterministic polynomial-time algorithm
Design an interior setting from residential domestic waste : design an interior setting from residential domestic waste by using the methods of reuse, recycle and up-cycling which creates environment friendly atmosphere.
Evidence to convince readers that your idea is true : Explain an idea you've had while thinking about and researching your chosen topic, and use logic and evidence to convince readers that your idea
Determine the key challenges that police officers face : Determine the key challenges that police officers face when responding to this problem
Discuss significant influences on art works painting styles : Compare and contrast these two works and discuss significant influences on art works painting styles. Provide links to these works. Minimum: one page.

Reviews

len1748887

12/4/2017 1:21:54 AM

Each problem is worth 20 points. You can discuss problems with others but your answers must be in your own words. Late assignments cannot be accepted. What would happen if someone discovered an NP-complete language L that was in P? Justify your answer.

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd