Dynamics of bacterial populations under the feast-famine cycles