fixed parameter algorithms
play

Fixed Parameter Algorithms Dniel Marx Tel Aviv University, Israel - PowerPoint PPT Presentation

Fixed Parameter Algorithms Dniel Marx Tel Aviv University, Israel International Workshop on Tractability July 5, 2010, Microsoft Research, Cambridge, UK Fixed Parameter Algorithms p.1/40 Parameterized complexity Main idea: Instead of


  1. Fixed Parameter Algorithms Dániel Marx Tel Aviv University, Israel International Workshop on Tractability July 5, 2010, Microsoft Research, Cambridge, UK Fixed Parameter Algorithms – p.1/40

  2. Parameterized complexity Main idea: Instead of expressing the running time as a function T ( n ) of n , we express it as a function T ( n , k ) of the input size n and some parameter k of the input. In other words: we do not want to be efficient on all inputs of size n , only for those where k is small. Fixed Parameter Algorithms – p.2/40

  3. Parameterized complexity Main idea: Instead of expressing the running time as a function T ( n ) of n , we express it as a function T ( n , k ) of the input size n and some parameter k of the input. In other words: we do not want to be efficient on all inputs of size n , only for those where k is small. What can be the parameter k ? The size k of the solution we are looking for. The maximum degree of the input graph. The diameter of the input graph. The length of clauses in the input Boolean formula. ... Fixed Parameter Algorithms – p.2/40

  4. Parameterized complexity Problem: V ERTEX C OVER I NDEPENDENT S ET Input: Graph G , integer k Graph G , integer k Question: Is it possible to cover Is it possible to find the edges with k vertices? k independent vertices? Complexity: NP-complete NP-complete Fixed Parameter Algorithms – p.3/40

  5. Parameterized complexity Problem: V ERTEX C OVER I NDEPENDENT S ET Input: Graph G , integer k Graph G , integer k Question: Is it possible to cover Is it possible to find the edges with k vertices? k independent vertices? Complexity: NP-complete NP-complete Complete O ( n k ) possibilities O ( n k ) possibilities enumeration: Fixed Parameter Algorithms – p.3/40

  6. Parameterized complexity Problem: V ERTEX C OVER I NDEPENDENT S ET Input: Graph G , integer k Graph G , integer k Question: Is it possible to cover Is it possible to find the edges with k vertices? k independent vertices? Complexity: NP-complete NP-complete Complete O ( n k ) possibilities O ( n k ) possibilities enumeration: No n o ( k ) algorithm known O ( 2 k n 2 ) algorithm exists Fixed Parameter Algorithms – p.3/40

  7. Bounded search tree method Algorithm for V ERTEX C OVER : e 1 = x 1 y 1 Fixed Parameter Algorithms – p.4/40

  8. Bounded search tree method Algorithm for V ERTEX C OVER : e 1 = x 1 y 1 x 1 y 1 Fixed Parameter Algorithms – p.4/40

  9. Bounded search tree method Algorithm for V ERTEX C OVER : e 1 = x 1 y 1 x 1 y 1 e 2 = x 2 y 2 Fixed Parameter Algorithms – p.4/40

  10. Bounded search tree method Algorithm for V ERTEX C OVER : e 1 = x 1 y 1 x 1 y 1 e 2 = x 2 y 2 x 2 y 2 Fixed Parameter Algorithms – p.4/40

  11. Bounded search tree method Algorithm for V ERTEX C OVER : e 1 = x 1 y 1 x 1 y 1 e 2 = x 2 y 2 x 2 y 2 height: ≤ k Height of the search tree is ≤ k ⇒ number of leaves is ≤ 2 k ⇒ complete search requires 2 k · poly steps. Fixed Parameter Algorithms – p.4/40

  12. Fixed-parameter tractability Definition: A parameterization of a decision problem is a function that assigns an integer parameter k to each input instance x . The parameter can be explicit in the input (for example, if the parameter is the integer k appearing in the input ( G , k ) of V ERTEX C OVER ), or implicit in the input (for example, if the parameter is the diameter d of the input graph G ). Main definition: A parameterized problem is fixed-parameter tractable (FPT) if there is an f ( k ) n c time algorithm for some constant c . Fixed Parameter Algorithms – p.5/40

  13. Fixed-parameter tractability Definition: A parameterization of a decision problem is a function that assigns an integer parameter k to each input instance x . Main definition: A parameterized problem is fixed-parameter tractable (FPT) if there is an f ( k ) n c time algorithm for some constant c . Example: V ERTEX C OVER parameterized by the required size k is FPT: we have seen that it can be solved in time O ( 2 k · n 2 ) . Better algorithms are known: e.g, O ( 1.2832 k k + k | V | ) . Main goal of parameterized complexity: to find FPT problems. Fixed Parameter Algorithms – p.5/40

  14. FPT problems Examples of NP-hard problems that are FPT: Finding a vertex cover of size k . Finding a path of length k . Finding k disjoint triangles. Drawing the graph in the plane with k edge crossings. Finding disjoint paths that connect k pairs of points. ... Fixed Parameter Algorithms – p.6/40

  15. FPT algorithmic techniques Significant advances in the past 20 years or so (especially in recent years). Powerful toolbox for designing FPT algorithms: Bounded Search Tree Kernelization Color coding Graph Minors Theorem Iterative compression Treewidth Fixed Parameter Algorithms – p.7/40

  16. Books Downey-Fellows: Parameterized Complexity, Springer, 1999 Flum-Grohe: Parameterized Complexity Theory, Springer, 2006 Niedermeier: Invitation to Fixed-Parameter Algo- rithms, Oxford University Press, 2006. Fixed Parameter Algorithms – p.8/40

  17. Bounded search trees Fixed Parameter Algorithms – p.9/40

  18. Bounded search tree method Recall how we solved V ERTEX C OVER : e 1 = x 1 y 1 x 1 y 1 e 2 = x 2 y 2 x 2 y 2 height: ≤ k If we branch into a bounded number of directions a bounded number of times, then we get an FPT algorithm! Fixed Parameter Algorithms – p.10/40

  19. M IN O NES S AT V ERTEX C OVER can be interpreted as a CSP problem: “Given constraints x ∨ y on Boolean variables, find a satisfying assignment of weight at most k .” More generally: M IN O NES S AT : Given an r -SAT formula and an integer k , find a satisfying assignment of weight at most k . Fixed Parameter Algorithms – p.11/40

  20. M IN O NES S AT V ERTEX C OVER can be interpreted as a CSP problem: “Given constraints x ∨ y on Boolean variables, find a satisfying assignment of weight at most k .” More generally: M IN O NES S AT : Given an r -SAT formula and an integer k , find a satisfying assignment of weight at most k . The bounded search tree approach gives: Fact: M IN O NES S AT on r -SAT formulas can be solved in time O ( r k · n ) , i.e., problem is FPT parameterized jointly by r and k . Fact: M IN O NES S AT ( Γ ) is FPT parameterized by k for every Γ . Fixed Parameter Algorithms – p.11/40

  21. Color coding Fixed Parameter Algorithms – p.12/40

  22. k -P ATH Task: Given a graph G , an integer k , two vertices s , t , find a simple s - t path with exactly k internal vertices. Note: Finding such a walk can be done easily in polynomial time. Note: The problem is clearly NP-hard, as it contains the s - t H AMILTONIAN P ATH problem. The k -P ATH algorithm can be used to check if there is a cycle of length exactly k in the graph. Fact: [Alon-Yuster-Zwick 1995] k -P ATH can be solved in time c k · n O ( 1 ) for some c . Fixed Parameter Algorithms – p.13/40

  23. k -P ATH Assign colors from { 1, ... , k } to vertices V ( G ) \ { s , t } uniformly and independently at random. s t Fixed Parameter Algorithms – p.14/40

  24. k -P ATH Assign colors from { 1, ... , k } to vertices V ( G ) \ { s , t } uniformly and independently at random. s t Fixed Parameter Algorithms – p.14/40

  25. k -P ATH Assign colors from { 1, ... , k } to vertices V ( G ) \ { s , t } uniformly and independently at random. s t Check if there is a colorful s - t path: a path where each color appears exactly once on the internal vertices; output “YES” or “NO”. Fixed Parameter Algorithms – p.14/40

  26. k -P ATH Assign colors from { 1, ... , k } to vertices V ( G ) \ { s , t } uniformly and independently at random. s t Check if there is a colorful s - t path: a path where each color appears exactly once on the internal vertices; output “YES” or “NO”. If there is no s - t k -path: no such colorful path exists ⇒ “NO”. If there is an s - t k -path: the probability that such a path is colorful is k k > ( k e ) k k ! = e − k , k k thus the algorithm outputs “YES” with at least that probability. Fixed Parameter Algorithms – p.14/40

  27. Error probability Useful fact: If the probability of success is at least p , then the probability that the algorithm does not say “YES” after 1 / p repetitions is at most 1 / p = 1 / e ≈ 0.38 ( 1 − p ) 1 / p < ( e − p ) Thus if p > e − k , then error probability is at most 1 / e after e k repetitions. Repeating the whole algorithm a constant number of times can make the error probability an arbitrary small constant. For example, by trying 100 · e k random colorings, the probability of a wrong answer is at most 1 / e 100 . Fixed Parameter Algorithms – p.15/40

  28. Error probability Useful fact: If the probability of success is at least p , then the probability that the algorithm does not say “YES” after 1 / p repetitions is at most 1 / p = 1 / e ≈ 0.38 ( 1 − p ) 1 / p < ( e − p ) Thus if p > e − k , then error probability is at most 1 / e after e k repetitions. Repeating the whole algorithm a constant number of times can make the error probability an arbitrary small constant. For example, by trying 100 · e k random colorings, the probability of a wrong answer is at most 1 / e 100 . It remains to see how a colorful s - t path can be found. Fixed Parameter Algorithms – p.15/40

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend