Αποστολή με SMS: Optimization of Stochastic Discrete Systems and Control on Complex Networks