Dynamics of unsteady compressible cavitating flows associated with the cavity shedding