Re: How to generate unordered selections?



In article <516a2005-a9a9-4fb7-908b-f9c1ed5c891d@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Jonas Bjering <depictivelogic@xxxxxxxxx> wrote:
I am looking for an algorithm to generate a specific unordered
selection based on a number.

In essence I am looking for an (pseudocode) implementation to the
following signature:

function selection(s, m, k) : set

where s is a set of length n and m is the number of elements selected
from this set and k is a number in [0, n! / (m! (n-m)!) ) and where
the result is a subset of s with m elements that is unique for every
value of k.

There was a thread a while ago about this. Take a look at
<http://groups.google.com/groups?threadm=20080125.143126@xxxxxxxx>

Rob Johnson <rob@xxxxxxxxxxxxxx>
take out the trash before replying
to view any ASCII art, display article in a monospaced font
.



Relevant Pages

  • How to generate unordered selections?
    ... I am looking for an algorithm to generate a specific unordered ... selection based on a number. ... In essence I am looking for an (pseudocode) implementation to the ...
    (sci.math)
  • Re: How to generate unordered selections?
    ... selection based on a number. ... In essence I am looking for an (pseudocode) implementation to the ... algorithm, Knuth TAoCP volume 2 algorithm 3.4.2 P. ...
    (sci.math)
  • Re: List (please add to!)
    ... [How Crawl does auto selection of projectiles] ... weapon, a bow or darts, optional arrows, etc. ... It does require a mouse interface, but then good keyboard interface concepts hardly translate well to a mouse interface, so why should I expect it to work the other way around? ... A good signature is a concise and original summary of personality. ...
    (rec.games.roguelike.development)
  • Re: Leave on the server & signiture problem
    ... Hi Michael, yes this way does work ok, and it is not too bad.. ... :> the signature when change the FROM selection. ... :> selecting the correct From address, use the Insert, Signature menu item. ... :>> Mark ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: OE6 and multiple signatures
    ... "Michael Santovec" wrote: ... selection. ... want the signature to appear. ... > the default account that shows up first in the "from" line. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)