Idempotence is a term used in mathematics and computer science . In mathematics, an object that has the property with a link is called idempotent with respect to this link. An important special case are idempotent functions with regard to the sequential execution . Similarly, in computer science, a piece of program code that is executed several times in a row delivers the same result as with a single execution, is called idempotent.
An element of a set is called idempotent with respect to a -digit link and if:
If is and the connection (as is common with multiplication in rings) is noted in power notation, the condition is written as
from which immediately
- for all
follows, which explains the term idempotence (Latin for equal potency).
then is a fixed point of
d. H. for all results in a double application of the same value as the unique: .
Idempotent algebraic structures
Are all elements of a semigroup (or more generally a magma ) idempotent respect , it is also self- idempotent called. Alternatively, an idempotent semigroup is often referred to as a band . Every commutative band is called a half lattice . A semigroup is called globally idempotent if:
- with .
- Regarding multiplication , the solutions and the equation are the only idempotent real numbers .
- With regard to a two-digit link , a (left or right) neutral element is always idempotent: In a group , the neutral element is the only idempotent element.
- In a ring with one , and are always idempotent elements with regard to multiplication. If the ring does not have zero divisors , other idempotent elements can also exist. For example, in the remainder class ring
- and .
- In an association , all elements are idempotent with respect to the links and . That means it is always and . The same applies to the half-associations and .
- Absorbent elements are always idempotent.
- Constant functions:
- Identical figure :
- , if
- Projections , e.g. B.
- Amount functions :
- Hull operators .
- Core operators .
- A matrix over any field is idempotent with respect to the usual matrix multiplication if and only if the linear mapping it induces
- is idempotent. In particular, the eigenvalues of all are or . Geometrically, idempotent linear mappings can be interpreted as a projection of the vector space onto a sub-vector space .
- Every idempotent ring is commutative because it applies to all
- (second and fifth equation because of idempotency, third and fourth equation because of distributivity), so
- This also applies by and sets and, again, uses idempotency,
- Hence is
- In particular, the following also applies (because of idempotence and because of (1) with )
- If is commutative, then applies to all
- If, on the other hand, is distributive, then commutativity follows from this, just as with an idempotent ring.
In IT, the idempotency of recovery measures for databases and services is required in order to ensure fault tolerance in the event of a crash during a restart phase. Undo and redo operations must have the same result even if they are executed several times in a row.
Read-only services are inherently idempotent since the state of the data is not changed. Every non-idempotent writing service can be made an idempotent service from a technical point of view.
In the case of a service for booking amounts of money, the call deposit (100) is not idempotent, since the amount 100 is paid in several times if the service is called up several times. On the other hand, if you were to call up a new account balance (600) , the account balance would remain the same if the service was called up several times. This call would be idempotent.
- Jeremy Gunawardena: An introduction to idempotency in J. Gunawardena (ed.): Idempotency , Cambridge University Press, 1998, ISBN 0-521-55344-X , pp. 1–49 (English; advance publication online , PDF file, 414 kB )
- Munindar Paul Singh, Michael N. Huhns: Service-oriented Computing: Semantics, Processes, Agents . Wiley 2005, ISBN 0470091487 , p. 54 ( excerpt from Google book search)
- LN Shevrin : Semi-group of Idempotents . In: Michiel Hazewinkel (Ed.): Encyclopaedia of Mathematics . Springer-Verlag , Berlin 2002, ISBN 978-1-55608-010-4 (English, online ).
- Günther Eisenreich , Ralf Sube: Langenscheidts specialist dictionary mathematics . Langenscheidt 1996, ISBN 3861170744 , p. 381 ( excerpt in Google book search)