http://qs321.pair.com?node_id=1230528


in reply to Re: Next permutation
in thread Next permutation

That is called a cross product :-)

It doesn't give the permutation ( 3 * 2 * 1 = 3! ) (The permutation of 3 objects gives 6 tuples. The cross product gives 3 * 3 * 3 = 27 tuples).

Replies are listed 'Best First'.
Re^3: Next permutation
by Marshall (Canon) on Feb 25, 2019 at 21:46 UTC
    Ok. well anyway the OP divulged some more info about the his requirements at Re^2: Next permutation and I wrote some code in response to that. The OP wants some enhancements and I've asked the OP to give it a stab on his own. Let's see how that goes......
      I've asked the OP to give it a stab on his own. Let's see how that goes......

      To my knowledge, he's never posted any code; neither as a part of one of his (usually obscure and unexplained) requirements, nor as an answer to anyone else.

      I've avoided giving him the time of day for a long time now; as he would only then modify the requirements to the ToD on the south pole of Jupiter. In Tagalog.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
      In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit
        Thanks on feedback, BrowserUK. I am mostly content with approach and algorithm rather than actual code.