Introduction to Algorithms
Introduction to Algorithms
3rd Edition
ISBN: 9780262033848
Author: Thomas H. Cormen, Ronald L. Rivest, Charles E. Leiserson, Clifford Stein
Publisher: MIT Press
bartleby

Concept explainers

Question
Book Icon
Chapter 29, Problem 1P

(a)

Program Plan Intro

To Show if there is an algorithm for linear programming, then it can used to solve a linear-inequality feasibility problem. The number of variables and constraints that are in the linear-programming problem should be polynomial in n and m .

(a)

Expert Solution
Check Mark

Explanation of Solution

The linear inequalities that are required to satisfy be the set of constraints in the linear program. Let the function to be maximized, be a constant. Linear programs solver will fail to detect the feasible solution if the linear constraints are not feasible. Suppose linear programming solver returns the solution, thenthose linear constraints are feasible.

(b)

Program Plan Intro

To Show if there is an algorithm for the linear-inequality feasibility problem, then it can be used to solve a linear-programming problem. The number of variables, linearinequalities, variable and constraint used in linear-inequality feasibility problem must be polynomial in n and m .

(b)

Expert Solution
Check Mark

Explanation of Solution

To solve the linear program in standard form with some particulars such as A, b, c. That is, to maximize the equation

  j=1ncjxj subject to Ax <=b -(1)

such that all entries of x vector are non-negative. Consider the dual program, in order to minimize the equation below:

  i=1mbiyi -(2)

SubjecttoATY = T such that all entries in the y vector are nonzero. By Corollary 29.9 mentioned in the question, if x and y are feasible solutions to their respective problems, and if their objective functions are equal, then, the x and y optimal solutions and their objective functions should be equal. This can be achieved as, let ck be some nonzero entry in thec vector. If there are no nonzero entries, then the function to optimize is just the zero function, and it is exactly a feasibility question. Then, add the two linear inequalities (1) and (2) to get the equation below:

  xk=1ck(i=1mbiyij=1ncjxj)

-(3)

The values the variables take, their objective functions will be equal. Lastly use these with the inequalities that are already present. Therefore, the constraints will be as follows:

Ax = b

ATy = c

  xk1ck(i=1mbiyij=1ncjxj)

  xk1ck(i=1mbiyij=1ncjxj)

  x1,x2,x3,.........., xn,y1,y2,.............,ym0 .

The number of variables equal to n + m and a number of constraints equal to 2 + 2n + 2m , both are polynomial in n and m . So any assignment of variables that satisfy all of constraints will be a feasible solution to the problem and its dual and the respective objective functions take the same value therefore it is an optimal solution the original problem and its dual So the linear inequality feasibility solver returns a satisfying assignment.

If there is optimal solution x , an optimal solution for the dual can be obtained such that it makes the objective functions equal by theorem 29.10 mentioned in the above question. This guarantees that the two constraints added such that that the objectives of the original problem and the dual problem should be equal do not cause to change the optimal solution to the linear program.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
a. If an optimal solution can be created for a problem by constructing optimal solutions for its subproblems, the problem possesses __________ property.
Algorithm OPTIMAL-PARAMETRIZATION.Given F(x, y, z) ∈ Q[x, y, z], an irreducible homogeneous polynomial defining a rational plane curve C, the algorithm computes an optimal rational parametrization of C
In this question you will explore the Traveling Salesperson Problem (TSP). (a) In every instance (i.e., example) of the TSP, we are given n cities, where each pair of cities is connected by a weighted edge that measures the cost of traveling between those two cities. Our goal is to find the optimal TSP tour, minimizing the total cost of a Hamiltonian cycle in G. Although it is NP-complete to solve the TSP, we found a simple 2-approximation by first generating a minimum-weight spanning tree of G and using this output to determine our TSP tour. Prove that our output is guaranteed to be a 2-approximation, provided the Triangle Inequality holds. In other words, if OP T is the total cost of the optimal solution, and AP P is the total cost of our approximate solution, clearly explain why AP P ≤ 2 × OP T.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole