Efficient resource allocation in ad hoc grid: model, algorithm and simulation. (1st January 2011)