[algogeeks] SAT

2007-03-19 Thread Ez_Alg
how can we show that MAX SAT (: Given a CNF formula and an integer g, find a truth assignment that satisfies at least g clauses.) , SPARSE SUBGRAPH (: Given a graph and two integers a and b, find a set of a vertices of G such that there are at most b edges between them.) can be reduced to 3SAT? do

[algogeeks] Re: efficient algorithm

2007-03-18 Thread Ez_Alg
it's not homework, i am studying for my finals!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this gro

[algogeeks] efficient algorithm

2007-03-18 Thread Ez_Alg
Given an unlimited supply of coins of denominations x1; x2; : : : ; xn, we wish to make change for a value v using at most k coins; that is, we wish to find a set of k coins whose total value is v. This might not be possible: for instance, if the denominations are 5 and 10 and k = 6, then we can m

[algogeeks] Dynamic programming?

2007-03-18 Thread Ez_Alg
BurgerKing's is considering opening a series of restaurants along RiverSide Freeway. The n possible locations are along a straight line, and the distances of these locations from the start of RiverSide Freeway are, in miles and in increasing order,m1;m2; : : : ;mn. The constraints are as follows:

[algogeeks] Intractability Problem

2007-03-18 Thread Ez_Alg
We are feeling experimental and want to create a new dish. There are various ingredients we can choose from and we'd like to use as many of them as possible, but some ingredients don't go well with others. If there are n possible ingredients (numbered 1 to n), we write down an n x n matrix giving

[algogeeks] linear programming

2007-03-13 Thread Ez_Alg
what varibales (how many of them) do i need to define for this problem to write a linear program that optimizes revenue with this constraints: we have a ship that can carry a maximum weight of 100 tons of cargo and a maximum volume of 60 cubicmeters. we have three materials to be transported, and

[algogeeks] Generalized Shortest Path Problem

2007-02-26 Thread Ez_Alg
Hi, I am trying to solve a problem, I think it has to do with Dijkstra's algorithm ( shortest path problem ) which is : 1 function Dijkstra(G, w, s) 2 for each vertex v in V[G]// Initializations 3 d[v] := infinity // Known distan