Transitive closure

From Wikipedia, the free encyclopedia

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 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". Or, 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."

Contents

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 (xi) such that x = x0 and

x0Rx1, x1Rx2, …, xn−1Rxn, and xnRy
Formal notation: R^+ = \bigcup_{i\in\mathbb{N}} R^i
(for more info, see function composition)

It 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.

Let A be any set of elements.

Supposition: \existsGA transitive relationship \left / \right . RA\subseteqGA \wedge TA\not\subseteqGA. So, \exists(a,b)\not\inGA. So, that particular (a,b)\not\inRA.

Now, by definition of T, we know that \existsn\in \mathbb{N} \left / \right . (a,b)\inRnA. Then, \foralli\in \mathbb{N}, i < n \Rightarrow ei\inA. So, there is a path from a to b like this: aRAe1RA...RAe(n-1)RAb.

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

Therefore, \forall(a,b)\inA\timesA, (a,b)\inTA \Rightarrow (a,b)\inGA. This means that T\subseteqG, for any transitive G containing R. So, T is the smallest transitive relationship containing R.

If R is transitive, then R = T.

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—in the case of equivalence relations—are automatic).

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.

  • 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.

Efficient algorithms for computing the transitive closure of a graph can be found here. The simplest technique is probably the Floyd-Warshall algorithm.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.