Exercises on Complexity Theory
Total Page:16
File Type:pdf, Size:1020Kb

Load more
Recommended publications
-
A Unified Polynomial-Time Algorithm for Feedback Vertex Set on Graphs
A Unified Polynomial-Time Algorithm for Feedback Vertex Set on Graphs of Bounded Mim-Width Lars Jaffke Department of Informatics, University of Bergen, Norway lars.jaff[email protected] O-joung Kwon Logic and Semantics, Technische Universität Berlin, Berlin, Germany [email protected] Jan Arne Telle Department of Informatics, University of Bergen, Norway [email protected] Abstract We give a first polynomial-time algorithm for (Weighted) Feedback Vertex Set on graphs of bounded maximum induced matching width (mim-width). Explicitly, given a branch decom- position of mim-width w, we give an nO(w)-time algorithm that solves Feedback Vertex Set. This provides a unified algorithm for many well-known classes, such as Interval graphs and Permutation graphs, and furthermore, it gives the first polynomial-time algorithms for other classes of bounded mim-width, such as Circular Permutation and Circular k-Trapezoid graphs for fixed k. In all these classes the decomposition is computable in polynomial time, as shown by Belmonte and Vatshelle [Theor. Comput. Sci. 2013]. We show that powers of graphs of tree-width w − 1 or path-width w and powers of graphs of clique-width w have mim-width at most w. These results extensively provide new classes of bounded mim-width. We prove a slight strengthening of the first statement which implies that, surprisingly, Leaf Power graphs which are of importance in the field of phylogenetic studies have mim-width at most 1. Given a tree decomposition of width w − 1, a path decomposition of width w, or a clique-width w-expression of a graph G, one can for any value of k find a mim-width decomposition of its k-power in polynomial time, and apply our algorithm to solve Feedback Vertex Set on the k-power in time nO(w). -
A Fixed-Parameter Algorithm for the Directed Feedback Vertex Set Problem
A Fixed-Parameter Algorithm for the Directed Feedback Vertex Set Problem Jianer Chen, Yang Liu, Songjian Lu Barry O’Sullivan and Igor Razgon Department of Computer Science Cork Constraint Computation Centre Texas A&M University Computer Science Department College Station, TX 77843, USA University College Cork, Ireland {chen,yangliu,sjlu}@cs.tamu.edu {b.osullivan,i.razgon}@cs.ucc.ie ABSTRACT played an essential role in the study of deadlock recovery in database systems and in operating systems [30, 14]. In such The (parameterized) feedback vertex set problem on di- a system, the status of system resource allocations can be rected graphs, which we refer to as the dfvs problem, is defined as follows: given a directed graph G and a param- represented as a directed graph G (i.e., the system resource- eter k, either construct a feedback vertex set of at most k allocation graph), and a directed cycle in G represents a vertices in G or report that no such set exists. Whether or deadlock in the system. Therefore, in order to recover from deadlocks, we need to abort a set of processes in the system, not the dfvs problem is fixed-parameter tractable has been a well-known open problem in parameterized computation i.e., to remove a set of vertices in the graph G, so that all and complexity, i.e., whether the problem can be solved in directed cycles in G are broken. Equivalently, we need to time f(k)nO(1) for some function f. In this paper we develop find a FVS in the graph G. -
1 Hamiltonian Path
6.S078 Fine-Grained Algorithms and Complexity MIT Lecture 17: Algorithms for Finding Long Paths (Part 1) November 2, 2020 In this lecture and the next, we will introduce a number of algorithmic techniques used in exponential-time and FPT algorithms, through the lens of one parametric problem: Definition 0.1 (k-Path) Given a directed graph G = (V; E) and parameter k, is there a simple path1 in G of length ≥ k? Already for this simple-to-state problem, there are quite a few radically different approaches to solving it faster; we will show you some of them. We’ll see algorithms for the case of k = n (Hamiltonian Path) and then we’ll turn to “parameterizing” these algorithms so they work for all k. A number of papers in bioinformatics have used quick algorithms for k-Path and related problems to analyze various networks that arise in biology (some references are [SIKS05, ADH+08, YLRS+09]). In the following, we always denote the number of vertices jV j in our given graph G = (V; E) by n, and the number of edges jEj by m. We often associate the set of vertices V with the set [n] := f1; : : : ; ng. 1 Hamiltonian Path Before discussing k-Path, it will be useful to first discuss algorithms for the famous NP-complete Hamiltonian path problem, which is the special case where k = n. Essentially all algorithms we discuss here can be adapted to obtain algorithms for k-Path! The naive algorithm for Hamiltonian Path takes time about n! = 2Θ(n log n) to try all possible permutations of the nodes (which can also be adapted to get an O?(k!)-time algorithm for k-Path, as we’ll see). -
FPT Algorithms for Diverse Collections of Hitting Sets
algorithms Article FPT Algorithms for Diverse Collections of Hitting Sets Julien Baste 1,* , Lars Jaffke 2,*, Tomáš Masaˇrík 3,4,* , Geevarghese Philip 5,6,* and Günter Rote 7,* 1 Institute of Optimization and Operations Research, Ulm University, 89081 Ulm, Germany 2 Department of Informatics, University of Bergen, 5008 Bergen, Norway 3 Department of Applied Mathematics of the Faculty of Mathematics and Physics, Charles University, 11800 Prague, Czech Republic 4 Faculty of Mathematics, Informatics and Mechanics, University of Warsaw, 02-097 Warszawa, Poland 5 Chennai Mathematical Institute, Chennai 603103, India 6 International Joint Unit Research Lab in Computer Science (UMI ReLaX), Chennai 603103, India 7 Fachbereich Mathematik und Informatik, Freie Universität Berlin, D-14195 Berlin, Germany * Correspondence: [email protected] (J.B.); [email protected] (L.J.); [email protected] (T.M.); [email protected] (G.P.); [email protected] (G.R.) Received: 25 October 2019; Accepted: 23 November 2019; Published: 27 November 2019 Abstract: In this work, we study the d-HITTING SET and FEEDBACK VERTEX SET problems through the paradigm of finding diverse collections of r solutions of size at most k each, which has recently been introduced to the field of parameterized complexity. This paradigm is aimed at addressing the loss of important side information which typically occurs during the abstraction process that models real-world problems as computational problems. We use two measures for the diversity of such a collection: the sum of all pairwise Hamming distances, and the minimum pairwise Hamming distance. We show that both problems are fixed-parameter tractable in k + r for both diversity measures. -
Graph Theory 1 Introduction
6.042/18.062J Mathematics for Computer Science March 1, 2005 Srini Devadas and Eric Lehman Lecture Notes Graph Theory 1 Introduction Informally, a graph is a bunch of dots connected by lines. Here is an example of a graph: B H D A F G I C E Sadly, this definition is not precise enough for mathematical discussion. Formally, a graph is a pair of sets (V, E), where: • Vis a nonempty set whose elements are called vertices. • Eis a collection of twoelement subsets of Vcalled edges. The vertices correspond to the dots in the picture, and the edges correspond to the lines. Thus, the dotsandlines diagram above is a pictorial representation of the graph (V, E) where: V={A, B, C, D, E, F, G, H, I} E={{A, B} , {A, C} , {B, D} , {C, D} , {C, E} , {E, F } , {E, G} , {H, I}} . 1.1 Definitions A nuisance in first learning graph theory is that there are so many definitions. They all correspond to intuitive ideas, but can take a while to absorb. Some ideas have multi ple names. For example, graphs are sometimes called networks, vertices are sometimes called nodes, and edges are sometimes called arcs. Even worse, no one can agree on the exact meanings of terms. For example, in our definition, every graph must have at least one vertex. However, other authors permit graphs with no vertices. (The graph with 2 Graph Theory no vertices is the single, stupid counterexample to many wouldbe theorems— so we’re banning it!) This is typical; everyone agrees moreorless what each term means, but dis agrees about weird special cases. -
The Generalized Deadlock Resolution Problem
The Generalized Deadlock Resolution Problem Kamal Jain¤ Mohammad T. Hajiaghayiy Kunal Talwarz Abstract In this paper we initiate the study of the AND-OR directed feedback vertex set problem from the view- point of approximation algorithms. This AND-OR feedback vertex set problem is motivated by a practical deadlock resolution problem that appears in the development of distributed database systems1. This prob- lem also turns out be a natural generalization of the directed feedback vertex set problem. Awerbuch and Micali [1] gave a polynomial time algorithm to find a minimal solution for this problem. Unfortunately, a minimal solution can be arbitrarily more expensive than the minimum cost solution. We show that finding the minimum cost solution is as hard as the directed steiner tree problem (and thus (log2n) hard to ap- proximate). On the positive side, we give algorithms which work well when the number of writers (AND nodes) or the number of readers (OR nodes) are small. We also consider a variant that we call permanent deadlock resolution where we cannot specify an execution order for the surviving processes; they should get completed even if they were scheduled adver- sarially. When all processes are writers (AND nodes), we give an O(log n log log n) approximation for this problem. Finally we give an LP-rounding approach and discuss some other natural variants. 1 Introduction One of the best ways to understand deadlocks in databases is the dining philosophers problem. Say there are five philosophers sitting on a circular table to eat spaghetti, with a fork between every two of them. -
HABILITATION THESIS Petr Gregor Combinatorial Structures In
HABILITATION THESIS Petr Gregor Combinatorial Structures in Hypercubes Computer Science - Theoretical Computer Science Prague, Czech Republic April 2019 Contents Synopsis of the thesis4 List of publications in the thesis7 1 Introduction9 1.1 Hypercubes...................................9 1.2 Queue layouts.................................. 14 1.3 Level-disjoint partitions............................ 19 1.4 Incidence colorings............................... 24 1.5 Distance magic labelings............................ 27 1.6 Parity vertex colorings............................. 29 1.7 Gray codes................................... 30 1.8 Linear extension diameter........................... 36 Summary....................................... 38 2 Queue layouts 51 3 Level-disjoint partitions 63 4 Incidence colorings 125 5 Distance magic labelings 143 6 Parity vertex colorings 149 7 Gray codes 155 8 Linear extension diameter 235 3 Synopsis of the thesis The thesis is compiled as a collection of 12 selected publications on various combinatorial structures in hypercubes accompanied with a commentary in the introduction. In these publications from years between 2012 and 2018 we solve, in some cases at least partially, several open problems or we significantly improve previously known results. The list of publications follows after the synopsis. The thesis is organized into 8 chapters. Chapter 1 is an umbrella introduction that contains background, motivation, and summary of the most interesting results. Chapter 2 studies queue layouts of hypercubes. A queue layout is a linear ordering of vertices together with a partition of edges into sets, called queues, such that in each set no two edges are nested with respect to the ordering. The results in this chapter significantly improve previously known upper and lower bounds on the queue-number of hypercubes associated with these layouts. -
HAMILTONICITY in CAYLEY GRAPHS and DIGRAPHS of FINITE ABELIAN GROUPS. Contents 1. Introduction. 1 2. Graph Theory: Introductory
HAMILTONICITY IN CAYLEY GRAPHS AND DIGRAPHS OF FINITE ABELIAN GROUPS. MARY STELOW Abstract. Cayley graphs and digraphs are introduced, and their importance and utility in group theory is formally shown. Several results are then pre- sented: firstly, it is shown that if G is an abelian group, then G has a Cayley digraph with a Hamiltonian cycle. It is then proven that every Cayley di- graph of a Dedekind group has a Hamiltonian path. Finally, we show that all Cayley graphs of Abelian groups have Hamiltonian cycles. Further results, applications, and significance of the study of Hamiltonicity of Cayley graphs and digraphs are then discussed. Contents 1. Introduction. 1 2. Graph Theory: Introductory Definitions. 2 3. Cayley Graphs and Digraphs. 2 4. Hamiltonian Cycles in Cayley Digraphs of Finite Abelian Groups 5 5. Hamiltonian Paths in Cayley Digraphs of Dedekind Groups. 7 6. Cayley Graphs of Finite Abelian Groups are Guaranteed a Hamiltonian Cycle. 8 7. Conclusion; Further Applications and Research. 9 8. Acknowledgements. 9 References 10 1. Introduction. The topic of Cayley digraphs and graphs exhibits an interesting and important intersection between the world of groups, group theory, and abstract algebra and the world of graph theory and combinatorics. In this paper, I aim to highlight this intersection and to introduce an area in the field for which many basic problems re- main open.The theorems presented are taken from various discrete math journals. Here, these theorems are analyzed and given lengthier treatment in order to be more accessible to those without much background in group or graph theory. -
Fixed-Parameter Tractability Results for Feedback Set Problems in Tournaments
Fixed-Parameter Tractability Results for Feedback Set Problems in Tournaments Michael Dom, Jiong Guo, Falk H¨uffner, Rolf Niedermeier, and Anke Truß Institut f¨ur Informatik, Friedrich-Schiller-Universit¨at Jena, Germany Structure of the Talk I The Feedback Vertex Set Problem in Tournaments I An Iterative Compression Algorithm I Further Results The Problem Feedback Vertex Set Definition (Feedback Vertex Set (FVS)) Input: Directed graph G = (V , E), integer k ≥ 0. Output: Is there a subset X ⊆ V of at most k vertices such that G[V \ X ] has no cycles? The Problem Feedback Vertex Set Definition (Feedback Vertex Set (FVS)) Input: Directed graph G = (V , E), integer k ≥ 0. Output: Is there a subset X ⊆ V of at most k vertices such that G[V \ X ] has no cycles? The Problem Feedback Vertex Set Definition (Feedback Vertex Set (FVS)) Input: Directed graph G = (V , E), integer k ≥ 0. Output: Is there a subset X ⊆ V of at most k vertices such that G[V \ X ] has no cycles? Complexity of Feedback Vertex Set Feedback Vertex Set is NP-complete on: I Directed graphs [Karp, 1972] I Planar directed graphs [Yannakakis, STOC 1978] I Directed graphs with in-/outdegree ≤ 2 [Garey and Johnson, Computers and Intractability, 1979] I Planar directed graphs with in-/outdegree ≤ 3 [Garey and Johnson, Computers and Intractability, 1979] I Tournaments [Speckenmeyer, WG 1989] Tournaments For each pair u, v of vertices, there is exactly one of the edges (u, v) and (v, u). Approximability of Feedback Vertex Set I Feedback Vertex Set is APX-hard on directed graphs. -
Faster Exact and Parameterized Algorithm for Feedback Vertex Set in Tournaments
Faster Exact and Parameterized Algorithm for Feedback Vertex Set in Tournaments Mithilesh Kumar1 and Daniel Lokshtanov2 1 Department of Informatics, University of Bergen Norway [email protected] 2 Department of Informatics, University of Bergen Norway [email protected] Abstract A tournament is a directed graph T such that every pair of vertices is connected by an arc. A feedback vertex set is a set S of vertices in T such that T −S is acyclic. In this article we consider the Feedback Vertex Set problem in tournaments. Here the input is a tournament T and an integer k, and the task is to determine whether T has a feedback vertex set of size at most k. We give a new algorithm for Feedback Vertex Set in Tournaments. The running time of our algorithm is upper-bounded by O(1.6181k + nO(1)) and by O(1.466n). Thus our algorithm simultaneously improves over the fastest known parameterized algorithm for the problem by Dom et al. running in time O(2kkO(1) + nO(1)), and the fastest known exact exponential-time algorithm by Gaspers and Mnich with running time O(1.674n). On the way to proving our main result we prove a strengthening of a special case of a graph partitioning theorem due to Bollobás and Scott. In particular we show that the vertices of any undirected m-edge graph of maximum degree d can be colored white or black in such a way that for each of the two colors, the number of edges with both endpoints of that color is between m/4 − d/2 and m/4+d/2. -
FPT Algorithms and Kernelization?
Noname manuscript No. (will be inserted by the editor) Structural Parameterizations of Undirected Feedback Vertex Set: FPT Algorithms and Kernelization? Diptapriyo Majumdar · Venkatesh Raman Received: date / Accepted: date Abstract A feedback vertex set in an undirected graph is a subset of vertices whose removal results in an acyclic graph. We consider the parameterized and kernelization complexity of feedback vertex set where the parameter is the size of some structure in the input. In particular, we consider parameterizations where the parameter is (instead of the solution size), the distance to a class of graphs where the problem is polynomial time solvable, and sometimes smaller than the solution size. Here, by distance to a class of graphs, we mean the minimum number of vertices whose removal results in a graph in the class. Such a set of vertices is also called the `deletion set'. In this paper, we show that k (1) { FVS is fixed-parameter tractable by an O(2 nO ) time algorithm, but is unlikely to have polynomial kernel when parameterized by the number of vertices of the graph whose degree is at least 4. This answersp a question asked in an earlier paper. We also show that an algorithm with k (1) running time O(( 2 − ) nO ) is not possible unless SETH fails. { When parameterized by k, the number of vertices, whose deletion results in a split graph, we give k (1) an O(3:148 nO ) time algorithm. { When parameterized by k, the number of vertices whose deletion results in a cluster graph (a k (1) disjoint union of cliques), we give an O(5 nO ) algorithm. -
The Cube of Every Connected Graph Is 1-Hamiltonian
JOURNAL OF RESEARCH of the National Bureau of Standards- B. Mathematical Sciences Vol. 73B, No.1, January- March 1969 The Cube of Every Connected Graph is l-Hamiltonian * Gary Chartrand and S. F. Kapoor** (November 15,1968) Let G be any connected graph on 4 or more points. The graph G3 has as its point set that of C, and two distinct pointE U and v are adjacent in G3 if and only if the distance betwee n u and v in G is at most three. It is shown that not only is G" hamiltonian, but the removal of any point from G" still yields a hamiltonian graph. Key Words: C ube of a graph; graph; hamiltonian. Let G be a graph (finite, undirected, with no loops or multiple lines). A waLk of G is a finite alternating sequence of points and lines of G, beginning and ending with a point and where each line is incident with the points immediately preceding and followin g it. A walk in which no point is repeated is called a path; the Length of a path is the number of lines in it. A graph G is connected if between every pair of distinct points there exists a path, and for such a graph, the distance between two points u and v is defined as the length of the shortest path if u 0;1= v and zero if u = v. A walk with at least three points in which the first and last points are the same but all other points are dis tinct is called a cycle.