For which of the following, greedy algorithm finds a minimal vertex cover in polynomial time?
(a) tree graphs
(b) bipartite graphs
(c) both (a) and (b)
(d) none of the mentioned
I got this question at a job interview.
This question is from Node-Cover Problem, Hamilton Circuit Problem topic in section Intractable Problems of Automata Theory