Select a victim to minimise cost, this victim is rolled back to some safe state. This may lead to starvation, as the same process may always be picked as victim,
perhaps we include the number of times the process has been rolled back in the cost factor.