Jesse Silverman wrote:Back from University Maths, I always distinguished between Combination and Permutation thusly:
Permutation includes an order A, B, C != B, C, A
Combination doesn't include an order: A, B, C == C, B, A
Jesse Silverman wrote:Hi Carey.
Back from University Maths, I always distinguished between Combination and Permutation thusly:
Permutation includes an order A, B, C != B, C, A
Combination doesn't include an order: A, B, C == C, B, A
Am I reading too much into the word permutation or missing a key feature of your solution?
I'd be interested in seeing that also. Thanks.Stephan van Hulst wrote:Jesse, if you want to see an interesting use of iterators during a recursion, I'll show you later how I generate a stream of permutations.
Jesse Silverman wrote:Stephan:
Aye, I used an iterator to get 'any' element from the set, not necessarily the first.
Yeah, the iterator keeps getting you "elements you haven't used yet" which is slightly different from "any".
a wee bit from the empire
the value of filler advertising in 2020
https://coderanch.com/t/730886/filleradvertising
