Mithilesh Kumar and Daniel Lokshtanov\EventEditorsAkash Lal, S. Akshay, Saket Saurabh, and Sandeep Sen \EventNoEds4 \EventLongTitle36th IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS 2016) \EventShortTitleFSTTCS 2016 \EventAcronymFSTTCS \EventYear2016 \EventDateDecember 13–15, 2016 \EventLocationChennai, India \EventLogo \SeriesVolume65 \ArticleNo
Faster Exact and Parameterized Algorithm for Feedback Vertex Set in Bipartite Tournaments
Abstract.
A bipartite tournament is a directed graph such that every pair of vertices are connected by an arc, and no arc connects two vertices of or two vertices of . A feedback vertex set is a set of vertices in such that is acyclic. In this article we consider the Feedback Vertex Set problem in bipartite tournaments. Here the input is a bipartite tournament on vertices together with an integer , and the task is to determine whether has a feedback vertex set of size at most . We give a new algorithm for Feedback Vertex Set in Bipartite Tournaments. The running time of our algorithm is upper-bounded by , improving over the previously best known algorithm with running time [Hsiao, ISAAC 2011]. As a by-product, we also obtain the fastest currently known exact exponential-time algorithm for the problem, with running time .
Key words and phrases:
Parameterized algorithms, Exact algorithms, Feedback vertex set, Tournaments, Bipartite tournaments1991 Mathematics Subject Classification:
F.2.2 Nonnumerical Algorithms and Problems1. Introduction
A feedback vertex set in a graph is a vertex set whose removal makes the graph acyclic. The Feedback Vertex Set problem is a well-studied graph problem where input is a graph (directed or undirected) and the task is to find a smallest possible feedback vertex set. Finding such an optimal feedback vertex set turns out to be NP-complete [22], indeed the problem is one of the very first to be shown NP-complete in the influential paper of Karp [26]. Since, polynomial time algorithms are highly unlikely, Feedback Vertex Set on general directed and undirected graphs has been extensively studied from the perspective of approximation algorithms [2, 15], parameterized algorithms [6, 10, 27], exact exponential-time algorithms [29, 35] as well as graph theory [14, 30].
This paper belongs to a long line of work studying the complexity of Feedback Vertex Set on restricted classes of graphs. On one hand Feedback Vertex Set remains NP-complete on tournaments and bipartite tournaments [5], planar undirected graphs [22], planar directed graphs with in-degree and out-degree at most [22] as well as directed graphs with in-degree and out-degree at most [22]. On the other hand the problem is polynomial time solvable on undirected graphs of maximum degree [33], chordal graphs [16] and weakly chordal graphs [20], indeed on any class of graphs with polynomially many potential maximal cliques [20]. Being a problem of fundamental importance, Feedback Vertex Set has been approached algorithmically even on the classes of graphs where it remains NP-complete. For example the problem admits (efficient) polynomial time approximation schemes [8, 12, 18], sub-exponential time parameterized algorithms [11] and linear kernels [19] on classes of graphs excluding a fixed graph as a minor. In this paper we study the problem on bipartite tournaments.
A tournament is a subclass of directed graphs where every pair of vertices are connected by an arc. A bipartite tournament is a directed graph where the vertices are partitioned into two sets and , there is an arc connecting every vertex in with every vertex in , and there are no edges between vertices of and vertices of . Tournaments arise naturally from round-robin competitions whereas bipartite tournaments model a two-team competition in which every player in one team plays against every player of the other team. Here arcs are drawn from the winning to the losing player, and often one seeks to rank the players from “best” to “worst” such that players that appear higher in the ranking beat all lower ranked players they played against. Such an absolute ranking possible only if there are no cycles in the tournament. The size of the smallest feedback vertex set then becomes a measure of how far the tournament is from admitting a consistent ranking. For this reason the structure of cycles and feedback vertex sets in (bipartite) tournaments has been studied both from the perspective of graph theory [3, 7, 21] and algorithms.
For bipartite tournaments, finding a feedback vertex set reduces to hitting all cycles of length . For this reason the Feedback Vertex Set problem is more computationally tractable on bipartite tournaments than on general directed graphs. Specifically the best known approximation algorithm for Feedback Vertex Set on directed graphs has an approximation factor of [15], and the problem does not admit a constant factor approximation assuming the Unique Games Conjecture [23]. On bipartite tournaments it is easy to obtain a -approximation (see Lemma 2.2). Further, an improved approximation algorithm with ratio was obtained by Zuylen. [34].
Similarly, it was open for a long time whether Feedback Vertex Set on general directed graphs admits an FPT algorithm, that is an algorithm that determines whether there exists a solution of size at most in time . In 2008, Chen et al. [6] gave an algorithm with running time , and it is an outstanding open problem whether there exists an algorithm with running time . For bipartite tournaments, the realization that it is necessary and sufficient to hit all cycles of length yields a simple time parameterized algorithm: recursively branch on vertices of a cycle of length . Truß [32] gave an improved algorithm with running time , Sasatte [31] further improved the running time to , while Hsiao [25] gave an algorithm with running time . Prior to this work, this was the fastest known parameterized algorithm for Feedback Vertex Set on bipartite tournaments. Our main result is an algorithm with running time . Using the recent black-box reduction from parameterized to exact exponential time algorithms of Fomin et al. [17] we also obtain an exponential-time algorithm running in time.
Methods. Our algorithm is based on the recent parameterized algorithm with running time by the authors [28] for Feedback Vertex Set in tournaments. The main idea of this algorithm is that tournaments are very rigid. Given as input a tournament , by obtaining a large set of vertices that is disjoint from the feedback vertex set sought for, we can get a rough sketch of the rigid structure of . This structure is then very useful for recovering the solution . Indeed, the only way that vertices that are “far apart” in the approximate sketch of the structure of can interact with each other is by being “in conflict”. Out of two vertices that are in conflict, one of them has to be deleted. Thus, dealing with conflicts can be done in a similar fashion as with edges in the Vertex Cover problem. For any vertex appearing in at least two conflicts, branch into two sub-problems. In the first sub-problem is deleted, in the second all vertices in conflict with are deleted. If there are no conflicts it is sufficient to solve the Feedback Vertex Set problem “locally”. If every vertex appears in at most one conflict a divide and conquer approach can be taken.
Because bipartite tournaments are also quite “rigid”, we expected that the same approach would easily give an algorithm for Feedback Vertex Set on bipartite tournaments with the same running time. Our expectations were both wrong and correct; indeed we do obtain an algorithm for Feedback Vertex Set on bipartite tournaments with the same template and the same running time as the algorithm for tournaments [28], yet the adaptation turned out to be anything but easy. Specifically, in virtually every step of the algorithm, the lack of a unique topological sort of acyclic bipartite tournaments presented significant challenges.
The fact that these challenges still could be overcome by sub-exponential time cleaning procedures gives hope that the same template could be applicable in several situations where one seeks a “small” set of vertices or edges to delete in order to modify the input graph to a “rigid” structure; such as Cluster Vertex Deletion, Cograph Vertex Deletion and Feedback Vertex Set in the more general setting when the input graph is a multi-partite tournament [24].
Organization of the paper. In Section 2 we set up definitions and notation, and state a few useful preliminary results. The standard graph notation and parameterized complexity terminology is set up in the appendix. In Section 3 we define and prove some properties of -sequence. In Section 4 we define and give an algorithm for Constrained Feedback Vertex Set problem.
2. Preliminaries
Preliminary Results. If a bipartite tournament is acyclic then it does not contain any squares. It is a well-known and basic fact that the converse is also true, see e.g. [13].
Lemma 2.1.
[13] A bipartite tournament is acyclic if and only if it contains no squares.
Lemma 2.1 immediately gives rise to a folklore greedy -approximation algorithm for BTFVS: as long as contains a square, delete all the vertices in this square.
Lemma 2.2 (folklore).
There is a polynomial time algorithm that given as input a bipartite tournament and integer , either correctly concludes that has no feedback vertex set of size at most or outputs a feedback vertex set of size at most .
In fact, BTFVS has a polynomial time factor -approximation, due to Cai et al. [4]. However, the simpler algorithm from Lemma 2.2 is already suitable to our needs. The preliminary phase of our algorithm for BTFVS is the kernel of Dom et al. [13]. We will need some additional properties of this kernel that we state here. Essentially, Lemma 2.3 allows us to focus on the case when the number of vertices in the input bipartite tournament is .
Lemma 2.3.
[13] There is a polynomial time algorithm that given as input a bipartite tournament and integer , runs in polynomial time and outputs a bipartite tournament and integer such that , , , and has a feedback vertex set of size at most if and only if has a feedback vertex set of size at most .
For any sequence , let denote the length of . For each , let be the -th element of . Let be an -vertex acyclic bipartite tournament. The canonical sequence for is the sequence of vertex sets that can be obtained from in time as follows: For each , let consist of the vertices without incoming edges in .
Lemma 2.4.
[25] Let be an -node acyclic bipartite tournament. Let be the canonical sequence for . The following statements hold. (i) form a partition of . (ii) For each directed edge of , the vertex set containing precedes the vertex set containing in the sequence (i.e. ). (iii) and are the partite sets of .
Definition 2.5 (-wise independent).
A family of functions from to is called a -wise independent sample space if, for every positions , and every tuple , we have where the function is chosen uniformly at random.
Theorem 2.6.
[1] There exists a -wise independent sample space of size and it can be constructed efficiently in time linear in the output size.
3. -Sequence
First we extend the notion of the canonical sequence to general bipartite tournaments relative to a set of vertices.
Definition 3.1 (-equivalent).
Given a directed graph and a subset , two vertices are said to be -equivalent if and .
Definition 3.2 (-equivalent).
Let be a bipartite tournament and a subset such that is acyclic. Let be the canonical sequence of . For any set in the canonical sequence of and any vertex , is called -equivalent if is -equivalent to a vertex in .
Definition 3.3 (-conflicting).
Let be a bipartite tournament and a subset such that is acyclic. Let be the canonical sequence of . For any set in and for any vertex , is called -conflicting if
-
•
and ,
-
•
for every , and for every , .
Definition 3.4 (-consistent).
Let be a directed graph and . is called -consistent if for every vertex is acyclic.
As a direct consequence of the above definitions, we have the following lemma.
Lemma 3.5.
Let be an -consistent bipartite tournament for some subset . Let be the canonical sequence of . Let be a -conflicting vertex. Then, the canonical sequence of is where such that .
Definition 3.6 (-universal).
Let be a bipartite tournament and a subset such that is acyclic. Let be the canonical sequence of . A vertex is called -universal if the following holds: (i) is not -equivalent for any , (ii) is acyclic. (iii) There exists a topological sort of such that is either the first vertex (called -universal) or is the last vertex (called -universal) in the ordering.
Lemma 3.7.
Let be an -consistent bipartite tournament and let be the canonical sequence of . Then, for every vertex , there exists a unique index such that satisfies exactly one of the following properties: (i) is -equivalent, (ii) is -conflicting, (iii) is -universal.
Proof 3.8.
Since is -consistent, is acyclic. By definition, can not satisfy more than one property. If is -universal, then, is neither -equivalent nor -conflicting for any set .
If is -equivalent to some set , then by definition, is not -universal. In addition, for any set , is not -conflicting as no vertex in is -conflicting.
Suppose that is neither -equivalent for any nor -universal. We show that is -conflicting the first set that contains an out-neighbor of . Suppose that there is an index such that contains an in-neighbor of . Since , there is an index such that lies in the partite set of different from . This gives us a cycle where contradicting that is acyclic. If every vertex in is an out-neighbor of , then by definition of the canonical sequence, is -equivalent contradicting the above assumption. Hence, contains an in-neighbor of , thereby proving that is -conflicting.
Definition 3.9 (-sequence).
Let be an -consistent bipartite tournament and be the canonical sequence of . An -sequence of is a sequence of subsets such that for every index , is the set of all vertices in that are -equivalent and is the set of vertices that are -conflicting. In addition, contains every -universal vertex and contains every -universal vertex. For every , the set is called a block, is called the -sub-block and is called the -sub-block.
Lemma 3.10.
If is an -consistent bipartite tournament, then has a unique -sequence.
Proof 3.11.
The existence and the uniqueness of -sequence follows from Lemma 3.7 and the uniqueness of the canonical sequence of .
Lemma 3.12.
Let be an -consistent bipartite tournament and be the canonical sequence of . Let be the -sequence of . The following statements hold: (i) form a partition of , (ii) for each , , (iii) for each , , (iv) for every odd , and for every even , .
Definition 3.13 (Refinement).
A partition of is said to be a refinement of another partition if for every set and , either or .
Lemma 3.14.
Let be an acyclic bipartite tournament. Then, for any subset , the canonical sequence of is a refinement of the -sequence of .
Proof 3.15.
Let be the canonical sequence of and let be the -sequence of . Let be the canonical sequence of . Since each set are twins in , if any vertex in belongs to , then every vertex in belongs to . If any vertex in is -conflicting, then every vertex in is -conflicting. Hence, . If any vertex in is -universal, then every vertex in is -universal. Hence, or . The family of sets that contain an -universal vertex lie in and the family of sets that contain an -universal vertex lie in .
Lemma 3.16.
Let and be two -consistent bipartite tournaments and let be the -sequence of . Then, there exists an index , such that the -sequence of , is either or .
Proof 3.17.
The proof follows from Lemma 3.7.
Lemma 3.18.
Let be a bipartite tournament and be a feedback vertex set of . Let and . Let be the -sequence of and be the -sequence of . Then, for each index , and .
4. Constrained Feedback Vertex Set in Bipartite Tournaments
Given a tournament and an integer , in the first phase of the algorithm for feedback vertex set in tournaments of Kumar and Lokshtanov in [28], a family of sub-exponential size of vertex set pairs was obtained such that the sought solution is disjoint from and contains . The uniqueness of the topological sort of an acyclic tournament implied that any edge going from right to left (referred as back edge) over an -vertex becomes a conflict edge and must be hit by . The lack of a unique topological sort of an acyclic bipartite tournament breaks down this step as there may be a topological sort of the bipartite tournament such that a back edge is not a conflict edge. We notice that maintaining an addition subset of back edges that must be hit by helps in circumventing this issue. With this strategy in mind, we define the Constrained Feedback Vertex Set problem.
Definition 4.1 (Constrained Feedback Vertex Set(CFVS)).
Let be a bipartite tournament with vertex subsets , edge set . A feedback vertex set of is called -constrained if , and is a vertex cover for .
Constrained Feedback Vertex Set (CFVS) Input: A bipartite tournament, vertex sets , edge set and positive integer . Parameter: Task: determine whether has an -constrained CFVS of size at most .
In the rest of the paper, we assume that the size of the bipartite tournament is at most as a bi-product of the kernelization algorithm (Lemma 2.3). Given a topological sort of an acyclic bipartite tournament , we denote to be the permutation of when is restricted to . Similarly, denotes the permutation of when is restricted to . Next, we define a property of a feedback vertex set of a bipartite tournament and while solving for BTFVS, we will look for solutions that have this property.
Definition 4.2 (-homogeneous).
Let be a bipartite tournament and be a positive integer. Let be a vertex subset such that is acyclic. A feedback vertex set of size at most of is called -homogeneous if there exists a topological sort of such that every subset of consecutive vertices in or contains a vertex of .
The algorithm for CFVS is primarily based on branching and often, given a CFVS instance, a family of CFVS instances with addition properties will be constructed. We abstract it out in the following definition.
Definition 4.3 (-reduction).
A -reduction is an algorithm that given a CFVS instance outputs in time a family of size of CFVS instances such that
- Forward direction:
-
if has an -homogeneous -solution, then there exists an instance that has an -homogeneous solution.
- Backward direction:
-
if there exists an instance that has an -CFVS solution, then has an -solution.
Now, we construct a family of sets such that if has a solution of size at most , then there is a set such that is -homogeneous, and hence we can restrict our attention to looking for feedback vertex sets which are -homogeneous for some subset .
Lemma 4.4.
There exists an algorithm that given a bipartite tournament and a positive integer outputs in time , a family of size of subsets of for such that for every feedback vertex set of size at most of , there exists such that is -homogeneous.
Proof 4.5.
Using and , we construct . Let . As the first step, the algorithm uses Theorem 2.6 to construct a family of functions from to . Next, the algorithm computes a family of -wise independent subsets of : For each , let . Add to . In the next step, for every subset , compute the family of subsets . Finally, output .
To argue about the correctness of the algorithm, first, we check that the size of computed by the above algorithm is consistent with the claim in the lemma. Clearly, . We need to show that for every feedback vertex set of size and for every topological sort of , there exists a function and a set such that satisfies the required properties. Fix a feedback vertex of size and a topological sort of . First, we prove the following claim:
Claim 1.
If we pick from uniformly at random, then with non-zero probability, the following two events happen: (i) for every set of consecutive vertices in or , there is a vertex in , (ii) .
Proof 4.6.
By -wise independence of , the probability that no vertex is picked from consecutive vertices in or is at most . Let be the event that at least one set of -consecutive vertices either in or in does not contain any vertex from . Since there at most sets of -consecutive vertices, by union bound, the probability that event happens is at most . Let be the event that at least vertices of are in . The expected number of vertices of that belong to is . Therefore, by Markov’s inequality, the probability that the event occurs is at most . By union bound the probability that at least one of the events or happen is at most . Hence, the probability that none of and is at least , thereby implying the claim.
Hence, the set of functions satisfying the properties in the above claim is non-empty. Let be such a function. Since, is the collection of sets such that , there exists a choice such that . Hence, satisfies the required properties.
For the runtime of the algorithm, can be constructed in time. For each function , the set can be obtained in time. For each , can be obtained in time. Hence, the runtime of the algorithm is .
Lemma 4.7.
There exists an algorithm that given a BTFVS instance outputs in time , a family of size of CFVS instances for such that (a) if has a solution of size at most , then has a CFVS instance that has an -homogeneous solution of size at most and (b) if has a -constrained solution, then has a feedback vertex set of size at most .
Definition 4.8 (boundary, vicinity).
Let be an acyclic bipartite tournament. Let be any subset of vertices and be a topological sort of . Let be the -sequence of . For any block , the set of vertices in before the first -vertex is called the left boundary of the block and the set of vertices in after the last -vertex is called the right boundary of the block. The vicinity of the block is the union of the boundaries of , the right boundary of , and the left boundary of .
Lemma 4.9.
Let be an -homogeneous solution for a bipartite tournament . Then, in the -sequence of , for each , and . Further, there exists a topological sort of such that the size of each boundary of any block is at most and the size of the vicinity of any block is at most .
Proof 4.10.
The lemma follows immediately after observing that the canonical sequence of is a refinement of -sequence of and any topological sort of preserves the canonical sequence of .
Definition 4.11 (Back edge).
Let be an -consistent bipartite tournament for some and be the -sequence of . An edge is called a back edge if , and . Furthermore, is called short back edge if and it is called long back edge if .
Lemma 4.12.
Any feedback vertex set disjoint from must contain at least one end point of a long back edge.
As we know that in the -sequence of , there may be back edges. Since is acyclic, these edges do not participate in any cycle. We call them simple back edges. But, in the -sequence of , we may have back edges that form a cycle with two vertices of and hence at least one end-point of these edges must belong to . We call them conflict back edges. Hence, every back edge that is not a simple back edge is a conflict back edge. By Lemma 4.12, every long back edge is a conflict back edge. The -homogeneity of and Lemma 4.9 implies the following lemma.
Lemma 4.13.
Let be an -homogeneous solution for . Then, there exists a permutation of such that the number of simple back edges between any consecutive blocks in the -sequence of is at most .
Hence, if in the -sequence of , there are more than back edges between any consecutive pair of blocks, then we can branch on the choices of conflict back edges to be hit by . The next definition and lemma captures this intuition.
Definition 4.14 (weakly-coupled).
An instance of CFVS is said to be weakly-coupled if in the -sequence of , is a subset of conflict back edges containing all long back edges such that the matching in back edges between any pair of consecutive blocks in is at most .
Since we can find a matching in bipartite graphs in polynomial time, it can be checked in polynomial time whether a given CFVS instance is weakly-coupled or not.
Lemma 4.15.
There exists a -reduction from a CFVS instance to a family for such that every instance in is weakly-coupled.
Definition 4.16 (matched).
An instance of CFVS is said to be matched if forms a matching.
Note that it can be checked in polynomial time whether a given CFVS instance is matched or not.
Lemma 4.17.
There exists a -reduction from a weakly-coupled CFVS instance to for such that is weakly-coupled and matched. In addition, for each , has at most CFVS instances.
Definition 4.18 (LowBlockDegree).
An instance of CFVS is said to be LowBlockDegree if in the -sequence of , long and for every set , at most edges of are incident on .
Note that it can be checked in polynomial time whether a given CFVS instance is LowBlockDegree or not.
Definition 4.19 (-preferred vertex cover).
Given a bipartite graph a set of vertices and a set of edges such that is a matching in , a minimum vertex cover of is called -vertex cover of if for every edge such that has exactly one endpoint in , contains the endpoint of in .
Let be a bipartite tournament and let . Let be a permutation of . A vertex is called inconsistent with , if there is no index such that every vertex in is an in-neighbor of and every vertex in is an out-neighbor of . Given a CFVS instance , a block in the -sequence of is said to have large conflict edge matching if the block is incident with at least edges in .
Lemma 4.20.
There exists a -reduction from a weakly-coupled and matched CFVS instance to for such that every instance in is weakly-coupled, matched and LowBlockDegree.
Proof 4.21.
Using , we construct . Start with the -sequence of . Let , , and . Branch on every family of blocks such that . Branch on every subset of size at most . Let be the union of -sub-blocks and be the union of -sub-blocks in . Add every vertex in to . Add every back edge neighbor of to . Branch on every permutation of . Add every vertex of not consistent with the permutation to . Let be the set of back edges incident on . Let . Note that is a bipartite graph. Branch on every minimum vertex cover of by adding it to . Add a -preferred cover of conflict edges in incident on to . Finally, we add a CFVS instance to if is LowBlockDegree.
Correctness: First we show that . is bounded by the product of the number of family of blocks , the number of sets , the number of permutations of and the number of minimum vertex cover of . The number of family of blocks is bounded by as the number of blocks can be at most . Similarly, the number of subsets is bounded by . The number of permutations is bounded by . Since, is weakly-coupled, the matching on back edges incident on any block is at most . Hence, the size of a maximum matching in is at most . Hence, the number of minimal vertex cover of is at most . Since, , after little arithmetic manipulation, we have that .
By the definition of the family and of -reduction, the backward direction is immediate. For the forward direction, let be a weakly-coupled and matched CFVS instance and let be an -homogeneous solution of . It is sufficient to show that has an instance such that .
Consider the -sequence of . Fix a permutation of . Consider a permutation of vertices in whose restriction to is . Let be the family of blocks with very large matching in the set of conflict edges . Since , the size of is less than . Since the size of vicinity of any block is at most , at most vertices form the vicinity of blocks in . Let be the union of -sub-blocks and be the union of -sub-blocks in . Then, vertices in belong to . Since, is the vicinity of the blocks, every back edge incident on is a conflict edge. Hence, the back edge neighbor of belongs to . For the same reason, the set of back edges incident on are conflict edges and contains a minimum cover of . As , any vertex inconsistent with also belongs to . Now, every block in is incident with conflict edges belong to only which are disjoint, we can greedily include a vertex cover of these edges by preferring to pick the conflict edge neighbor of into . This implies that every block in after removing is not incident with any conflict edge and hence is LowBlockDegree. Since includes all possibilities of the above choices, there is an instance in that satisfies the required properties.
Definition 4.22 (Regular).
An instance of CFVS is said to be regular if in the -sequence of , for every set of size at least , there are at least vertices in and .
Note that it can be checked in polynomial time whether a given CFVS instance is regular or not. Let be a function such that given a CFVS instance outputs the family of sets of vertices which is the union of all sets and in the -sequence of such that where and .
Lemma 4.23.
There exists a -reduction from a CFVS instance to a family of CFVS instances for such that every instance in is regular.
As noted before BTFVS instance is equivalent to CFVS instance , we combine the results in the above Lemmas (abusing the notation slightly).
Lemma 4.24.
There is a -reduction from a BTFVS instance to a CFVS family for such that every instance in is regular, weakly-coupled, matched and LowBlockDegree. In addition, for each , has at most CFVS instances.
We redefine the -Feedback Vertex Cover defined in [28] with a slight modification. Let and be positive integers. Consider a class of mixed graphs in which each member is a mixed multigraph with the vertex set partitioned into vertex sets and an undirected edge set such that for each , (a) is a bipartite tournament, (b) the size of the feedback vertex set for is at least and at most , and (c) deg.
Given a mixed multigraph , a positive integer , determine whether there exists a set such that and contains no undirected edges and is acyclic. If is disjoint, we call the problem as Disjoint Feedback Vertex Cover.
Lemma 4.25.
There exists a polynomial time algorithm that given a CFVS instance that is regular, weakly-coupled, matched and LowBlockDegree outputs a partition of such that and for each is a union of consecutive blocks in the -sequence of and at least one of these hold
-
•
the size of feedback vertex set of is at least and at most ,
-
•
at least and at most edges in are incident on .
Proof 4.26.
Let be the -sequence of . Consider the sequence of blocks such that for each , . Obtain the sequence of indices such that as follows: for each , keep including for into and stop the moment at least one of the above conditions hold. To check the size of feedback vertex set in use the approximation algorithm in Lemma 2.2 i.e. check if Lemma 2.2 outputs a feedback vertex set for of size less than .
Since by regularity, the feedback vertex set of any block is at most and since the CFVS instance is weakly-coupled, the size of a maximum matching on back edges between any consecutive blocks is at most . Since the CFVS instance is matched and LowBlockDegree, the size of maximum matching in conflict edges is at most . Hence, including any block into a set increases the size of the feedback vertex set of by at most . At the same time, the degree of can increase by at most . Hence, the above algorithm outputs the required partition. Note that edges in form a matching. Hence, .
Definition 4.27 (decoupled).
An instance of CFVS is said to be decoupled if there is a partition of such that and for each (a) is a union of consecutive blocks in the -sequence of , (b) the size of feedback vertex set of is at least and at most , or at least and at most edges in are incident on . (c) contains short conflict edges between any pair of sets and .
Note that it can be checked in polynomial time whether a given CFVS instance is decoupled or not.
Lemma 4.28.
There exists a -reduction from a regular, weakly-coupled, and matched CFVS instance to a family for such that every instance in is regular, weakly-coupled, matched, LowBlockDegree and decoupled.
Proof 4.29.
Given , we construct the family . Using the algorithm of Lemma 4.25, we construct the partition of . For each , let be the set of back edges incident on from . Let be the union of such back edges. Now, we guess the subset of back edges that are not hit by the required feedback vertex set. For every subset of size at most , let . We require that the feedback vertex set hits at least one end point of every edge in . Let be the vertex cover of . For every subset , define . For each , we add the CFVC instance where into if is regular, weakly-coupled, matched, LowBlockDegree and decoupled.
The backward direction is trivial. For the forward direction, let be an -homogeneous -CFVS solution. Observe that all the above algorithm does is consider all possibilities via which may hit the back edges between and for any . The number of choices of sets is at most . Note that in the -sequence of , the matching on short back edges between any pair of consecutive blocks is at most . Hence, the vertex cover of these back edges is at most . Since the number of sets in the partition is at most , the size of the total matching on short back edges is at most . Hence, the number of choices for is at most . Hence, .
Lemma 4.30.
There is a polynomial time reduction from a CFVS instance that is regular, weakly-coupled, matched, LowBlockDegree and decoupled to an instance of Disjoint Feedback Vertex Cover for .
Proof 4.31.
Given , construct the DFVS instance with vertex set and make the edges in between any two sets and undirected. For any solution for , is a feedback vertex set of that hits . Hence, is a feedback vertex cover for for . In the backward direction, a solution for hits and is disjoint from . Hence, is a solution for .
At this point, we can use the following lemma from [28] with the only difference being in the base case as we have a bipartite tournament instead of a supertournament. We replace the naive algorithm by algorithm to find a feedback vertex for each of . Note that bounding the size of feedback vertex set in each of to and the number of ’s to at most implies that the maximum time spent in solving the base cases is at most .
Lemma 4.32.
[28] There exists an algorithm running in time which finds an optimal feedback vertex cover in a mixed multigraph in which the undirected edge set is disjoint and .
Theorem 4.33.
There exists an algorithm for BTFVS running in time.
Proof 4.34.
Using the algorithm of Lemma 4.24, construct the family of CFVS instances. For each instance , using the algorithm of Lemma 4.28 construct the family of CFVS instances. Then for each CFVS instance using Lemma 4.30, construct the DFVC instance which is solved using the algorithm of Lemma 4.32. If for any instance, the algorithm of Lemma 4.32 outputs a solution set of size at most , then we output yes, otherwise output no.
Proposition 4.35.
[17] If there exists a parameterized algorithm for any vertex deletion problem into a hereditary graph class with running time , then there exists an exact-exponential-time algorithm for the problem with running time .
The above proposition immediately implies the following theorem.
Theorem 4.36.
There exists an algorithm for BTFVS running in time.
Acknowledgements
The research leading to these results has received funding from the European Research Council under the European Union’s Seventh Framework Programme (FP7/2007-2013) / ERC grant agreement no. 306992 and the Beating Hardness by Pre-processing grant funded by the Bergen Research Foundation.
References
- [1] Noga Alon, László Babai, and Alon Itai. A fast and simple randomized parallel algorithm for the maximal independent set problem. J. Algorithms, 7(4):567–583, 1986. URL: http://dx.doi.org/10.1016/0196-6774(86)90019-2, doi:10.1016/0196-6774(86)90019-2.
- [2] Vineet Bafna, Piotr Berman, and Toshihiro Fujito. A 2-approximation algorithm for the undirected feedback vertex set problem. SIAM J. Discrete Math., 12(3):289–297, 1999.
- [3] Lowell W Beineke and Charles H.C Little. Cycles in bipartite tournaments. Journal of Combinatorial Theory, Series B, 32(2):140 – 145, 1982.
- [4] Mao-cheng Cai, Xiaotie Deng, and Wenan Zang. An approximation algorithm for feedback vertex sets in tournaments. SIAM J. Comput., 30(6):1993–2007, 2000.
- [5] Mao-cheng Cai, Xiaotie Deng, and Wenan Zang. A min-max theorem on feedback vertex sets. Math. Oper. Res., 27(2):361–371, 2002. URL: http://dx.doi.org/10.1287/moor.27.2.361.328, doi:10.1287/moor.27.2.361.328.
- [6] Jianer Chen, Yang Liu, Songjian Lu, Barry O’Sullivan, and Igor Razgon. A fixed-parameter algorithm for the directed feedback vertex set problem. J. ACM, 55(5), 2008. URL: http://doi.acm.org/10.1145/1411509.1411511, doi:10.1145/1411509.1411511.
- [7] C.R.J. Clapham. The bipartite tournament associated with a fabric. Discrete Mathematics, 57(1):195 – 197, 1985.
- [8] Vincent Cohen-Addad, Éric Colin de Verdière, Philip N. Klein, Claire Mathieu, and David Meierfrankenfeld. Approximating connectivity domination in weighted bounded-genus graphs. In Proceedings of the 48th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2016, Cambridge, MA, USA, June 18-21, 2016, pages 584–597, 2016.
- [9] Marek Cygan, Fedor V. Fomin, Lukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michal Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015.
- [10] Marek Cygan, Jesper Nederlof, Marcin Pilipczuk, Michal Pilipczuk, Johan M. M. van Rooij, and Jakub Onufry Wojtaszczyk. Solving connectivity problems parameterized by treewidth in single exponential time. In IEEE 52nd Annual Symposium on Foundations of Computer Science, FOCS 2011, Palm Springs, CA, USA, October 22-25, 2011, pages 150–159, 2011.
- [11] Erik D. Demaine, Fedor V. Fomin, Mohammad Taghi Hajiaghayi, and Dimitrios M. Thilikos. Subexponential parameterized algorithms on bounded-genus graphs and H-minor-free graphs. J. ACM, 52(6):866–893, 2005.
- [12] Erik D. Demaine and Mohammad Taghi Hajiaghayi. Bidimensionality: new connections between FPT algorithms and ptass. In Proceedings of the Sixteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2005, Vancouver, British Columbia, Canada, January 23-25, 2005, pages 590–601, 2005.
- [13] Michael Dom, Jiong Guo, Falk Hüffner, Rolf Niedermeier, and Anke Truß. Fixed-parameter tractability results for feedback set problems in tournaments. J. Discrete Algorithms, 8(1):76–86, 2010.
- [14] P Erdős and L Pósa. On independent circuits contained in a graph. Canad. J. Math, 17:347–352, 1965.
- [15] Guy Even, Joseph Naor, Baruch Schieber, and Madhu Sudan. Approximating minimum feedback sets and multicuts in directed graphs. Algorithmica, 20(2):151–174, 1998.
- [16] Paola Festa, Panos M Pardalos, and Mauricio GC Resende. Feedback set problems. In Handbook of combinatorial optimization, pages 209–258. Springer, 1999.
- [17] Fedor V. Fomin, Serge Gaspers, Daniel Lokshtanov, and Saket Saurabh. Exact algorithms via monotone local search. In Proceedings of the 48th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2016, Cambridge, MA, USA, June 18-21, 2016, pages 764–775, 2016. URL: http://doi.acm.org/10.1145/2897518.2897551, doi:10.1145/2897518.2897551.
- [18] Fedor V. Fomin, Daniel Lokshtanov, Venkatesh Raman, and Saket Saurabh. Bidimensionality and EPTAS. In Proceedings of the Twenty-Second Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2011, San Francisco, California, USA, January 23-25, 2011, pages 748–759, 2011.
- [19] Fedor V. Fomin, Daniel Lokshtanov, Saket Saurabh, and Dimitrios M. Thilikos. Bidimensionality and kernels. In Proceedings of the Twenty-First Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2010, Austin, Texas, USA, January 17-19, 2010, pages 503–510, 2010.
- [20] Fedor V. Fomin and Yngve Villanger. Finding induced subgraphs via minimal triangulations. In 27th International Symposium on Theoretical Aspects of Computer Science, STACS 2010, March 4-6, 2010, Nancy, France, pages 383–394, 2010.
- [21] Leo Moser Frank Harary. The theory of round robin tournaments. The American Mathematical Monthly, 73(3):231–246, 1966. URL: http://www.jstor.org/stable/2315334.
- [22] Michael R. Garey and David S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. Series of Books in the Mathematical Sciences. W. H. Freeman and Co., 1979.
- [23] Venkatesan Guruswami, Johan Håstad, Rajsekar Manokaran, Prasad Raghavendra, and Moses Charikar. Beating the random ordering is hard: Every ordering CSP is approximation resistant. SIAM J. Comput., 40(3):878–914, 2011.
- [24] Gregory Gutin and Anders Yeo. Some parameterized problems on digraphs. Comput. J., 51(3):363–371, 2008.
- [25] Sheng-Ying Hsiao. Fixed-parameter complexity of feedback vertex set in bipartite tournaments. In Algorithms and Computation - 22nd International Symposium, ISAAC 2011, Yokohama, Japan, December 5-8, 2011. Proceedings, pages 344–353, 2011. URL: http://dx.doi.org/10.1007/978-3-642-25591-5_36, doi:10.1007/978-3-642-25591-5_36.
- [26] Richard M. Karp. Reducibility among combinatorial problems. In Proceedings of a symposium on the Complexity of Computer Computations, held March 20-22, 1972, at the IBM Thomas J. Watson Research Center, Yorktown Heights, New York., pages 85–103, 1972.
- [27] Tomasz Kociumaka and Marcin Pilipczuk. Faster deterministic feedback vertex set. Inf. Process. Lett., 114(10):556–560, 2014.
- [28] Mithilesh Kumar and Daniel Lokshtanov. Faster exact and parameterized algorithm for feedback vertex set in tournaments. In 33rd Symposium on Theoretical Aspects of Computer Science, STACS 2016, February 17-20, 2016, Orléans, France, pages 49:1–49:13, 2016. URL: http://dx.doi.org/10.4230/LIPIcs.STACS.2016.49, doi:10.4230/LIPIcs.STACS.2016.49.
- [29] Igor Razgon. Computing minimum directed feedback vertex set in o(1.9977). In Theoretical Computer Science, 10th Italian Conference, ICTCS 2007, Rome, Italy, October 3-5, 2007, Proceedings, pages 70–81, 2007.
- [30] Bruce Reed, Neil Robertson, Paul Seymour, and Robin Thomas. Packing directed circuits. Combinatorica, 16(4):535–554, 1996.
- [31] Prashant Sasatte. Improved FPT algorithm for feedback vertex set problem in bipartite tournament. Inf. Process. Lett., 105(3):79–82, 2008. URL: http://dx.doi.org/10.1016/j.ipl.2007.08.014, doi:10.1016/j.ipl.2007.08.014.
- [32] A Truß. Parameterized algorithms for feedback set problems in tournaments. PhD thesis, Diplomarbeit, Institut für Informatik, Friedrich-Schiller-Universität Jena, 2005.
- [33] Shuichi Ueno, Yoji Kajitani, and Shin’ya Gotoh. On the nonseparating independent set problem and feedback set problem for graphs with no vertex degree exceeding three. Discrete Mathematics, 72(1-3):355–360, 1988.
- [34] Anke van Zuylen. Linear programming based approximation algorithms for feedback set problems in bipartite tournaments. Theor. Comput. Sci., 412(23):2556–2561, 2011. URL: http://dx.doi.org/10.1016/j.tcs.2010.10.047, doi:10.1016/j.tcs.2010.10.047.
- [35] Mingyu Xiao and Hiroshi Nagamochi. An improved exact algorithm for undirected feedback vertex set. J. Comb. Optim., 30(2):214–241, 2015.
Appendix
In this paper, we work with graphs that do not contain any self loops. A multigraph is a graph that may contain more than one edge between the same pair of vertices. A graph is mixed if it can contain both directed and undirected edges. We will be working with mixed multigraphs; graphs that contain both directed and undirected edges, and where two vertices may have several edges between them.
When working with a mixed multigraph we use to denote the vertex set, to denote the set of directed edges, and to denote the set of undirected edges of . A directed edge from to is denoted by .
Graph Notation. In a directed graph , the set of out-neighbors of a vertex is defined as . Similarly, the set of in-neighbors of a vertex is defined as . A square in a directed graph is a directed cycle of length . Note that in this paper, whenever the term square is used it refers to a directed square. A pair of vertices are called false twins if and . A topological sort of a directed graph is a permutation of the vertices of the graph such that for all edges , . Such a permutation exists for a directed graph if and only if the directed graph is acyclic. For an acyclic tournament, the topological sort is unique. For an acyclic bipartite tournament, the topological sort is unique up to permutation of false twins.
For a graph or multigraph and vertex , denotes the graph obtained from by deleting and all edges incident to . For a vertex set , denotes the graph obtained from by deleting all vertices in and all edges incident to them.
For any set of edges (directed or undirected) and set of vertices , the set represents the subset of vertices of which are incident on an edge in . For a vertex , the set represents the set of vertices such that there is an undirected edge . We define a vertex cover for a set of edges to be a set of endpoints of such that every edge has at least one endpoint in . For a bipartite graph , and are called the partite sets of .
Fixed Parameter Tractability. A parameterized problem is a subset of . A parameterized problem is said to be fixed parameter tractable(FPT) if there exists an algorithm that takes as input an instance and decides whether in time , where is the length of the string , is a computable function depending only on and is a constant independent of and .
A kernel for a parameterized problem is an algorithm that given an instance runs in time polynomial in , and outputs an instance such that for a computable function and if and only if . For a comprehensive introduction to FPT algorithms and kernels, we refer to the book by Cygan et al. [9].
Lemma 4.7 (Restated) There exists an algorithm that given a BTFVS instance outputs in time , a family of size of CFVS instances for such that
-
•
if has a feedback vertex set of size at most , then has a CFVS instance that has an -homogeneous solution of size at most and
-
•
if has a -constrained solution, then has a feedback vertex set of size at most .
Proof .37.
Given , we use the algorithm of Lemma 4.4 with as input and obtain the family of sets . For each set , we add a CFVS instance in where is the set of vertices in that form a cycle of length with . For the forward direction, if has a solution of size at most , then by Lemma 4.4, there exists a set such that is -homogeneous. Since, is the set of vertices that form a cycle with and , . Hence, has an -homogeneous solution. The backward direction immediately follows from the construction of .
Lemma 4.12 (Restated) Any feedback vertex set disjoint from must contain at least one end point of a long back edge.
Proof .38.
Let be a long back edge and and . Then, there are two vertices and in such that . This creates the cycle . Since and are undeletable, the feedback vertex set must contain at least one of and .
Now, consider the case when and . Since is -conflicting, there is an out neighbor of . Again, since , there is a set such that and we get a cycle where . The case when and is similar.
Let be a bipartite tournament such that is -consistent for some sets . Let be a function such that given an -consistent bipartite tournament for some set and an integer , outputs the set of short back edges in the -sequence of which is the union of all sets of back edges between and such that the size of matching in the bipartite graph is at least . Let long denote the set of long back edges in .
Lemma 4.15 (Restated) There exists a -reduction from a CFVS instance to a family for such that every instance in is weakly-coupled.
Proof .39.
We construct as follows. For each such that output a set long. For each set , add the instance in if weakly-coupled.
By the definition of -reduction and the construction of , the backward direction is trivial. Now we consider the forward direction. Let be an -homogeneous -constrained solution for and be the -sequence of . It is sufficient to show that there is a CFVS instance such that is a vertex cover of . A pair of consecutive blocks is said to have large back edge matching if the size of a matching in the set of back edges between them is at least . Fix a permutation of and choose any permutation of such that is . By Lemma 4.13, we have that at most edges are simple back edges between any pair of consecutive blocks in the -sequence of . Rest of the back edges are conflict back edges and must be hit by . If the short back edge matching is large between a pair of blocks, then at least of them are conflict back edges. Hence, the number of set pairs with large short edge matching can be at most . This implies that at most edges are simple back edges. Since the algorithm loops over all choices of subsets , , contains an instance with the required properties.
Moreover, is bounded by the number of subsets . Now which implies the number of subsets is at most . Hence,
Lemma 4.17 (Restated) There exists a -reduction from a weakly-coupled CFVS instance to for such that is weakly-coupled and matched. In addition, for each , has at most CFVS instances.
Proof .40.
We construct the family using a branching algorithm. Consider the graph . Start with , and . In each branch node, the sets are updated and finally for each leaf node in the branch tree, the corresponding instance is returned. As long as there is a vertex of degree at least and , branch by considering both the possibilities: or . In the branch in which is picked, decrease by 1 and update and . In the other branch, is added to , is removed from and is decreased by . The algorithm stops branching further in a branch in which either or and for every vertex , degree of is at most 1. In the case that or , the algorithm terminates the branch without returning any instance and moves on to other branches. Any returned instance is added to if the instance is regular, weakly-coupled and matched.
Again, the definition of the -reduction and above construction of , ensures the backward direction. Now we consider the forward direction. Let be weakly-coupled and be an -homogeneous -constrained solution of . Since, the above branching algorithm adds an instance into with containing such that forms a matching, if is non-empty, all instances in it are weakly-coupled and matched. Since hits , there is a subset of , such that forms a matching in . Since the above algorithm via branching considers all possible subsets containing that make disjoint in some branch implying that contains an -homogeneous -constrained solution.
Now we argue about and the number of instances. Let denote the size of in any instance . Since, must hit and are disjoint . As , . The recurrence relation for bounding the number of leaves with in the branch tree of the above algorithm is given by:
which solves to as for .
Lemma 4.23 (Restated) There exists a -reduction from a CFVS instance to a family of CFVS instances for such that every instance in is regular.
Proof .41.
We construct as follows. Compute the sets . For each such that , output a pair of sets . For each pair , add a CFVS instance in if is regular.
By the definition of -reduction and the construction of , the backward direction is trivial. For the forward direction, let be an -homogeneous -CFVS solution of .
A set in the -sequence of is called large if the ratio is at least . Similarly, is large if . From each large set at least vertices belong to . Similarly, from each large , at least belongs to . Hence, if is the total number of -vertices in the union of large sets, then in total at most vertices from the union of large sets in the -sequence of do not belong to . Since the algorithm loops over all choices of subsets , , contains an instance satisfying the required properties.
Moreover, is bounded by the number of subsets . Now which implies the number of subsets is at most .
Lemma 4.24 (Restated) There is a -reduction from a BTFVS instance to a CFVS family for such that every instance in is regular, weakly-coupled, matched and LowBlockDegree. In addition, for each , has at most CFVS instances.
Proof .42.
Given the BTFVS instance , run the algorithm of Lemma 4.7 to obtain the CFVS family . For each instance , run the algorithm of Lemma 4.23 to obtain the CFVS family . For each instance , run the algorithm of Lemma 4.15 to obtain the CFVS family . For each instance , run the algorithm of Lemma 4.17 to obtain the CFVS family . For each instance , run the algorithm of Lemma 4.20 to obtain the CFVS family . is the union of these families.