Write a linear program

Assignment Help Data Structure & Algorithms
Reference no: EM133021075

Question 1. Let A be an m x n matrix with ij-th entries aij ∈ R. Let c1, ...,cn be real numbers, and x1, , xn be variables.

In each of the following examples, you are given an optimization problem. For each example, explain why the optimization problem is not a linear program, and find a trick to convert it to an equivalent linear program.

566_figure.jpg

Question 2. Suppose that we want to find the "best" approximation of the function f(x) = x sin(x) by a degree 4 polynomial p(x) = ax4 + bx3 + cx2 + dx + e on all the integer points k ∈ [-10,10]. Here, the "best" means the following:

The error of such an approximation is the worst (meaning largest) difference If |(k)-p(k)| among integers -10 ≤ k ≤ 10. We want to find the approximation with the smallest error.

Write a linear program that solves this problem. How many constraints are there in your linear program?

Question 3. Recall that a colouring is called proper if it does not assign the same colour to any pair of neighbouring vertices, and 3COL is the problem of deciding whether a graph is 3-colourable. Let X be the following problem.

• Input: An undirected graph G.
• Question: Does G have a proper 3-colouring that assigns red to more than 99% of the vertices?
Prove that 3COL ≤p X (that is, 3COL is polynomially reducible to X) by giving an efficient algorithm that solves 3COL using a black-box algorithm for X.

Question 4. Recall that Hamiltonian Cycle problem is defined as follows:
• Input: An undirected graph G.
• Question: Is G Hamiltonian (meaning that it contains a cycle that visits all the vertices)? Let X be the following problem:
• Input: An undirected graph G, and an integer k ≥ 0.
• Question: Can G be made Hamiltonian by adding at most k edges to it?
First prove that X  NP. Then prove that Hamiltonian Cycle ≤p X.

Question 5. Prove that Hamiltonian Cycle ≤p Y, where Y is the following problem:
• Input: An undirected graph G.
• Question: Does G have two cycles that do not share any vertices, and together include all the vertices of G?

Reference no: EM133021075

Questions Cloud

Does this situation impair the CPA firm independence : The firm of Johns, Apple & co, CPAs, is the auditor of Alpha Corporation, a nonpublic company. Does this situation impair the CPA firm independence
Prepare the journal entries to record this transaction : You are required to prepare the journal entries to record this transaction in accordance with IFRS 15 for the year ended 30 June 2019
How has the customer experience is changed by crm technology : How has the customer experience is changed by CRM technology? What are Four features of CRM technologies that have an impact on customer experience?
Analyze issues of equity at the personal : Analyze issues of equity at the personal, professional, and global level.
Write a linear program : Write a linear program that solves this problem. How many constraints are there in your linear program - How many constraints are there in your linear program
What will this investment be worth : What will this investment be worth after 20 years should he earn an average annual rate of return of 9 percent compounded monthly
At what price would the demand be unitary elastic : The equilibrium price in that month increased to $4, and customers bought only 200 portions in the month. At what price would the demand be unitary elastic
Explain how term limits work for the president : Explain how term limits work for the President, Senate, and the House of Representatives. What are the arguments for and against term limits? Be sure to conside
Create a 2-3 page business memo for an existing firm : Create a 2-3 page business memo for an existing firm that details your knowledge and understanding of a significant problem with their current operations.

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