Computational complexity theory focuses on classifying computational problems according to their resource usage, and relating these classes to each other. A computational problem is a task solved by a computer. ... Closely related fields in theoretical computer science are analysis of algorithms and computability theory.