implemented adaptive resource distrib. algorithm. distribution covered tirh tests