Iterating shuffled [0..n) without arrays

后端 未结 6 760
Happy的楠姐
Happy的楠姐 2021-01-02 15:34

I know of a couple of routines that work as follows:

Xn+1 = Routine(Xn, max)

For example, something l

6条回答
  •  渐次进展
    2021-01-02 16:18

    Is it possible to index a set of permutations without previously computing and storing the whole thing in memory? I tried something like this before and didn't find a solution - I think it is impossible (in the mathematical sense).

    Disclaimer: I may have misunderstood your question...

提交回复
热议问题