MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Increasing scattered subsequence

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80252] Re: Increasing scattered subsequence
  • From: "Dana DeLouis" <dana.del at gmail.com>
  • Date: Wed, 15 Aug 2007 04:30:17 -0400 (EDT)

> s = Ordering@RandomReal[{0, 1}, n^2 + 1];

As a side note, the v 6 Combinatorica abandoned the more complex Compiled
version of "RandomPermutation" in favor of using the newer Function
"RandomSample."
Has the same timing as previous, just simpler.

RandomPermutation[n_Integer] := RandomSample[Range[n]]

Dana



  • Prev by Date: Re: Graphing an inequality
  • Next by Date: Re: a problem about NDSolve and NIntegrate
  • Previous by thread: Re: Increasing scattered subsequence
  • Next by thread: Reproducible kernel crash