First approach for a decentralized resource allocation in ad hoc grids