Definition. Solve [00VN]

An algorithm A solves a decision problem D if for all binary strings s, A(s) = \mathsf {T} iff s \in D. (Remember that we are identifying decision problems with the set of inputs for which the answer is \mathsf {T}.)

(Really, to be completely formal, we would need to identify an “algorithm” with some concrete model of computation, typically a Turing machine; but we will leave that level of formality to a Theory of Computation course.)