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

  Discuss the topological sort

Suppose that G is a directed graph with no circuits. Describe how depth-first search can be used to carry out a topological sort of the vertices of G.

  Show how the following values would be stored by machines

Show how the following values would be stored by machines with 32-bit words, using little endian and big endian format. Assume each value starts at address 016. Draw a diagram of memory for each, placing the appropriate values in the correct (and ..

  Describe idea of the algorithm using english language

Describe the overall idea of the algorithm using English language - Then present the algorithm details using pseudo code, be clear of the meaning of each variable, with comments on important steps to explain its purpose.

  Contents of registers for independent memory-reference

Find out the contents of registers PC, AR, DR, AC, and IR for two independent memory-reference instructions below. Each instruction starts with given Initial values.

  Describe algorithm for concatenating two singly linked lists

Describe a good algorithm for concatenating two singly linked lists L and M, with header sentinels, into a single list L ' that contains all the nodes of L foll

  Identifying the location of rubric objectives

Code Comments are used to identify the location of rubric objectives, Code Formatting is used to raise the readability of the HTML Code.

  Find an approximation to optimal traveling salesman route

We talked about the 'Nearest Neighbor1 algorithm as a way to find an approximation to the optimal Traveling Salesman route.

  Design and draw a representation of a display screen

ITEC 630- Information Systems Analysis, Modeling, and Design - Design and draw a representation of a display screen that can be used by the servers and clerks

  Implement the bankers algorithm for deadlock avoidance

Implement the Banker's algorithm for deadlock avoidance, that works on a given set of N processes and M resource types (N

  Develop a profile of various projects for risk visibility

A key point in project portfolio management is that the IT manager must determine the risk associated with each project and develop a profile of various projects for risk visibility.

  Data array a has data series from 1000000 to 1 with step

data array a has data series from 1000000 to 1 with step size 1 which is in perfect decreasing order.data array b has

  Write an algorithm to count nodes in a linked list

storage pool and that there is a special null value. Write an algorithm to count the nodes in a linked list with first node pointed to by first."

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