In computational complexity theory, a complexity class is a set of problems of related complexity. A typical complexity class has a definition of the form:
the set of problems that can be solved by abstract machine M using O(f(n)) of resource R (n is the size of the input)