Cartesian product of sets without repeated elements

被引:0
|
作者
Torres-Jimenez, Jose [1 ]
Lara-Alvarez, Carlos [3 ]
Cobos-Lozada, Carlos [2 ]
Blanco-Rocha, Roberto [1 ]
Cardenas-Castillo, Alfredo [1 ]
机构
[1] CINVESTAV Tamaulipas, Km 5-5 Carretera Cd Victoria Soto Marina, Cd Victoria Tamps 87130, Mexico
[2] Univ Cauca, Informat Technol Res Grp, Popayan, Colombia
[3] CIMAT Zacatecas, Calle Lasec & Andador Galileo Galilei Quantum, Zacatecas 98160, Zac, Mexico
关键词
Cartesian product of sets; Integer partitions; Set partitions; Bell numbers; Stirling numbers of the first kind; Stirling numbers of the second kind;
D O I
10.1016/j.ins.2021.05.010
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In many applications, like database management systems, is very useful to have an expression to compute the cardinality of cartesian product of k sets without repeated elements; we designate this problem as T(k). The value of IT(k)I is upper-bounded by the multiplication of cardinalities of the sets. As long as we have searched, it has not been reported a general expression to compute T(k) using cardinalities of the intersections of sets, this is the main topic of this paper. Given three sets with indices {0,1, 2}, Ci is the cardinality of one set, C-i,C-j (i < j) and Ci,j,l (i < j < l) are respectively the cardinalities of the intersections of 2 and 3 sets, then the searched formulas for T(k) are: T(1) = C-0; T(2) = C0C1 -C-0,C-1; T(3) = C0C1C2 - (C0,1C2 +C0,2C1+C1,2C0) + 2C(0,1,2). In this paper, we prove formulas for computing T(k) and its specialization when a set is contained in the next sets. For this purpose, we will use concepts like partitions of the integer k in v parts, Bell numbers, Stirling numbers of the first kind and Stirling numbers of the second kind. Additionally, we present a complexity analysis for the computation of T(k). (C) 2021 Elsevier Inc. All rights reserved.
引用
收藏
页码:517 / 525
页数:9
相关论文
共 50 条