I want to solve the problem below from a textbook I am reading, but I am not sure how to go about it. In fact I am not sure if it is correct at all since I think we would need the maximum frequency of an element in the sets and not the maximum size of a set, a value that I has no use I can think of.
We have a set A = {a 1 .....a n } and a collection of subsets of A, say B 1 , B 2 , ..., B m . Each element a i ∈ A has a weight w i > 0. The problem is to find a subset H ⊆ A such that the total weight of the elements in H is minimized, and at the same time, H intersects all the subsets of the collection, i.e., H ∩ B i not ∅ for every i = 1, ..., m. Let b = max i |B i | be the maximum size of the subsets B 1 , B 2 , ..., B m . Give a polynomial-time b-approximation algorithm for this problem.