- #1
mathmari
Gold Member
MHB
- 5,049
- 7
Hey!
An ice cream shop has $m$ kinds of ice creams $s_1, \dots , s_m$. On the card there are $n$ cups $b_1, \dots , b_n$. Each cup contains some of the ice cream kinds. The budget of Gina suffices for $k$ cups. Gina wants to choose $k$ cups so that each of the $m$ ice cream kinds are occured. I want to show that Gina has a NP-complete problem.
I have to use reduction of Vertex Cover.
The Vertex Cover problem asks if for a graph $G= (V, E)$ and a $k$ there is a subset $C\subseteq V$ such that for each edge $(u,v)\in E$ it holds that $u\in C$ or $v\in C$.
To reduce the Vertex Cover to the above problem do we see the vertices as the cups and the edges as the ice cream kinds? (Wondering)
An ice cream shop has $m$ kinds of ice creams $s_1, \dots , s_m$. On the card there are $n$ cups $b_1, \dots , b_n$. Each cup contains some of the ice cream kinds. The budget of Gina suffices for $k$ cups. Gina wants to choose $k$ cups so that each of the $m$ ice cream kinds are occured. I want to show that Gina has a NP-complete problem.
I have to use reduction of Vertex Cover.
The Vertex Cover problem asks if for a graph $G= (V, E)$ and a $k$ there is a subset $C\subseteq V$ such that for each edge $(u,v)\in E$ it holds that $u\in C$ or $v\in C$.
To reduce the Vertex Cover to the above problem do we see the vertices as the cups and the edges as the ice cream kinds? (Wondering)