Smooth function: Difference between revisions
en>Jesin m →Definition: removed unnecessary line breaks |
|||
Line 1: | Line 1: | ||
{{Other uses|Closure (disambiguation)}} | |||
{{About|the transitive closure of a binary relation|the transitive closure of a set|transitive set#Transitive closure}} | |||
In [[mathematics]], the '''transitive closure''' of a [[binary relation]] ''R'' on a [[Set (mathematics)|set]] ''X'' is the [[transitive relation]] ''R''<sup>+</sup> on [[Set (mathematics)|set]] ''X'' such that ''R''<sup>+</sup> contains ''R'' and ''R''<sup>+</sup> is minimal (Lidl and Pilz 1998:337). If the binary relation itself is [[transitive relation|transitive]], then the transitive closure is that same binary relation; otherwise, the transitive closure is a different relation. For example, if ''X'' is a set of airports and ''x R y'' means "there is a direct flight from airport ''x'' to airport ''y''", then the transitive closure of ''R'' on ''X'' is the relation ''R''<sup>+</sup>: "it is possible to fly from ''x'' to ''y'' in one or more flights." | |||
== Transitive relations and examples == | |||
A relation ''R'' on a set ''X'' is transitive if, for all ''x'',''y'',''z'' in ''X'', whenever ''x R y'' and ''y R z'' then ''x R z''. Examples of transitive relations include the equality relation on any set, the "less than or equal" relation on any linearly ordered set, and the relation "''x'' was born before ''y''" on the set of all people. Symbolically, this can be denoted as: if ''x'' < ''y'' and ''y'' < ''z'' then ''x'' < ''z''. | |||
One example of a non-transitive relation is "city ''x'' can be reached via a direct flight from city ''y''" on the set of all cities. Simply because there is a direct flight from one city to a second city, and a direct flight from the second city to the third, does not imply there is a direct flight from the first city to the third. The transitive closure of this relation is a different relation, namely "there is a sequence of direct flights that begins at city ''x'' and ends at city ''y''". Every relation can be extended in a similar way to a transitive relation. | |||
==Existence and description== | |||
For any relation ''R'', the transitive closure of ''R'' always exists. To see this, note that the [[intersection (set theory)|intersection]] of any [[indexed family|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''. | |||
For finite sets, we can construct the transitive closure step by step, starting from ''R'' and adding transitive edges. | |||
This gives the intuition for a general construction. For any set ''X'', we | |||
can prove that transitive closure is given by the following expression | |||
:<math>R^{+}=\bigcup_{i\in \{1,2,3,\ldots\}} R^i.</math> | |||
where <math>R^i</math> is the ''i''-th power of ''R'', defined inductively by | |||
:<math>R^1 = R\,\!</math> | |||
and, for <math>i>0</math>, | |||
:<math>R^{i+1} = R \circ R^i</math> | |||
where <math>\circ</math> denotes [[composition of relations]]. | |||
To show that the above definition of ''R''<sup>+</sup> is the least transitive relation containing ''R'', we show that it contains ''R'', that it is transitive, and that it is the smallest set with both of those characteristics. | |||
* <math>R \subseteq R^{+}</math>: <math>\displaystyle R^+</math> contains all of the <math>\displaystyle R^i</math>, so in particular <math>\displaystyle R^+</math> contains <math>\displaystyle R</math>. | |||
* <math>\displaystyle R^{+}</math> is transitive: every element of <math>\displaystyle R^+</math> is in one of the <math>\displaystyle R^i</math>, so <math>\displaystyle R^+</math> must be transitive by the following reasoning: if <math>(s_1, s_2)\in R^j</math> and <math>(s_2, s_3)\in R^k</math>, then from composition's associativity, <math>(s_1, s_3)\in R^{j+k}</math> (and thus in <math>\displaystyle R^+</math>) because of the definition of <math>\displaystyle R^i</math>. | |||
* <math>\displaystyle R^{+}</math> is minimal: Let <math>\displaystyle G</math> be any transitive relation containing <math>\displaystyle R</math>, we want to show that <math>R^{+} \subseteq G</math>. It is sufficient to show that for every <math>i>0</math>, <math>R^i\subseteq G</math>. Well, since <math>\displaystyle G</math> contains <math>\displaystyle R</math>, <math>R^1\subseteq G</math>. And since <math>\displaystyle G</math> is transitive, whenever <math>R^i\subseteq G</math>, <math>R^{i+1}\subseteq G</math> according to the construction of <math>R^i\,\!</math> and what it means to be transitive. Therefore, by induction, <math>\displaystyle G</math> contains every <math>R^i\,\!</math>, and thus also <math>\displaystyle R^+</math>. | |||
== Properties == | |||
The [[Intersection (set theory)|intersection]] of two transitive relations is transitive. | |||
The [[union (set theory)|union]] of two transitive relations need not be transitive. To preserve transitivity, one must take the transitive closure. This occurs, for example, when taking the union of two [[equivalence relation]]s or two [[preorder]]s. 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 graph theory== | |||
[[File:Transitive-closure.svg|thumb|right|alt=Transitive closure constructs the output graph from the input graph.|Transitive closure constructs the output graph from the input graph.]] | |||
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. 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. | |||
The transitive closure of a [[directed acyclic graph]] (DAG) is the reachability relation of the DAG and a [[strict partial order]]. | |||
== In logic and computational complexity == | |||
The transitive closure of a binary relation cannot, in general, be expressed in [[first-order logic]] (FO). | |||
This means that one cannot write a formula using predicate symbols ''R'' and ''T'' that will be satisfied in | |||
any model if and only if ''T'' is the transitive closure of ''R''. | |||
In [[finite model theory]], first-order logic (FO) extended with a transitive closure operator is usually called '''transitive closure logic''', and abbreviated FO(TC) or just TC. TC is a sub-type of [[fixpoint logic]]s. The fact that FO(TC) is strictly more expressive than FO was discovered by [[Ronald Fagin]] in 1974; the result was then rediscovered by [[Alfred Aho]] and [[Jeffrey Ullman]] in 1979, who proposed to use fixpoint logic as a [[database query language]] (Libkin 2004:vii). With more recent concepts of finite model theory, proof that FO(TC) is strictly more expressive than FO follows immediately from the fact that FO(TC) is not [[Gaifman-local]] (Libkin 2004:49). | |||
In [[computational complexity theory]], the [[complexity class]] [[NL (complexity)|NL]] corresponds precisely to the set of logical sentences expressible in TC. This is because the transitive closure property has a close relationship with the [[NL-complete]] problem [[STCON]] for finding [[directed path]]s in a graph. Similarly, the class [[L (complexity)|L]] is first-order logic with the commutative, transitive closure. When transitive closure is added to [[second-order logic]] instead, we obtain [[PSPACE]]. | |||
== In database query languages == | |||
{{further|Hierarchical and recursive queries in SQL}} | |||
Since the 1980s [[Oracle Database]] has implemented a proprietary [[SQL]] extension CONNECT BY... START WITH that allows the computation of a transitive closure as part of a declarative query. The [[SQL 3]] (1999) standard added a more general WITH RECURSIVE construct also allowing transitive closures to be computed inside the query processor; as of 2011 the latter is implemented in [[IBM DB2]], [[Microsoft SQL Server]], and [[PostgreSQL]], although not in [[MySQL]] (Benedikt and Senellart 2011:189). | |||
[[Datalog]] also implements transitive closure computations (Silberschatz et al. 2010:C.3.6). | |||
== Algorithms == | |||
Efficient algorithms for computing the transitive closure of a graph can be found in Nuutila (1995). The simplest technique is probably the [[Floyd–Warshall algorithm]]. The fastest worst-case methods, which are not practical, reduce the problem to [[matrix multiplication]]. | |||
More recent research has explored efficient ways of computing transitive closure on distributed systems based on the [[MapReduce]] paradigm (Afrati et al. 2011). | |||
== See also == | |||
* [[Deductive closure]] | |||
* [[Transitive reduction]] (a smallest relation having the transitive closure of ''R'' as its transitive closure) | |||
* [[Symmetric closure]] | |||
* [[Reflexive closure]] | |||
* [[Ancestral relation]] | |||
== References == | |||
* Lidl, R. and Pilz, G., 1998, ''Applied abstract algebra'', 2nd edition, Undergraduate Texts in Mathematics, Springer, ISBN 0-387-98290-6 | |||
* Keller, U., 2004, ''[http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.127.8266 Some Remarks on the Definability of Transitive Closure in First-order Logic and Datalog]'' (unpublished manuscript) | |||
* {{cite book|author1=Erich Grädel|author2=Phokion G. Kolaitis|author3=Leonid Libkin|coauthors=Maarten Marx, Joel Spencer, Moshe Y. Vardi, Yde Venema, Scott Weinstein|title=Finite Model Theory and Its Applications|year=2007|publisher=Springer|isbn=978-3-540-68804-4|pages=151–152}} | |||
* {{citation|first=Leonid|last=Libkin|title=Elements of Finite Model Theory|year=2004|publisher=Springer|isbn=978-3-540-21202-7|pages=}} | |||
* {{cite book|author1=Heinz-Dieter Ebbinghaus|author2=Jörg Flum|title=Finite Model Theory|year=1999|publisher=Springer|isbn=978-3-540-28787-2|edition=2nd|pages=123–124, 151–161, 220–235}} | |||
* {{cite doi|10.1145/567752.567763}} | |||
* {{cite doi|10.1007/978-1-4614-1168-0_10}} | |||
* Nuutila, E., [http://www.cs.hut.fi/~enu/thesis.html Efficient Transitive Closure Computation in Large Digraphs.] Acta Polytechnica Scandinavica, Mathematics and Computing in Engineering Series No. 74, Helsinki 1995, 124 pages. Published by the Finnish Academy of Technology. ISBN 951-666-451-2, ISSN 1237-2404, UDC 681.3. | |||
* {{cite book|author1=Abraham Silberschatz|author2=Henry Korth|author3=S. Sudarshan|title=Database System Concepts|year=2010|edition=6th|publisher=McGraw-Hill|isbn=978-0-07-352332-3}} [http://codex.cs.yale.edu/avi/db-book/db6/appendices-dir/c.pdf Appendix C] (online only) | |||
* Foto N. Afrati, Vinayak Borkar, Michael Carey, Neoklis Polyzotis, Jeffrey D. Ullman, [http://www.edbt.org/Proceedings/2011-Uppsala/papers/edbt/a1-afrati.pdf Map-Reduce Extensions and Recursive Queries], EDBT 2011, March 22–24, 2011, Uppsala, Sweden, ISBN 978-1-4503-0528-0 | |||
== External links == | |||
* "[http://www.cs.sunysb.edu/~algorith/files/transitive-closure.shtml Transitive closure and reduction]", The Stony Brook Algorithm Repository, Steven Skiena . | |||
[[Category:Mathematical relations]] | |||
[[Category:Closure operators]] | |||
[[Category:Graph algorithms]] |
Latest revision as of 00:22, 9 December 2013
I'm Fernando (21) from Seltjarnarnes, Iceland.
I'm learning Norwegian literature at a local college and I'm just about to graduate.
I have a part time job in a the office.
my site; wellness [continue reading this..]
29 yr old Orthopaedic Surgeon Grippo from Saint-Paul, spends time with interests including model railways, top property developers in singapore developers in singapore and dolls. Finished a cruise ship experience that included passing by Runic Stones and Church.
In mathematics, the transitive closure of a binary relation R on a set X is the transitive relation R+ on set X such that R+ contains R and R+ is minimal (Lidl and Pilz 1998:337). If the binary relation itself is transitive, then the transitive closure is that same binary relation; otherwise, the transitive closure is a different relation. For example, if X is a set of airports and x R y means "there is a direct flight from airport x to airport y", then the transitive closure of R on X is the relation R+: "it is possible to fly from x to y in one or more flights."
Transitive relations and examples
A relation R on a set X is transitive if, for all x,y,z in X, whenever x R y and y R z then x R z. Examples of transitive relations include the equality relation on any set, the "less than or equal" relation on any linearly ordered set, and the relation "x was born before y" on the set of all people. Symbolically, this can be denoted as: if x < y and y < z then x < z.
One example of a non-transitive relation is "city x can be reached via a direct flight from city y" on the set of all cities. Simply because there is a direct flight from one city to a second city, and a direct flight from the second city to the third, does not imply there is a direct flight from the first city to the third. The transitive closure of this relation is a different relation, namely "there is a sequence of direct flights that begins at city x and ends at city y". Every relation can be extended in a similar way to a transitive relation.
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.
For finite sets, we can construct the transitive closure step by step, starting from R and adding transitive edges. This gives the intuition for a general construction. For any set X, we can prove that transitive closure is given by the following expression
where is the i-th power of R, defined inductively by
where denotes composition of relations.
To show that the above definition of R+ is the least transitive relation containing R, we show that it contains R, that it is transitive, and that it is the smallest set with both of those characteristics.
- : contains all of the , so in particular contains .
- is transitive: every element of is in one of the , so must be transitive by the following reasoning: if and , then from composition's associativity, (and thus in ) because of the definition of .
- is minimal: Let be any transitive relation containing , we want to show that . It is sufficient to show that for every , . Well, since contains , . And since is transitive, whenever , according to the construction of and what it means to be transitive. Therefore, by induction, contains every , and thus also .
Properties
The intersection of two transitive relations is transitive.
The union of two transitive relations need not be transitive. To preserve transitivity, one must take the transitive closure. This occurs, for example, when taking the union of two equivalence relations or two preorders. 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 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. 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.
The transitive closure of a directed acyclic graph (DAG) is the reachability relation of the DAG and a strict partial order.
In logic and computational complexity
The transitive closure of a binary relation cannot, in general, be expressed in first-order logic (FO). This means that one cannot write a formula using predicate symbols R and T that will be satisfied in any model if and only if T is the transitive closure of R. In finite model theory, first-order logic (FO) extended with a transitive closure operator is usually called transitive closure logic, and abbreviated FO(TC) or just TC. TC is a sub-type of fixpoint logics. The fact that FO(TC) is strictly more expressive than FO was discovered by Ronald Fagin in 1974; the result was then rediscovered by Alfred Aho and Jeffrey Ullman in 1979, who proposed to use fixpoint logic as a database query language (Libkin 2004:vii). With more recent concepts of finite model theory, proof that FO(TC) is strictly more expressive than FO follows immediately from the fact that FO(TC) is not Gaifman-local (Libkin 2004:49).
In computational complexity theory, the complexity class NL corresponds precisely to the set of logical sentences expressible in TC. 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.
In database query languages
47 year-old Podiatrist Hyslop from Alert Bay, has lots of hobbies and interests that include fencing, property developers in condo new launch singapore and handball. Just had a family trip to Monasteries of Haghpat and Sanahin. Since the 1980s Oracle Database has implemented a proprietary SQL extension CONNECT BY... START WITH that allows the computation of a transitive closure as part of a declarative query. The SQL 3 (1999) standard added a more general WITH RECURSIVE construct also allowing transitive closures to be computed inside the query processor; as of 2011 the latter is implemented in IBM DB2, Microsoft SQL Server, and PostgreSQL, although not in MySQL (Benedikt and Senellart 2011:189).
Datalog also implements transitive closure computations (Silberschatz et al. 2010:C.3.6).
Algorithms
Efficient algorithms for computing the transitive closure of a graph can be found in Nuutila (1995). The simplest technique is probably the Floyd–Warshall algorithm. The fastest worst-case methods, which are not practical, reduce the problem to matrix multiplication.
More recent research has explored efficient ways of computing transitive closure on distributed systems based on the MapReduce paradigm (Afrati et al. 2011).
See also
- Deductive closure
- Transitive reduction (a smallest relation having the transitive closure of R as its transitive closure)
- Symmetric closure
- Reflexive closure
- Ancestral relation
References
- Lidl, R. and Pilz, G., 1998, Applied abstract algebra, 2nd edition, Undergraduate Texts in Mathematics, Springer, ISBN 0-387-98290-6
- Keller, U., 2004, Some Remarks on the Definability of Transitive Closure in First-order Logic and Datalog (unpublished manuscript)
- 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.
My blog: http://www.primaboinca.com/view_profile.php?userid=5889534 - Many property agents need to declare for the PIC grant in Singapore. However, not all of them know find out how to do the correct process for getting this PIC scheme from the IRAS. There are a number of steps that you need to do before your software can be approved.
Naturally, you will have to pay a safety deposit and that is usually one month rent for annually of the settlement. That is the place your good religion deposit will likely be taken into account and will kind part or all of your security deposit. Anticipate to have a proportionate amount deducted out of your deposit if something is discovered to be damaged if you move out. It's best to you'll want to test the inventory drawn up by the owner, which can detail all objects in the property and their condition. If you happen to fail to notice any harm not already mentioned within the inventory before transferring in, you danger having to pay for it yourself.
In case you are in search of an actual estate or Singapore property agent on-line, you simply should belief your intuition. It's because you do not know which agent is nice and which agent will not be. Carry out research on several brokers by looking out the internet. As soon as if you end up positive that a selected agent is dependable and reliable, you can choose to utilize his partnerise in finding you a home in Singapore. Most of the time, a property agent is taken into account to be good if he or she locations the contact data on his website. This may mean that the agent does not mind you calling them and asking them any questions relating to new properties in singapore in Singapore. After chatting with them you too can see them in their office after taking an appointment.
Have handed an trade examination i.e Widespread Examination for House Brokers (CEHA) or Actual Property Agency (REA) examination, or equal; Exclusive brokers are extra keen to share listing information thus making certain the widest doable coverage inside the real estate community via Multiple Listings and Networking. Accepting a severe provide is simpler since your agent is totally conscious of all advertising activity related with your property. This reduces your having to check with a number of agents for some other offers. Price control is easily achieved. Paint work in good restore-discuss with your Property Marketing consultant if main works are still to be done. Softening in residential property prices proceed, led by 2.8 per cent decline within the index for Remainder of Central Region
Once you place down the one per cent choice price to carry down a non-public property, it's important to accept its situation as it is whenever you move in – faulty air-con, choked rest room and all. Get round this by asking your agent to incorporate a ultimate inspection clause within the possibility-to-buy letter. HDB flat patrons routinely take pleasure in this security net. "There's a ultimate inspection of the property two days before the completion of all HDB transactions. If the air-con is defective, you can request the seller to repair it," says Kelvin.
15.6.1 As the agent is an intermediary, generally, as soon as the principal and third party are introduced right into a contractual relationship, the agent drops out of the image, subject to any problems with remuneration or indemnification that he could have against the principal, and extra exceptionally, against the third occasion. Generally, agents are entitled to be indemnified for all liabilities reasonably incurred within the execution of the brokers´ authority.
To achieve the very best outcomes, you must be always updated on market situations, including past transaction information and reliable projections. You could review and examine comparable homes that are currently available in the market, especially these which have been sold or not bought up to now six months. You'll be able to see a pattern of such report by clicking here It's essential to defend yourself in opposition to unscrupulous patrons. They are often very skilled in using highly unethical and manipulative techniques to try and lure you into a lure. That you must also protect your self, your loved ones, and personal belongings as you'll be serving many strangers in your home. Sign a listing itemizing of all of the objects provided by the proprietor, together with their situation. HSR Prime Recruiter 2010 - 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.
My blog: http://www.primaboinca.com/view_profile.php?userid=5889534 - Template:Cite doi
- Template:Cite doi
- Nuutila, E., Efficient Transitive Closure Computation in Large Digraphs. Acta Polytechnica Scandinavica, Mathematics and Computing in Engineering Series No. 74, Helsinki 1995, 124 pages. Published by the Finnish Academy of Technology. ISBN 951-666-451-2, ISSN 1237-2404, UDC 681.3.
- 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.
My blog: http://www.primaboinca.com/view_profile.php?userid=5889534 Appendix C (online only) - Foto N. Afrati, Vinayak Borkar, Michael Carey, Neoklis Polyzotis, Jeffrey D. Ullman, Map-Reduce Extensions and Recursive Queries, EDBT 2011, March 22–24, 2011, Uppsala, Sweden, ISBN 978-1-4503-0528-0
External links
- "Transitive closure and reduction", The Stony Brook Algorithm Repository, Steven Skiena .