Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Shuffling string

Reply
Thread Tools

Shuffling string

 
 
Pasacco
Guest
Posts: n/a
 
      10-19-2007
Dear

I need to know a "name of suffling (algorithm)"

There are many ways to shuffle.

For example,
Given a string "aaaabbbcccd"

We can shuffle into
(1) "abcabcabcad"
or
(2) "abcabcadabc"

I want to know "how can we name different methods"

If there are some examples, let us know.

 
Reply With Quote
 
 
 
 
Peter Pichler
Guest
Posts: n/a
 
      10-19-2007
Pasacco wrote:

> I need to know a "name of suffling (algorithm)"


Then ask in a newsgroup about algorithms.
Even better, ask Google.

This is not a question about the C programming language.
 
Reply With Quote
 
 
 
 
user923005
Guest
Posts: n/a
 
      10-20-2007
On Oct 19, 3:41 pm, Pasacco <pasa...@gmail.com> wrote:
> Dear
>
> I need to know a "name of suffling (algorithm)"
>
> There are many ways to shuffle.
>
> For example,
> Given a string "aaaabbbcccd"
>
> We can shuffle into
> (1) "abcabcabcad"
> or
> (2) "abcabcadabc"
>
> I want to know "how can we name different methods"
>
> If there are some examples, let us know.


The name you seek is called 'permutation'.
Every different ordering of the string is a different permutation.

follow-ups set.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shuffling rows in a GridView justin ASP .Net 3 09-14-2006 11:27 PM
shuffling elements of a list greenflame Python 22 06-02-2006 11:50 AM
How to simulate REAL card shuffling? ericvw@gmail.com C++ 8 03-20-2006 05:08 PM
random shuffling glowfire C++ 16 02-23-2005 01:26 PM
sorting and shuffling array SilverWolf C Programming 3 10-14-2003 05:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57