A parameterized decision problem is fixed-parameter tractable if there is an algorithm deciding inputs of encoded length and parameter in running time at most , where is a computable function and is a constant independent of . Arbitrarily expensive dependence on the parameter is permitted; putting in the exponent of does not by itself establish fixed-parameter tractability.
For a minimization problem with nonnegative costs, a factor-two approximation algorithm runs in polynomial time, always returns a feasible solution, and satisfies on every feasible input. A feasible solution also satisfies . If the optimum is zero, the guarantee requires an answer of zero cost.
The vertex cover decision problem takes a finite simple graph and a nonnegative integer , and asks whether there is a vertex cover of cardinality at most . The optimization problem asks for a minimum vertex cover, with cost equal to its cardinality.
For the decision problem, if there are no edges, accept; if there is an edge but , reject. Otherwise choose an edge and branch: either include and recurse on with budget , or include and recurse on with budget . Accept if either branch accepts. Every vertex cover contains at least one endpoint of , so every possible solution is retained by at least one branch. Conversely, adding the selected endpoint to a vertex cover returned by the smaller instance covers all original edges. This proves correctness by induction on the remaining budget.
The search tree has depth at most and at most leaves. Processing each node in time gives running time, establishing fixed-parameter tractability.
For optimization, greedily build a maximal matching : repeatedly select an edge and discard every edge touching either endpoint. Return the set of all endpoints of . Any edge with neither endpoint in could be added to , contradicting maximality; thus is a vertex cover. Since the edges of a matching in a graph have pairwise disjoint endpoint sets, every vertex cover must contain at least one different vertex for each of them. Therefore
The greedy construction takes polynomial time, and can be implemented in with adjacency lists. It needs only a maximal matching, not a maximum matching.
If the basis has members, it has subsets, each specifying a possible union. Different subsets can produce the same union, so the number of distinct generated sets is at most . Consequently,
Here is a set family of distinct sets. If a representation lists duplicate input sets, discard those duplicates before applying this bound. The empty union is included.
Write and . If is a basis for the original instance, replace each member by . Deletion commutes with unions, so the resulting family generates every member of and has at most members.
Conversely, take a basis for the reduced instance. Lift each of its members by
If is represented as a union of reduced basis sets, the same union of their lifts agrees with on . It contains exactly when one of the selected reduced basis sets contains , namely exactly when . By the assumed incidence equivalence in a set family, this occurs exactly when . Thus the lifted union is precisely , and the lifted basis has no more members.
Therefore deleting preserves the yes/no answer with the same parameter . The reverse construction does not require a reduced basis set to be an input set.
First discard duplicate input sets, and let . If , reject by part (i); this rejection can be encoded as the fixed no-instance , , of the set basis problem. Otherwise, represent each ground element by its incidence column
Keep one element from each class of equal columns. By repeatedly applying part (ii), this preserves the answer. The reduced number of elements satisfies
Relabel these representatives and store their reduced incidence matrix. Its membership bits, the dimensions and have encoded length bounded solely by a computable function of ; the leading incidence bound is . Thus this is a kernelization, even though it is not a polynomial kernel. Forming columns and grouping identical ones takes polynomial time in the original explicit input length. To test , compare bit lengths or truncate exponentiation at ; never construct an enormous merely to perform this preprocessing comparison.
For completeness, the bounded instance can be solved explicitly. Enumerate all ordered lists of subsets of the -element ground set, allowing empty members to pad shorter bases. There are at most such lists. For a candidate basis and each reduced input set , form the union of every candidate basis set contained in . If this union equals , a representation exists; if it does not, no union of that candidate's members can represent , because any member not contained in would add a forbidden element. Testing every therefore verifies a candidate in time polynomial in .
The preprocessing is polynomial in the original input length, and the remaining search depends only on . Hence the set basis problem is fixed-parameter tractable with respect to . Empty input families and are covered by the same empty-union convention.
Assume the standard nonempty instance convention , and set . Start with no centers. Pick any city still farther than from every selected center, add it as a center, and mark every city within distance of it as covered. Stop when all cities are covered.
Distinct chosen centers have pairwise distance greater than . Fix an optimal set of centers and assign each city to one optimal center within distance . Two cities assigned to the same center have distance at most by the triangle inequality. Thus no two chosen centers can be assigned to that same optimal center. The pigeonhole principle shows that the greedy procedure selects at most centers and has radius at most . If fewer than are selected, add arbitrary distinct cities; this cannot worsen the radius.
With the supplied radius, a straightforward implementation updates coverage in time per selected center, hence takes distance tests. The argument also handles . It is the packing bound underlying the metric k-center problem.
The optimum radius is a distance from some city to a selected city, so it belongs to
Sort the distinct values of , try them in increasing order, and run part (i)'s greedy procedure with each trial value . Declare a trial successful when all cities are covered using at most centers; stop a failed trial as soon as a st center would be selected. The trial must succeed by part (i), so the first successful value satisfies . Its output has
There are candidate distances and work per trial, giving a polynomial-time algorithm with running time , plus sorting. Success at need not mean that radius itself is feasible; only the radius- guarantee is used.
A faster alternative is the farthest-first traversal. Choose any first center, then repeatedly choose a city farthest from its nearest current center until have been chosen. Let be the resulting radius. If , adjoin a city attaining that distance. At every earlier selection, the maximum distance to the then-current center set was at least , so all pairs among these cities are at distance at least . Two belong to the same optimal radius- closed ball, giving by the triangle inequality. If , the guarantee is immediate. Maintaining nearest-center distances gives distance evaluations without knowing .

Articles by others on the same topic (0)

There are currently no matching articles.