Sparse and Dense Modes are defined basically on the basis of number of multicast receivers on any network.
A dense mode assumes that the number of receivers are large and sparse mode assumes that receivers are few.
In multicast, you have to define a interface taking part in multicast activity. So, as per the number of interfaces taking part you may define the PIM mode.
Hope this clarifies ...