Transitive closure

Transitive closure

In mathematics, the transitive closure of a binary relation "R" on a set "X" is the smallest transitive relation on "X" that contains "R".

For example, if "X" is a set of airports and "xRy" means "there is a direct flight from airport "x" to airport "y", then the transitive closure of "R" is the relation "it is possible to fly from "x" to "y" in one or more flights." Or, if "X" is the set of humans (alive or dead) and "R" is the relation 'parent of', then the transitive closure of "R" is the relation "x" is an ancestor of "y".

Existence and description

For any relation "R", the transitive closure of "R" always exists. To see this, note that the intersection of any family of transitive relations is again transitive. Furthermore, there exists at least one transitive relation containing "R", namely the trivial one: "X" × "X". The transitive closure of "R" is then given by the intersection of all transitive relations containing "R".

We can describe the transitive closure of "R" in more concrete terms as follows. Define a relation "T" on "X" by saying "xTy" iff there exists a finite sequence of elements ("x""i") such that "x" = "x"0 and

:"x"0"Rx"1, "x"1"Rx"2, …, "x""n"−1"Rx""n", and "x""n""Ry"Formally, one writes:T = igcup_{i in omega} R^iIt is easy to check that the relation "T" is transitive and contains "R". Furthermore, any transitive relation containing "R" must also contain "T", so "T" is the transitive closure of "R".

Demonstration that "T" is the smallest transitive relation containing "R"

Let "A" be any set of elements.

Supposition: exists"GA" transitive relationship left / ight . "RA"subseteq"GA" wedge "TA" otsubseteq"GA". So, exists"(a,b)" otin"GA"wedge"(a,b)"in"TA". So, that particular "(a,b)" otin"RA".

Now, by definition of "T", we know that exists"n"in mathbb{N} left / ight . "(a,b)"in"RnA". Then, forall"i"in mathbb{N}, "i"<"n" Rightarrow "ei"in"A". So, there is a path from "a" to "b" like this: "aRAe1RA...RAe(n-1)RAb".

But, by transitivity of "GA" on "RA", forall"i"in mathbb{N}, "i"<"n" Rightarrow "(a,ei)"in"GA", so "(a,e(n-1))"in"GA" wedge "(e(n-1),b)"in"GA", so by transitivity of "GA", we get "(a,b)"in"GA". A Contradiction of "(a,b)" otin"GA".

Therefore, forall"(a,b)"in"A" imes"A", "(a,b)"in"TA" Rightarrow "(a,b)"in"GA". This means that "T"subseteq"G", for any transitive "G" containing "R". So, "T" is the smallest transitive relationship containing "R".

Corollary

If "R" is transitive, then "R" = "T".

Uses

Note that the union of two transitive relations need not be transitive. In order to preserve transitivity, one must take the transitive closure. This occurs, for example, when taking the union of two equivalence relations or two preorders. In order to obtain a new equivalence relation or preorder one must take the transitive closure (reflexivity and symmetry&mdash;in the case of equivalence relations&mdash;are automatic).

The transitive closure of a directed acyclic graph or DAG is the reachability relation of the DAG and a strict partial order.

Graph Theory

In computer science the concept of transitive closure can be thought of as constructing a data structure that makes it possible to answer reachability questions [ [http://www.cs.sunysb.edu/~algorith/files/transitive-closure.shtml Transitive Closure and Reduction] ] . That is, can one get from node a to node d in one or more hops? A binary relation tells you only that node a is connected to node b, and that node b is connected to node c, etc. After the transitive closure is constructed, as depicted in the following figure, in an O(1) operation one may determine that node d is reachable from node a. The data structure is typically stored as a matrix, so if matrix [1] [4] = 1, then it is the case that node 1 can reach node 4 through one or more hops.

Relationship to complexity

In computational complexity theory, the complexity class NL corresponds precisely to the set of logical sentences expressible using first-order logic together with transitive closure. This is because the transitive closure property has a close relationship with the NL-complete problem STCON for finding directed paths in a graph. Similarly, the class L is first-order logic with the commutative, transitive closure. When transitive closure is added to second-order logic instead, we obtain PSPACE.

Related concepts

* The transitive reduction of a relation "R" is the smallest relation having the transitive closure of "R" as its transitive closure. In general, it is not unique.

Algorithms

Efficient algorithms for computing the transitive closure of a graph can be found [http://www.cs.hut.fi/~enu/thesis.html here] . The simplest technique is probably the Floyd-Warshall algorithm.

References


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Closure — may refer to: Closure (container) used to seal a bottle, jug, jar, can, or other container Closure (wine bottle), a stopper Closure (business), the process by which an organization ceases operations Closure (philosophy), a principle in… …   Wikipedia

  • Transitive reduction — In mathematics, the transitive reduction of a binary relation R on a set X is a minimal relation R on X such that the transitive closure of R is the same as the transitive closure of R . If the transitive closure of R is antisymmetric and finite …   Wikipedia

  • Closure (mathematics) — For other uses, see Closure (disambiguation). In mathematics, a set is said to be closed under some operation if performance of that operation on members of the set always produces a unique member of the same set. For example, the real numbers… …   Wikipedia

  • Transitive relation — In mathematics, a binary relation R over a set X is transitive if whenever an element a is related to an element b , and b is in turn related to an element c , then a is also related to c . Transitivity is a key property of both partial order… …   Wikipedia

  • Transitive set — In set theory, a set (or class) A is transitive, if * whenever x ∈ A , and y ∈ x , then y ∈ A , or, equivalently, * whenever x ∈ A , and x is not an urelement, then x is a subset of A .The transitive closure of a set A is the smallest (with… …   Wikipedia

  • Closure operator — In mathematics, a closure operator on a set S is a function cl: P(S) → P(S) from the power set of S to itself which satisfies the following conditions for all sets X,Y ⊆ S. X ⊆ cl(X) (cl is extensive) X ⊆ Y implies cl(X) ⊆ cl(Y)   (cl… …   Wikipedia

  • Fermeture transitive —  Ne pas confondre avec la clôture transitive. La fermeture transitive est une opération mathématique pouvant être appliquée sur des ensembles. Sommaire 1 Théorie des ensembles 2 Théorie des graphes …   Wikipédia en Français

  • Action algebra — In algebraic logic, an action algebra is an algebraic structure which is both a residuated semilattice and a Kleene algebra. It adds the star or reflexive transitive closure operation of the latter to the former, while adding the left and right… …   Wikipedia

  • Binary relation — Relation (mathematics) redirects here. For a more general notion of relation, see Finitary relation. For a more combinatorial viewpoint, see Theory of relations. In mathematics, a binary relation on a set A is a collection of ordered pairs of… …   Wikipedia

  • Implementation of mathematics in set theory — This article examines the implementation of mathematical concepts in set theory. The implementation of a number of basic mathematical concepts is carried out in parallel in ZFC (the dominant set theory) and in NFU, the version of Quine s New… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”