Talk:Combinations with repetitions: Difference between revisions

(→‎Task definition: example not accurate?)
Line 24:
 
:The written example in the task description seems to describe sampling with replacement rather than sampling with repetitions. Which does the task attempt to describe? Given the set n= ('a,a,b,c,d'), k=3; (a,a,a) would be a valid answer if sampling with replacement, however would not be valid if sampling with repetition - which from the wikipedia page I understand to mean that some items may occur more than once in the population to be sampled.--[[User:Tikkanz|Tikkanz]] 21:52, 18 November 2010 (UTC)
:: The original implementation (now deleted for copyright reasons even though the example results were not copyrighted) had:
::: Combination of a repetitions list. list=(1, 2, 2, 3) k=2
:::: [2, 2]
:::: [1, 3]
:::: [2, 3]
:::: [1, 2]
::If it were "sampling with replacement" I imagine that that result would have also included [1,1] and [3,3]. Since it did not, I do not think we can have (a,a,a) as a result for set n= ('a,a,b,c,d'), k=3. But perhaps the results from the deleted example should be reposted as a part of the task description? --[[User:Rdm|Rdm]] 21:58, 18 November 2010 (UTC)
6,951

edits