Learning in Complex Dynamic Systems : with Applications to Perpetual Flight, Energy Management, Distributed Decision Making, and Social Networks