A Theoretical Perspective of Machine Learning with Computational Resource Concerns