Disclaimer: This is a homework question.
I would like to reduce vertex cover problem to the following problem:
$$L = \{G \mid G\text{ has a vertex cover of size } |V(G)|/2\}\,.$$
I have divided the problem into three parts:
- $k = n/2$: This case is trivial.
- $k > n/2$: Yes in vertex cover problem does not necessarily mean yes in $L$.
- $k < n/2$: No in vertex cover problem does not necessarily mean no in $L$.
I know that I need to change graph $G$ into $G'$ somehow to map results of VC to $L$.
Any advice on how to do so is appreciated.