Submodular Optimization in Sensor and Social Networks - Parts I and II