ArticleslgStudy

computer science

Feedback vertex set

Feedback vertex set is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Feedback vertex set rather than just read about it. In short: In the mathematical discipline of graph theory, a feedback vertex set (FVS) of a graph is a set of vertices whose removal leaves a graph without cycles ("removal" means deleting the vertex and all edges adjacent to it). Equivalently, each FVS contains at least one vertex of any cycle in the graph.

Feedback vertex set — main illustration
Feedback vertex set — illustration

Key takeaways

  • Feedback vertex set belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Feedback vertex set to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Feedback vertex set from memory before moving on to harder problems.

Reference excerpt

In the mathematical discipline of graph theory, a feedback vertex set (FVS) of a graph is a set of vertices whose removal leaves a graph without cycles ("removal" means deleting the vertex and all edges adjacent to it). Equivalently, each FVS contains at least one vertex of any cycle in the graph. The feedback vertex set number of a graph is the size of a smallest FVS. Whether there exists a feedback vertex set of size at most k is an NP-complete problem; it was among the first problems shown to be NP-complete. It has wide applications in operating systems, database systems, and VLSI chip design.

Definition The FVS decision problem is as follows:

INSTANCE: An (undirected or directed) graph G=(V,E) and a positive integer k. QUESTION: Is there a subset X⊆V with |X|≤k such that, when all vertices of X and their adjacent edges are deleted from G, the remainder is cycle-free? The graph G[V∖X] that remains after removing X from G is an induced forest (resp. an induced directed acyclic graph in the case of directed graphs). Thus, finding a minimum FVS in a graph is equivalent to finding a maximum induced forest (resp. maximum induced directed acyclic graph in the case of directed graphs).

NP-completeness Karp (1972) showed that finding a feedback vertex set of size ≤k in directed graphs is NP-complete. The problem remains NP-complete on directed graphs with maximum in-degree and out-degree two, and on directed planar graphs with maximum in-degree and out-degree three. Karp's reduction also implies the NP-completeness of the feedback vertex set problem on undirected graphs, where the problem stays NP-complete on graphs of maximum degree four. The feedback vertex set problem can be solved in polynomial time on graphs of maximum degree at most three, using an algorithm based on the matroid parity problem.

Exact algorithms The corresponding NP optimization problem of finding the size of a minimum feedback vertex set can be solved in time O(1.7347n), where n is the number of vertices in the graph. This algorithm actually computes a maximum induced forest, and when such a forest is obtained, its complement is a minimum feedback vertex set. The number of minimal feedback vertex sets in a graph is bounded by O(1.8638n). The directed feedback vertex set problem can still be solved in time O*(1.9977n), where n is the number of vertices in the given directed graph. The parameterized versions of the directed and undirected problems are both fixed-parameter tractable. In undirected graphs of maximum degree three, the feedback vertex set problem can be solved in polynomial time, by transforming it into an instance of the matroid parity problem for linear matroids. The special case of finding all feedback vertices in a directed graph (vertices that lie on every directed cycle) can be solved in linear time using a DFS-based algorithm by Garey and Tarjan.

Approximation The undirected problem is APX-complete. This follows from the following facts.

The APX-completeness of the vertex cover problem; The existence of an approximation preserving L-reduction from the vertex cover problem to it; Existing constant-factor approximation algorithms. The best known approximation algorithm on undirected graphs is by a factor of two. By contrast, the directed version of the problem appears to be much harder to approximate. Under the unique games conjecture, an unproven but commonly used computational hardness assumption, it is NP-hard to approximate the problem to within any constant factor in polynomial time. The same hardness result was originally proven for the closely related feedback arc set problem, but since the feedback arc set problem and feedback vertex set problem in directed graphs are reducible to one another while preserving solution sizes, it also holds for the latter.

Bounds According to the Erdős–Pósa theorem, the size of a minimum feedback vertex set is within a logarithmic factor of the maximum number of vertex-disjoint cycles in the given graph.

Related concepts Instead of vertices, one can consider a feedback edge set - a set of edges in an undirected graph, whose removal makes the graph acyclic. The size of a smallest feedback edge set in a graph is called the circuit rank of the graph. In contrast to the FVS number, the circuit rank can be easily computed: it is |E|−|V|+|C|, where C is the set of connected components of the graph. The problem of finding a smallest feedback edge set is equivalent to finding a spanning forest, which can be done in polynomial time. The analogous concept in a directed graph is the feedback arc set (FAS) - a set of directed arcs whose removal makes the graph acyclic. Finding a smallest FAS is an NP-hard problem.

Applications In operating systems, feedback vertex sets play a prominent role in the study of deadlock recovery. In the wait-for graph of an operating system, each directed cycle corresponds to a deadlock situation. In order to resolve all deadlocks, some blocked processes have to be aborted. A minimum feedback vertex set in this graph corresponds to a minimum number of processes that one needs to abort. The feedback vertex set problem has applications in VLSI chip design. Another application is in complexity theory. Some computational problems on graphs are NP-hard in general, but can be solved in polynomial time for graphs with bounded FVS number. Some examples are graph isomorphism and the path reconfiguration problem.

Notes

References

Research articles

Textbooks and survey articles Festa, P.; Pardalos, P. M.; Resende, M.G.C. (2000), "Feedback set problems", in Du, D.-Z.; Pardalos, P. M. (eds.), Handbook of Combinatorial Optimization, Supplement vol. A (PDF), Kluwer Academic Publishers, pp. 209–259 Garey, Michael R.; Johnson, David S. (1979), Computers and Intractability: A Guide to the Theory of NP-Completeness, W.H. Freeman, A1.1: GT7, p. 191, ISBN 978-0-7167-1045-5 Silberschatz, Abraham; Galvin, Peter Baer; Gagne, Greg (2008), Operating System Concepts (8th ed.), John Wiley & Sons. Inc, ISBN 978-0-470-12872-5

Illustrations

Feedback vertex set: Removing the red vertices and all edges connected to them leaves the graph with no cycles. Thus, the set of vertices is a feedback vertex set (FVS) of the graph. There is no smaller FVS, so it is a minimum FVS and the FVS number is its size, 3.
Removing the red vertices and all edges connected to them leaves the graph with no cycles. Thus, the set of vertices is a feedback vertex set (FVS) of the graph. There is no smaller FVS, so it is a minimum FVS and the FVS number is its size, 3.

Worked examples

Example 1 — a first encounter with Feedback vertex set

Start with the simplest possible case. Write down what Feedback vertex set claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Feedback vertex set before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Feedback vertex set ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Feedback vertex set

In research
Feedback vertex set appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Feedback vertex set in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Feedback vertex set is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational problems in graph theory, NP-complete problems, so understanding it makes those chapters shorter.
In everyday life
Look for Feedback vertex set outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Feedback vertex set” →

How to study Feedback vertex set in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Feedback vertex set means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Feedback vertex set out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Feedback vertex set in simple terms?

In the mathematical discipline of graph theory, a feedback vertex set (FVS) of a graph is a set of vertices whose removal leaves a graph without cycles ("removal" means deleting the vertex and all edges adjacent to it). Equivalently, each FVS contains at least one vertex of any cycle in the graph.

Why does Feedback vertex set matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Feedback vertex set?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Feedback vertex set.

Tags

  • Computational problems in graph theory
  • NP-complete problems

Keep exploring