This algorithm determines the strength distribution.
This algorithm was written by Duygu Balcan and integrated by Russell Duhon.