Implementation of the proper subset operation, which checks if
set A is a proper subset of set B. A proper subset means
a set A is a subset of B, but is not equal to B.
Formal definition: A ⊂ B
This method runs in bilinear time, or O(n * m), where n = |A|
(size of set A), and m = |B| (set of size B)
Implementation of the proper subset operation, which checks if set A is a proper subset of set B. A proper subset means a set A is a subset of B, but is not equal to B.
A ⊂ B
O(n * m)
, wheren = |A|
(size of set A), andm = |B|
(set of size B)