(definition)

**Definition:**
(1) Of a *boolean*, 0 if 1, or 1 if 0. See *not*. (2) Of a *set* A, a set having all the members which are in the *universe*, but not in A.

**See also**
*difference*, *union*, *intersection*.

*Note:
The complement can be seen as the difference of a set and the universe, or the universal set. That is, A' = U - A. If the universe is {1, 2, 3, 4}, then the complement of {1, 2} is {3, 4}, and the complement of {3} is {1, 2, 4}.*

Author: PEB

Go to the Dictionary of Algorithms and Data Structures home page.

If you have suggestions, corrections, or comments, please get in touch with Paul Black.

Entry modified 17 December 2004.

HTML page formatted Fri Feb 23 10:06:07 2018.

Cite this as:

Paul E. Black, "complement", in
*Dictionary of Algorithms and Data Structures* [online], Vreda Pieterse and Paul E. Black, eds. 17 December 2004. (accessed TODAY)
Available from: https://www.nist.gov/dads/HTML/complement.html