Студопедия
Главная страница | Контакты | Случайная страница

АвтомобилиАстрономияБиологияГеографияДом и садДругие языкиДругоеИнформатика
ИсторияКультураЛитератураЛогикаМатематикаМедицинаМеталлургияМеханика
ОбразованиеОхрана трудаПедагогикаПолитикаПравоПсихологияРелигияРиторика
СоциологияСпортСтроительствоТехнологияТуризмФизикаФилософияФинансы
ХимияЧерчениеЭкологияЭкономикаЭлектроника

N-ary relations

Читайте также:
  1. A content of legal relations.
  2. BACHELOR OF ARTS IN INTERNATIONAL RELATIONS AND EUROPEAN STUDIES
  3. Combining relations
  4. Current trends in the international system relations
  5. HUMORAL INTERRELATIONS IN ORGANISM
  6. Notion of coherence. Types of coherent ties (isotopic relations; referential identity proper; partial identity; semantic affinity).
  7. P.37 BUSINESS RELATIONSHIP
  8. Properties of relations
  9. Relations and their properties

Let A 1, A 2, …, An be sets. An n-ary relation on these sets is a subset of . The sets A 1, A 2, …, An are called the domains of the relation, and n is called its degree.

Example. Let R be the relation consisting of triples (a, b, c), where a, b and c are integers with a < b < c. Then , but . The degree of this relation is 3. Its domains are all equal to the set of integers.

Example. Let R be the relation consisting of 5-tuples (A, N, S, D, T) representing airplane flights, where A is the airline, N is the flight number, S is the starting point, D is the destination, and T is the departure time. For instance, if Nadir Express Airplanes has flight 963 from Newark to Bangor at 15:00, then (Nadir, 963, Newark, Bangor, 15:00) belongs to R. The degree of this relation is 5, and its domains are the set of all airlines, the set of flight numbers, the set of cities, the set of cities (again), and the set of times.




Дата добавления: 2014-12-23; просмотров: 110 | Поможем написать вашу работу | Нарушение авторских прав




lektsii.net - Лекции.Нет - 2014-2025 год. (0.006 сек.) Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав