Algorithms for Efficient Learning Systems