Remark. \mathcal {P} is problems [00VR]

Note that \mathcal {P} is a set of problems, not a set of algorithms; it is the set of all problems which can be solved by some polynomial-time algorithm. For example, it does not make sense to say that Dijkstra's Algorithm is in \mathcal {P}; but it does make sense to say that the \mathsf {SHORTEST}-\mathsf {PATH} problem is in \mathcal {P}, since it can be solved by Dijkstra's Algorithm (which, as we know, is a polynomial-time algorithm).