算法和计算复杂度 15 Fine-grained and Parameterized Complexity
Fine-grained Complexity
Vassilevska Williams, “On some fine-grained questions in algorithms and complexity” (original paper), pages 1-9.
Mimic -completeness,
3 Hypothesis
SETH
Recap Strong Exponential Time Hypothesis (SETH). For every there exists an integer s.t. on formulas with clause size at most and variables can not be solved in time even by a randomized algorithm.
3-SUM
3-SUM Hypothesis. on integers in can not be solved in time for any by a randomized algorithm.
Problem: Given a set of integers from for some constant , determine whether there are s.t. . By a standard hashing trick, assume that for any .
SOTA for : an algorithm in by Chan et al.
APSP
All-Pairs Shortest Paths (APSP) problem: Given an node graph , and integer edge weights for some , compute for every , the shortest path distance in from to . Assume that does not contain negative weight cycles.
求所有点的最短路径,有经典弗洛伊德算法啊。
Floyd-Warshall algorithm can solve APSP in . One can run Dijkstra’s algorithm from every vertex using some tricks, SOTA is .
APSP Hypothesis. No randomized algorithm can solve APSP in time for on node graphs with edge weights in and no negative cycles for large enough .
Fine-grained Reductions
Consider problem with textbook runtime and problem with text book runtime . Given a supposed time algorithm for for , we would like to compose it with another algorithm that transforms instances of into instances of , to obtain an algorithm for running in time time for being a function of .
📖Definition of fine-grained reduction. Assume that and are computational problems and and are their conjectured running time lower bounds, respectively. We say -reduces to (), if for every , there exists , and an algorithm for that runs in time on inputs of length , making calls to an oracle for with query lengths , where
If and , we say that and are fine-grained equivalent, .
若存在一个能在指数位置上打破 问题猜想时间复杂度下界的算法 ,并且该算法包含若干次调用在指数位置上打破 问题猜想复杂度下界的算法,则称 能细粒度归约到 。
被绕晕了没有?
The definition implies that if and has an algorithm with running time , then can be solved by replacing the oracle calls by corresponding runs of the algorithm, obtaining a runtime of for for some .
If , then we can not be able to improve and for and respectively, is the same.
Hardness from SETH
Orthogonal Vectors (OV) problem requires quadratic time under SETH.
OV problem: Let ; given two sets with , determine whether there exist s.t. where .
-OV problem for constant : Let ; given sets with for all , determine whether there exist s.t. where .
-OV can be solved in time by exhaustive search, for any . SOTA: . It seems that is necessary.
-OV Hypothesis: No randomized algorithm can solve -OV on instance of size in time for constant .
kOV to CNF-SAT
🎯Theorem of reduction from -OV to : If -OV on sets with vectors from can be solved in time for any , then on variables and clauses can be solved in time for some and SETH is false.
kOV to Diameter probelm
-OV can also do fine-grained reduction to diameter problem.
图的直径:图中所有点对中的最长距离
🎯Theorem of reduction from -OV to Diameter problem. If one can distinguish between diameter and in an undirected unweighted graph with nodes and edges in time for some , then -OV on two sets of vectors in dimensions can be solved in time and SETH is false.
Parameterized Complexity
Proposed by Rod Downey, Victoria University, New Zealand
Parameterized complexity:
- The input to the problem.
- The aspects of the input that constitute the parameter.
- The question.
A parameterized language is where we refer to the second coordinate as parameter.
For simplicity, we can think of .
📖Definition of FPT. A parameterized language is fixed parameter tractable (FPT), iff there is a computable function , a constant , and a deterministic algorithm s.t.
and the running time of is .
It’s not hard to see that for some computable .
Example: a parameterized version of Vertex Cover problem:
- Instance: A graph .
- Parameter: A positive integer .
- Question: Does have a vertex cover of size ?
There is an algorithm running in time .
So in this problem, we have . Introduce notation which ignores be it additive or multiplicative and is only concerned with the exponential part. Thus the algorithm is .
Bounded Search Trees
Some optimized methods.
Kernelization
📖Definition of Kernelization. Let be a parameterized language. A reduction to a problem kernel, or kernelization, comprises replacing an instance by a reduced instance , called a problem kernel, such that
- , for some function depending only on .
- .
The reduction from to must be computable in time polynomial in .
Reduction rules for a kernel for Vertex Cover:
- Remove all isolated vertices.
- For any degree one vertex , add its single neighbor to the solution set and remove and all of its incident edges from the graph.
- If there is a vertex of degree at least , add to the solution set and remove and all of its neighbors.
After applying these rules, we get to a graph , where no vertex in the reduced graph has degree greater than , or less than two. Then simple combinatorics shows that if such a reduced graph has a size vertex cover, its must have size . This is the size kernelization.
Lower bounds for some W[1]-hard Problems
Chen et.al.: “Tight lower bounds for certain parameterized NP-hard problems” (original paper), Section 4.
The class contains many -hard problems including -SAT, -Colorability, -Set Cover, Vertex Cover, and Independent Set.
It is commonly believed that it is unlikely that all problems in are solvable in sub-exponential time.
🎯Theorem (Vertex Cover reduction has lower bound). Given an instance of Vertex Cover, there is a polynomial time algorithm which either reports that doesn’t have a vertex cover of size , or produces a subgraph of with at most vertices, where , such that has a vertex cover of size iff has a vertex cover of size .
🎯Theorem of Independent set poly-time solvable hypothesis. If the parameterized Independent Set problem can be solved in time , where is the number of vertices in the graph, then all problems in can be solved in sub-exponential time.
🎯Theorem of clique poly-time solvable hypothesis. If Clique, Weight -SAT, Dominating Set, Dominating Clique, or Graph -Cut can be solved in time then all the problems in can be solved in sub-exponential time, where is the size of the universal set from which the elements are to be selected.