Ternary relation
Ternary relation is a concept in mathematics and computer science that represents a specific type of relationship among three elements or entities. This concept is an extension of the more commonly known binary relation, which involves only two elements. In a ternary relation, an ordered triple \((a, b, c)\) is considered to be related if the relation contains this triple. Ternary relations are used in various fields such as database theory, knowledge representation, and semantics to model complex relationships that cannot be adequately described by binary relations.
Definition[edit]
A ternary relation \(R\) on sets \(A\), \(B\), and \(C\) is a subset of the Cartesian product \(A \times B \times C\). That is, \(R \subseteq A \times B \times C\). An element of \(R\) is an ordered triple \((a, b, c)\) where \(a \in A\), \(b \in B\), and \(c \in C\). The sets \(A\), \(B\), and \(C\) can be the same or different.
Examples[edit]
1. In relational databases, a ternary relation might be used to model a relationship between customers, products, and stores. For example, a relation "Purchase" could consist of triples \((customer, product, store)\) indicating that a customer purchased a product from a specific store.
2. In knowledge representation, ternary relations are used to express facts that involve three entities. For example, a relation "GaveGift" could be represented as \((person1, gift, person2)\) indicating that person1 gave a gift to person2.
3. In linguistics, ternary relations can be used to analyze sentence structures that involve three components. For example, the sentence "Alice gives Bob a book" involves a ternary relation among Alice, Bob, and the book.
Properties[edit]
Ternary relations, like binary relations, can have properties such as:
- *Transitivity*: If a relation \(R\) is transitive, then for any \(a, b, c, d, e, f\), if \((a, b, c) \in R\) and \((c, d, e) \in R\), then \((a, d, f) \in R\). However, transitivity in ternary relations is less straightforward than in binary relations and depends on how the relation is defined.
- *Symmetry*: A ternary relation \(R\) is symmetric if for any \(a, b, c\), \((a, b, c) \in R\) implies that \((c, b, a) \in R\), among other permutations of \(a\), \(b\), and \(c\). Again, the concept of symmetry is more complex in ternary relations than in binary relations.
- *Reflexivity*: A ternary relation \(R\) is reflexive if for all \(a \in A\), \(b \in B\), and \(c \in C\), \((a, b, c) \in R\). The applicability and definition of reflexivity in ternary relations can vary depending on the context.
Applications[edit]
Ternary relations are utilized in various domains to model complex interactions and relationships:
- In database theory, ternary relations are essential for representing many-to-many relationships between entities.
- In semantic web technologies, ternary relations are used to represent complex RDF (Resource Description Framework) statements.
- In mathematical logic and set theory, ternary relations are used to study the properties of sets and their elements in more depth.
See Also[edit]

This article is a mathematics-related stub. You can help WikiMD by expanding it!
Ad. Transform your life with W8MD's Budget GLP-1 injections from $75


W8MD offers a medical weight loss program to lose weight in Philadelphia. Our physician-supervised medical weight loss provides:
- Weight loss injections in NYC (generic and brand names):
- Zepbound / Mounjaro, Wegovy / Ozempic, Saxenda
- Most insurances accepted or discounted self-pay rates. We will obtain insurance prior authorizations if needed.
- Generic GLP1 weight loss injections from $75 for the starting dose.
- Also offer prescription weight loss medications including Phentermine, Qsymia, Diethylpropion, Contrave etc.
NYC weight loss doctor appointmentsNYC weight loss doctor appointments
Start your NYC weight loss journey today at our NYC medical weight loss and Philadelphia medical weight loss clinics.
- Call 718-946-5500 to lose weight in NYC or for medical weight loss in Philadelphia 215-676-2334.
- Tags:NYC medical weight loss, Philadelphia lose weight Zepbound NYC, Budget GLP1 weight loss injections, Wegovy Philadelphia, Wegovy NYC, Philadelphia medical weight loss, Brookly weight loss and Wegovy NYC
|
WikiMD's Wellness Encyclopedia |
| Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian