1. For the following optimization problem answer the questions below:
Maximize
Subject to:
(a) Find a basic solution with the slack variables as the basic variables. [5]
Solution:
With slack variables and as the basic variables the initial
dictionary would be
.
Then the corresponding basic solution is
, and
, which is not feasible.
(b) If the basic solution of (a) is not feasible, then find an initial basic
feasible
solution and the corresponding dictionary for the given optimization problem.
If it is feasible, solve the given optimization problem by the simplex method. [20]
Solution:
The basic solution of (a) is not feasible. Thus we need to solve the following
auxiliary problem to find an initial basic feasible solution:
Min
subject to
With slack variables and , the constraints become
Since would be negative if it is selected as a basic variable, we select and as the basic variables. Thus the initial dictionary is
Next select as the pivot. Then since becomes first as
is increased from , is the new non-basic variable.
Hence the dictionary is
Thus the minimum is reached and it is equal to .
Hence the original problem has a feasible solution and the initial
dictionary is
2 (a) Formulate the separable convex programming problem to find an approximate
solution
to the optimization problem given below. Approximate the objective function
by piecewise linear functions over the intervals
,
,
and
. [16]
(b) Formulate the linear programming problem to solve the problem of (a).
Explain why this LP solves the problem of (a).
DO NOT solve the linear programming problem. [10]
Maximize
Subject to:
and
.
Solution:
(a) Maximize
Subject to:
for all 's.
If , then and
if , then .
Solution:
(b) Same as (a) but without the last constraint: If , then and
if , then .
Suppose that the optimum of the LP problem does not satisfy the last condition
of the solution to (a), that is "If , then and
if , then " is not satisfied.
Hence , and and/or and .
Then the values of the objective function can be increased without violating the constraints
by shifting value from to (or from to ) while keeping
the value of
(or
) unbchanged.
Thus the "optimum" of the LP is not optimum, which is a contradiction.
Hence the optimum of the LP satisfies the condition "If , then and
if , then ".
Thus we can solve the problem of (a) by solving the LP problem of (b).
3. Answer whether or not the following statements are true.
You DO NOT need to give your reasons. [24]
(a) An NP-complete problem can be solved in time
for some constant in the worst case, where is the problem size.
(b) The max flow problem can be polynomial transformed to the graph color problem.
(c) If a problem is in class , then it can be solved by back tracking
a polynomial number of times in the worst case.
(d) The simplex method for linear programming is a polynomial time algorithm.
(e) In the simplex method, the value of the objective function always increases.
(f) The max flow problem can be solved by linear programming.
Solution:
(b) and (f) are true and the rest are false.
4. The NP-completeness of the CLIQUE problem can be proven by reducing the
3SAT problem to CLIQUE problem. In that transformation a graph for CLIQUE problem
is constructed as follows:
(1) Create a vertex for each literal of the boolean function.
(2) Group the vertices corresponding to each clause into one group.
(3) Connect vertices if and only if they are in different groups and
the corresponding literals are not complement of each other.
Let n, p and q be the number of variables, the number of literals and the number
of clauses of an instance of 3SAT, respectively.
Answer the following questions:
(a) State the CLIQUE problem corresponding to the 3SAT problem. [5]
(b) Prove that the answer to an instance of the 3SAT problem is yes if and only if
the answer to the corresponding instance of the CLIQUE problem is yes. [20]
Solution:
(a) Is there a cliques of size q in the graph constructed by the procedure given above
for the given instance of the 3SAT problem ?
Solution:
(b) Suppose that the answer to the CLIQUE is "Yes". Then there is a clique of size q.
This clique does not have more than one vertex from each group because there is no
edge between the vertices of the same group in the graph. Since there are q vertices
in the clique, exactly one vertex is selected from each group. Assign value "True"
to the literals corresponding to those vertices. Then those literals are not complement
to each other by (3) of the above procedure. Hence this assignment is consistent (no
contradictions). Since the groups correspond to the clauses, each clause takes the value
"True" by this assignment. Hence the given boolean function is satisfiable.
If, on the other hand, there is an assignment of value that satisfies the boolean
function, then each clause has a literal with value "True". The vertices corresponding
to those literals are directly connected to each other by edges in the graph because
they are not complement to each other. Hence they form a clique of size q.
Hence the answer to the CLIQUE problem is "yes" if and only if the answer to the
3SAT problem is "yes".