Prove that MUTINY-FREE-ALLOCATION is in NP

Assignment Help Mathematics
Reference no: EM132313104

Math Assignment - Algorithms

Need help with a couple of NP hardness proofs.

Task 1 -

You are a pirate captain. After looting a cargo ship, you need to divide up the n treasure chests among k pirates in an egalitarian manner to avoid mutiny. A reasonable way to model this is that the happiness of a pirate is the total value of his allocation, and the goal is to find an allocation such that least-happy pirate is as happy as possible.

This suggests the following decision problem called MUTINY-FREE-ALLOCATION (or MFA for short). The input to MUTINY-FREE-ALLOCATION consists of:

  • a list of n non-negative integers v1, . . . , vn,
  • the number of pirates k, and
  • a lower bound l.

The problem is to decide if there is a partition of v1, . . . , vn into k subsets S1, . . . , Sk such that each subset Si sums to at least l.

Your task is to prove that -

(a) MUTINY-FREE-ALLOCATION is in NP,

(b) MUTINY-FREE-ALLOCATION is NP-hard using a Karp reduction. [Hint: Reduce from the Partition problem.]

Task 2 -

You are planning a road trip across Australia and need to decide which destinations you can reach from Sydney. The constraints are as follows: each road has a length and a toll cost; moreover, your car can travel K kilometers before it breaks down and you have D dollars. A destination is reachable if there exists a path from Sydney to the destination with total length at most K and total cost at most D.

This suggests the following decision problem called ROAD-TRIP-REACHABILITY (or RTR for short). The input consists of:

  • an undirected graph G = (V, E) where each edge e has a non-negative integer length l(e) and a non-negative integer cost c(e),
  • a source vertex s and a destination vertex t in V,
  • a non-negative integer length budget K and a non-negative integer cost budget D.

The problem is to decide if there exists a simple path P from s to t in G with total length ∑e∈p l(e) ≤ K and total cost ∑e∈P c(e) ≤ D.

Your task is to prove that -

(a) ROAD-TRIP-REACHABILITY is in NP,

(b) ROAD-TRIP-REACHABILITY is NP-hard using a Karp reduction. [Hint: Reduce from the Partition problems].

Attachment:- Assignment Files.rar

Reference no: EM132313104

Questions Cloud

Write a code to design a band-stop filter : Designing a band-stop FIR filter using Frequency sampling approach - Write a code to design a band-stop filter. Design a band-stop filter by having
Designing bandpass fir filter using windowed fourier series : Designing a low pass FIR filter using Windowed Fourier Series approach - Designing a bandpass FIR filter using Windowed Fourier Series approach
Implement and utilise a relational database : Implement and utilise a relational database using a database system - Model organisational information requirements using conceptual data modelling techniques
Data model development and implementation : Understand the fundamental principles of the networking and data requirements of a network - Identify organisational information requirements - Model
Prove that MUTINY-FREE-ALLOCATION is in NP : Your task is to prove that - MUTINY-FREE-ALLOCATION is in NP, and MUTINY-FREE-ALLOCATION is NP-hard using a Karp reduction
Performance evaluation of the design : Advanced Network Design Assignment - Network requirement analysis, plan and design - Evaluate performance metrics and dimensions according to specifications
Network requirement analysis - plan and design : Design must be the transformation of the existing design show in Figure 1 (i.e., IP addressing, number of departments etc., should remain intact in the new
Challenges faced by international student in english : Challenges faced by international student in English language in Australia - demonstrating their understanding of the business research paradigm, appropriate
Five different organizational mission statements : Using the mission statements, describe what types of corporate-level and business-level strategies each organization might use to fulfill that mission statement

Reviews

Write a Review

Mathematics Questions & Answers

  Find the total revenue from the sale

a) Find the total revenue from the sale of 500 units. b) Find the marginal revenue MR at 500 units.

  What is the fee if the project is completed 49 day

Using the information on project completion, describe the fee increase if the company does not complete the project by the agreed deadline.

  Estimate the populations in the city

Then estimate the populations in the city and in the suburbs two years later, in 2012.

  Find the total income for the optimum number

find the total income for the optimum number of days C) find the total expenditures for the optimum number of days D) find the maximum profit for the job

  Determining the nutrition labels

Is there evidence that the nutrition label does not provide an accurate measure of calories in the bags of potato chips?

  Set up a transition matrix

Are there any absorbing states? I know that I have to set up a transition matrix, but I am having trouble after that. Can you help me?

  Characteristic of the line makes the behavior

What characteristic of the line makes the behavior of these lines different?

  Find the height of the cilff

measure of angle of elevation of the top of a cliff is 25. on walking 100m towards the cliff measure of angle of elevation of the top is 45. find the height of the cilff.

  Compute interest compounded semiannually

Derek established his own retirement account ten years ago. He has discovered that he can obtain a better rate for the next 10 years at 12% interest compounded semiannually

  Actual interest rate paid by the treasury

The given treasury bill was sold in April of this year. Find (i) the price of the T-Bill, and (ii) the actual interest rate paid by the treasury. Round dollars to the nearest cent and interest rates to the nearest thousandth.

  Fewest number of prizes

You are asked to distribute $1800 in prize money. The dollar amounts for the prizes are $625, $125, $25, $5, and $1. How should this money be distributed in order to give the fewest number of prizes?

  Determine equation of vertical and horizontal asymptote

Determine the equation(s) of the vertical and horizontal asymptote(s) of the rational function f(x) = x-2/2x2 + x - 1

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