Skip to main content
deleted 256 characters in body
Source Link
Tony Huynh
  • 32.1k
  • 11
  • 112
  • 187

I assume you want to find a minimum covering. This If $h$ is part of the input, then this problem is indeed NP-hard. For example, if $h=1$, then each tree is a star, and the problem reduces to computing a minimum vertex cover, which is NP-hard.

For an arbitrary $h$, let $G^h$ be the graph obtained from $G$ by replacing each edge of $G$ by a path with $h$ edges. It is easy to see that $G^h$ can I believe it should be covered with $n$ trees of depth at mostNP-hard for any fixed $h$ if and only if $G$ has a vertex cover of size $n$as well.

I assume you want to find a minimum covering. This problem is indeed NP-hard. For example, if $h=1$, then each tree is a star, and the problem reduces to computing a minimum vertex cover, which is NP-hard.

For an arbitrary $h$, let $G^h$ be the graph obtained from $G$ by replacing each edge of $G$ by a path with $h$ edges. It is easy to see that $G^h$ can be covered with $n$ trees of depth at most $h$ if and only if $G$ has a vertex cover of size $n$.

I assume you want to find a minimum covering. If $h$ is part of the input, then this problem is indeed NP-hard. For example, if $h=1$, then each tree is a star, and the problem reduces to computing a minimum vertex cover, which is NP-hard. I believe it should be NP-hard for any fixed $h$ as well.

added 256 characters in body
Source Link
Tony Huynh
  • 32.1k
  • 11
  • 112
  • 187

I assume you want to find a minimum covering. This problem is indeed NP-hard. For example, if $h=1$, then each tree is a star, and the problem reduces to computing a minimum vertex cover, which is NP-hard.

For an arbitrary $h$, let $G^h$ be the graph obtained from $G$ by replacing each edge of $G$ by a path with $h$ edges. It is easy to see that $G^h$ can be covered with $n$ trees of depth at most $h$ if and only if $G$ has a vertex cover of size $n$.

I assume you want to find a minimum covering. This problem is indeed NP-hard. For example, if $h=1$, then each tree is a star, and the problem reduces to computing a minimum vertex cover, which is NP-hard.

I assume you want to find a minimum covering. This problem is indeed NP-hard. For example, if $h=1$, then each tree is a star, and the problem reduces to computing a minimum vertex cover, which is NP-hard.

For an arbitrary $h$, let $G^h$ be the graph obtained from $G$ by replacing each edge of $G$ by a path with $h$ edges. It is easy to see that $G^h$ can be covered with $n$ trees of depth at most $h$ if and only if $G$ has a vertex cover of size $n$.

Source Link
Tony Huynh
  • 32.1k
  • 11
  • 112
  • 187

I assume you want to find a minimum covering. This problem is indeed NP-hard. For example, if $h=1$, then each tree is a star, and the problem reduces to computing a minimum vertex cover, which is NP-hard.