Find the minimum number of nodes to be removed to convert a graph into a tree.
number of nodes < 1e5
number of edges < 2e5
Any help, please...
№ | Пользователь | Рейтинг |
---|---|---|
1 | jiangly | 3976 |
2 | tourist | 3815 |
3 | jqdai0815 | 3682 |
4 | ksun48 | 3614 |
5 | orzdevinwang | 3526 |
6 | ecnerwala | 3514 |
7 | Benq | 3482 |
8 | hos.lyric | 3382 |
9 | gamegame | 3374 |
10 | heuristica | 3357 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 169 |
2 | -is-this-fft- | 162 |
3 | Um_nik | 161 |
4 | atcoder_official | 160 |
5 | djm03178 | 157 |
5 | Dominater069 | 157 |
7 | adamant | 154 |
8 | luogu_official | 152 |
9 | awoo | 151 |
10 | TheScrasse | 148 |
Find the minimum number of nodes to be removed to convert a graph into a tree.
number of nodes < 1e5
number of edges < 2e5
Any help, please...
Название |
---|
Auto comment: topic has been updated by b_like_karthik (previous revision, new revision, compare).
This problem is NP complete.
I quote from the paper "Maximum induced trees in graphs" by Paul Erdös, Michael Saks and Vera T Sós:
"The problem “given a graph H and integer k does H have an independent set of size k?” is a well-known NP-complete problem. Given H and k, let n be the number of vertices of H and let G be the graph obtained by adjoining a path on n vertices to H, one endpoint of which is joined by an edge to every vertex in H. The problem of whether H has an independent set of size k is easily seen to be equivalent to whether G has an induced tree of size n + k."
Source: https://doi.org/10.1016/0095-8956(86)90028-6
Therefore I doubt that an algorithm exists that can solve this problem for such large graphs in reasonable time.
Thank you very much