Is it possible to choose a subset of tasks

Assignment Help Data Structure & Algorithms
Reference no: EM133026418

Question 1. Find the errors in the proofs of the following two wrong claims.

(a) Wrong claim: The following problem is NP-complete.

- Input: A CNF Φ.
- Question: Does Φ have exactly one truth assignment that satisfies it?

(b) Wrong claim: The following problem is NP-complete.
- Input: A 4-regular (i.e. all the vertices have degree 4) graph G.
- Question: Is there a subset S ⊆ V(G) that is both an independent set and a vertex cover.

Question 2. Consider a generalization of linear programming, where in addition to the original type of constraints, we can also include absolute-value constraints that are of the form:

|a1x1 + ....... + anxn| = c,

where a1's and c are integers, and x1,... , xn are variables. Prove that the following problem is NP-complete.
- Input: A (minimization) generalized linear program as described above, and a number k E Z.
- Question: Is the optimal answer ≤ k?

Question 3. Prove that the following problem is NP-complete:

- Input: An n x m matrix A with integer entries, and an integer k ≥ 0.
- Question: Is it possible to negate1 at most k rows of A such that in the resulting matrix, every column contains at least one strictly positive integer?

Question 4. Consider an undirected graph representing a social network. Suppose that some people are infected in this network, and the infection spreads by the following rule: If a node is infected, then at the next round, all its neighbours will also become infected. Prove that the following problem is NP-complete.

- Input: A graph G (with no infected nodes), two integers r,k ≥ 0.
- Question: Is it possible to initially infected at most k nodes in G such that after r rounds, all the nodes will become infected?

Question 5. Prove that the following problem is NP-complete.

- Input: a set of integers a1, ...... ak and a target integer M.
- Question: Are there signs e1, .... , en ∈ {-1, 1} such that e1a1 + .... + enan = M?

Question 6. Either prove that the following problem is NP-complete or explain how it can be solved in polynomial time: We are given a list of n tasks, and we want to select a subset of these tasks to perform. For every 1 ≤  i ≤ n, the i-th task has cost ci > 0, revenue k > 0, a list of prerequisite tasks Si ⊆ {1, , n}, and a list of incompatible tasks Ui ⊆ {1, , n}. This means that if we decide to select the task i, we also have to select every task in Si, and moreover we will not be allowed to select any task from Ui.

• INPUT: The number of tasks it n ∈ N, the costs ci, revenues bi, and sets Si and Ui for all i ∈ {1, ..... ,n}. A number k.

• QUESTION: Is it possible to choose a subset of tasks that satisfies the prerequisite and incompatibility requirements and moreover earns us at least k. That is, the total revenue minus the total cost of the selected tasks is at least k?

Reference no: EM133026418

Questions Cloud

Advancements of technology for various reasons : Most of us enjoy the advancements of technology for various reasons, such as convenience, speed, and it's enjoyable. In business, is there a time when it might
How much consignment sales revenue should reported by ryan : Gary reported sale of 25 television sets and remitted $243,000 which is net of 10% commission. How much consignment sales revenue should be reported by Ryan
Labour relations board : Assuming the Mills files a complaint with the Labour Relations Board, how would the employer likely respond to the claim(s) made in any filing with the Board?
Prepare mr jim capital statements : Prepare Mr Jim's Capital Statements (Statement of Assets and Liabilities) as at end of the years 2018 to 2020 and determine his additional income
Is it possible to choose a subset of tasks : Is it possible to choose a subset of tasks that satisfies the prerequisite and incompatibility requirements and moreover earns us at least k.
How much time uiuc undergraduate students spend : Assume that you are interested in learning about how much time UIUC undergraduate students spend playing with mobile games on their smartphones on a daily basis
Compute inventory on july : Compute inventory on July 31, 2020 and cost of goods sold for the month of July using following inventory costing methods
What is meant by the autonomy-centre : Examining the tensiens in workplace ?exibility In your own words explain what is meant by the autonomy-centre] parade}; and how do anthers Suggest reframing as
What is the value of the bonds to you : The coupon payments are annual. If you believe that the appropriate discount rate for the bonds is 18.0%, what is the value of the bonds to you

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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