MACSCRPT Archives

April 2008

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 14 Apr 2008 09:34:11 -0400
Content-Disposition:
inline
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
MIME-Version:
1.0
Content-Transfer-Encoding:
7bit
In-Reply-To:
Content-Type:
text/plain; charset=UTF-8
From:
"Mark J. Reed" <[log in to unmask]>
Parts/Attachments:
text/plain (20 lines)
On Mon, Apr 14, 2008 at 8:35 AM, Mark J. Reed <[log in to unmask]> wrote:
> Easy to see with a small concrete example: the list {1,2,3} has 3!=6
>  possible permutations, but your routine makes one of 3^3=21 different

... well, 27, actually, but you get the idea. :)

Here are the actual numbers:

Sequence: Probability
{1, 3, 2}: 5/27
{2, 1, 3}: 5/27
{2, 3, 1}: 5/27
{1, 2, 3}: 4/27
{3, 1, 2}: 4/27
{3, 2, 1}: 4/27


-- 
Mark J. Reed <[log in to unmask]>

ATOM RSS1 RSS2