Description Usage Arguments Value Examples
A partition is perfect if the difference between the sum of integers of S1 and S2 is equal to 0 (resp. 1) for a even (resp. odd) set.
1 | PartIsPerfect(sizes, part)
|
sizes |
a numeric vector which represents the integers (>0) in the set S. |
part |
a logical vector which represents the indicator function of S1 in the partition S=S1+S2. |
true
if the partition is perfect.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.