Tuple

Tuple

N-uplet

En mathématiques, si n est un entier naturel non nul alors un n-uplet est une collection ordonnée de n objets. Les éléments sont aussi appelés composantes.

Si nous notons a1 le premier élément, a2 le deuxième élément, ..., an le nème élément, le n-uplet s'écrit : (a_1, a_2, \cdots, a_n).

L'égalité des n-uplets se définit par

(a_1,a_2,\cdots,a_n)=(b_1,b_2,\cdots,b_n) \Longleftrightarrow a_1=b_1, a_2=b_2, \cdots, a_n=b_n.

Un 2-uplet est un couple, un 3-uplet est un triplet, un 4-uplet est un quadruplet, un 5-uplet est un quintuplet, ...

Si E_1, \cdots, E_n sont des ensembles alors l'ensemble des n-uplets (a_1, a_2, \cdots, a_n), où a_1 \in E_1, \cdots, a_n \in E_n, est le produit cartésien des ensembles E_1, \cdots, E_n.

Sommaire

Exemples

Formalisation

Formellement, un n-uplet peut être défini en termes d'ensemble par

(a_1, a_2, \cdots, a_n) = \{a_1,\{a_1,\{a_2,\{a_2,\{a_3,\{a_3,\cdots,\{a_{n-1},\{a_{n-1},a_n\}\}\cdots\}\}\}\}

ou en utilisant une définition récursive :

  1. un 1-uplet (a1) est simplement a1;
  2. si x est un n-uplet, alors (x,an + 1) (i.e. {x,{x,an + 1}}) est un (n+1)-uplet.

Il est assez facile de démontrer que ces définitions sont équivalentes, cependant les ensembles obtenus sont très différents.

Programmation

Beaucoup de langages de programmation supportent les n-uplets comme type de donnée, formés aussi bien d'objets tous de même type ou d'objets de types différents.

Le langage de programmation LISP a utilisé dès ses débuts la notion abstraite de paire pour créer toutes ses structures de n-uplets et de listes, de manière similaire à la définition récursive précédente.

Voir aussi

  • Portail des mathématiques Portail des mathématiques
Ce document provient de « N-uplet ».

Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article Tuple de Wikipédia en français (auteurs)

Игры ⚽ Поможем написать реферат

Regardez d'autres dictionnaires:

  • tuple — /tūˈpl/ (computing) noun A set of data that relates to, and may not be separated from, an object in a database ORIGIN: Sfx tuple denoting a set, as in quintuple …   Useful english dictionary

  • -tuple — 1863, combining element abstracted from QUINTUPLE (Cf. quintuple), etc …   Etymology dictionary

  • Tuple — This article is about the mathematical concept. For the musical term, see Tuplet. For the achievement in Association Football, see The Sextuple. In mathematics and computer science, a tuple is an ordered list of elements. In set theory, an… …   Wikipedia

  • -tuple — noun combining form Etymology: quintuple, sextuple set of (so many) elements usually used of sets with ordered elements < the ordered 2 tuple (a, b) > …   New Collegiate Dictionary

  • tuple — noun /tʌpəl,tuːpəl/ a) A finite sequence of terms; equivalently, an ordered set. b) A single row in a relational database. Syn: n tuple, ordered pair …   Wiktionary

  • -tuple — [ tju:p(ə)l] combining form chiefly Mathematics forming nouns and adjectives with a preceding algebraic symbol with the sense ‘(an entity or set) consisting of as many parts or elements as indicated by the symbol, such as n tuple. Origin from the …   English new terms dictionary

  • tuple — [ tju:p(ə)l] noun Computing a data structure consisting of multiple parts. ↘(in a relational database) an ordered set of data constituting a record. Origin from tuple …   English new terms dictionary

  • -tuple —    a suffix added to a number by mathematicians to create units of quantity; a 7 tuple, for example, contains 7 objects, listed in a specified order. The suffix has the same Latin root as ply, meaning fold …   Dictionary of units of measurement

  • -tuple — ˌtəpəl, ˌtüp noun combining form Etymology: quintuple, sextuple : set of (so many) elements often used of sets with ordered elements the ordered 2 tuple (a, b) …   Useful english dictionary

  • Tuple-versioning — (also called point in time) is a mechanism used in a relational database management system to store past states of a relation. Normally, only the current state is captured. Using tuple versioning techniques, typically two values for time are… …   Wikipedia

  • Tuple relational calculus — The tuple calculus is a calculus that was introduced by Edgar F. Codd as part of the relational model in order to give a declarative database query language for this data model. It formed the inspiration for the database query languages QUEL and… …   Wikipedia

Share the article and excerpts

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