Permutation & Combination & Subset Concept & Pattern
Original1/3/26About 1 min
Definition
- A permutation is a rearrangement of all the elements of an array.
A subset of an array is a selection of elements (possibly none) of the array.
A combination is a selection of items from a set that has distinct members, such that the order of selection does not matter.
Three Variations
Distinct values, only selected once
Duplicate values, only selected once
Distinct values, can be selected more than once
Decision Tree
Permutation decision tree
Subset Tree
Combination Tree
