DOC PREVIEW
USC CSCI 570 - HW8_Summer2015_Questions

This preview shows page 1 out of 2 pages.

Save
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CSCI 570 Summer2015 HW8 1 State True False If A p B and B N P then A N P 2 State True False If A p B and A N P complete then B N P complete 3 State True False Assume you have a polynomial time algorithm that given a 3 SAT instance decides in polynomial time if it has a satisfying assignment Then you can build a polynomial time algorithm that finds a satisfying assignment if it exists to a given 3 SAT instance 4 State True False If someone proves P N P then it would imply that every decision problem can be solved in polynomial time 5 State True False Assume P 6 N P Let A and B be decision problems If A N P Complete and A P B then B P 6 State True False Assume P 6 N P Let A and B be decision problems If A P and B N P Complete then A P B 7 Given an n bit positive integer the problem is to decide if it is composite Here the problem size is n Is this decision problem in NP 8 Show that vertex cover remains N P Complete even if the instances are restricted to graphs with only even degree vertices 9 Given an undirected graph G V E the Half Clique problem is to decide if there is a subset A V of vertices satisfying the following two conditions i A V2 ii For every pair of vertices u v A if u 6 v then u v E Show that Half Clique is in N P Complete You are allowed to use the fact that Independent Set is in N P Complete 10 Given an undirected graph G and a positive integer k consider the decision problem which asks if a simple path no repeating vertices of length at least k exists 1 Is this decision problem in NP Assuming P 6 NP is it in P 11 Given an undirected graph with positive edge weights the BIG HAMCYCLE problem is to decide if it contains a Hamiltonian cycle C such that the sum of weights of edges in C is at least half of the total sum of weights of edges in the graph Show that BIG HAM CYCLE is NPComplete You are allowed to use the fact that deciding if an undirected graph has a Hamiltonian cycle is NP complete 12 You are given an undirected graph G V E and for each vertex v V you are given a number p v which is either 0 or 1 or 2 that denotes the number of pebbles stones placed on v We will now play a game where the following move is the only move allowed You can pick a vertex u that contains at least two pebbles and remove two pebbles from u and add one pebble to one your choice of the neighboring vertices of u The objective of the game is to perform a sequence of moves such that we are left with exactly one pebble in the whole graph Show that the problem of deciding if we can reach the objective is NP complete 13 Assume that you are given a polynomial time algorithm that decides if a directed graph contains a Hamiltonian cycle Describe a polynomial time algorithm that given a directed graph that contains a Hamiltonian cycle lists a sequence of vertices in order that form a Hamiltonian cycle 2


View Full Document

USC CSCI 570 - HW8_Summer2015_Questions

Download HW8_Summer2015_Questions
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view HW8_Summer2015_Questions and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view HW8_Summer2015_Questions and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?