Design And Analysis Of Algorithms For Large-Scale Distributed Systems: A Control Theoretic Approach