Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Partitioning of a Set
A partition of a set S is a collection of n disjoint subsets P1, P2, ... Pn that satisfies the following three conditions −
- No subset is empty − Pi ≠ ∅ for all 0 < i ≤ n
- Union covers the entire set − P1 ∪ P2 ∪ ... ∪ Pn = S
- Subsets are mutually disjoint − Pa ∩ Pb = ∅ for a ≠ b
Example
Let S = { a, b, c, d, e, f, g, h }. Some valid partitions are −
Partition 1: { a }, { b, c, d }, { e, f, g, h }
Partition 2: { a, b }, { c, d }, { e, f, g, h }
Partition 3: { a, b, c, d, e, f, g, h } (single subset)
Partition 4: { a }, { b }, { c }, { d }, { e }, { f }, { g }, { h } (all singletons)
Each partition satisfies all three conditions − no empty subsets, their union equals S, and no two subsets overlap.
Bell Numbers
Bell numbers give the count of the total number of ways to partition a set. They are denoted by Bn where n is the cardinality of the set.
Example
Let S = { 1, 2, 3 }, n = |S| = 3. All possible partitions are −
1. { 1, 2, 3 } (one group of all)
2. { 1 }, { 2, 3 } (1 separated)
3. { 1, 2 }, { 3 } (3 separated)
4. { 1, 3 }, { 2 } (2 separated)
5. { 1 }, { 2 }, { 3 } (all separated)
Hence B3 = 5.
The first few Bell numbers are −
| n | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|
| Bn | 1 | 1 | 2 | 5 | 15 | 52 | 203 |
Conclusion
A partition divides a set into non-empty, non-overlapping subsets whose union reconstructs the original set. The Bell number Bn counts the total number of distinct partitions possible for a set of n elements.
