Re: Expected average cycle length...
From: Johannes Borgström (johannes.borgstroem_at_epfl.ch)
Date: 09/21/04
- Previous message: Bryan Olson: "Re: Expected average cycle length..."
- In reply to: Bryan Olson: "Re: Expected average cycle length..."
- Next in thread: Bryan Olson: "Re: Expected average cycle length..."
- Reply: Bryan Olson: "Re: Expected average cycle length..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 21 Sep 2004 10:23:58 +0200
This night, Bryan Olson wrote:
> Johannes Borgström wrote:
> > This afternoon, Ariel Shaqed wrote:
> > > Bryan Olson writes:
> > > > Starting from a random point in a
> > > > random permutation of the M-bit vectors, all of the 2^M possible
> > > > cycle lengths are equally likely. Thus the expected cycle length
> > > > is (1 + 2^M) / 2 = 2^(M-1) + 1/2.
>
> Note that I phrased it to keep the notation of the preceding
> post. More simply and generally: starting from a random point
> in a random permutation of N elements, all N cycle lengths are
> equally likely
To me, this is still confusing. Do you mean the average
"over all cycles
of its length"
or
"over all permutations and elements
of the length of the cycle the element is in"?
or
"over all permutations
of the average cycle length of that permutation"
Or something else?
Using the first definition, for the case of S4, you get 1.92.
With the second, you get 2.333...
With the third, it is 2.291666...
(barring calculation errors)
How did you compute the following?
> Make that 2.5.
To me, the second definition seems more reasonable, since we want to know
how long we expect to wait until we return to the current state.
(And yes, this does not take into account the actual algorithm.)
Best regards,
/Johannes
-- Johannes Borgström Cell: +41 765 77 03 21 Research Assistant at EPFL.I&C.LAMP.2 Work: +41 21 693 64 83 GCS/M d- s+:+ a- C++(++++) UBLS++ P+ L+ E+>++ W++ N++ o? K? w-(---) O- V? M-(+) PS++ PE- Y++ PGP- t-- 5? X- R+ tv-- b+++@ DI+ D+ G e+++$>++++ h+ y?
- Previous message: Bryan Olson: "Re: Expected average cycle length..."
- In reply to: Bryan Olson: "Re: Expected average cycle length..."
- Next in thread: Bryan Olson: "Re: Expected average cycle length..."
- Reply: Bryan Olson: "Re: Expected average cycle length..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|