Adaptive Coalition Structure Generation in Cooperative Multiagent Systems