元组
元组 | |
---|---|
术语名称 | 元组 |
英语名称 | tuple |
元组(tuple)表示一个有序的元素序列。
定义
由一组按照特定顺序排列的元素构成的数学对象叫做元组(tuple)。
对象的个数叫做元组的长度(length),长度为 [math]\displaystyle{ n }[/math] 的元组被称为[math]\displaystyle{ n }[/math] 元组([math]\displaystyle{ n }[/math]-tuple)。
有序对
有序对 | |
---|---|
术语名称 | 有序对 |
英语名称 | ordered pair |
别名 | 有序偶, 序偶 |
特别地,二元组也被称为有序对(ordered pair)。
注:也存在一些定义体系中,先定义有序对,然后通过有序对的递归来定义元组。
性质
- 有序性:元组中的元素按特定顺序排列,存在先后关系。
- 可重复:元组中的元素可以重复。
表示
由 [math]\displaystyle{ a_1,a_2,\dots,a_n }[/math] 构成的元组记为 [math]\displaystyle{ (a_1,a_2,\dots,a_n) }[/math]。
有序对一般用尖括号,如由 [math]\displaystyle{ a }[/math] 和 [math]\displaystyle{ b }[/math] 构成的有序对记为 [math]\displaystyle{ \langle a,b \rangle }[/math] 。
集合定义
基于集合定义元组,并认为元组是与集合不同的类型,如 [math]\displaystyle{ (a_1,a_2,\dots,a_n) }[/math] 可定义为 [math]\displaystyle{ \{\{a_1\}, \{a_1,a_2\}, \dots, \{a_1,a_2,\dots,a_n\} \} }[/math] 。
特别地,如果元组中的几个元素来自同一集合,会用“元素名称+组/对”的方式来称呼。如数集上称呼“数对”“数组”、点集上称呼“点对”“点组”等。