computation

Definition

Computable Function

A function is called computable if there is an algorithm that takes any element from the domain of as an input and produces the function value as output.

Note that the domain of can be made of arbitrary objects that can be encoded as finite strings over a suitable finite alphabet.

Partial vs. Total

Partial Function

Definition

Computable Partial Function

A (potentially partial) function is called computable if there exists an algorithm with the following properties:

  • takes any as input
  • If halts on input , it outputs
  • runs forever on input iff is not defined at
Link to original

Total Function

Definition

Computable Total Function

A total function is called computable if there exists an algorithm that takes any as input, halts, and outputs a correct .

Trivially, this is a stricter form of computability than partial functions.

Link to original