This is a naive a posterioti collision algorithm