next up previous
Next: Inductively defined domains and Up: Unit 11 Previous: Summary

Inductively defined domains

Very often, data that are manipulated by a program belong to an inductively defined domain. A domain of this type has the property that the set of its elements can be characterized as follows:

The fact that the set of elements of the domain is characterized as specified above means that no other element besides those mentioned explicitly and those specified by the rules belongs to the domain.

Example: Natural numbers:

Example: Strings:

Example: Text files:

Other inductively defined domains commonly used in computer science are lists and trees.


next up previous
Next: Inductively defined domains and Up: Unit 11 Previous: Summary