Shuffling string

Discussion in 'C Programming' started by Pasacco, Oct 19, 2007.

  1. Pasacco

    Pasacco Guest

    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.
     
    Pasacco, Oct 19, 2007
    #1
    1. Advertising

  2. 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.
     
    Peter Pichler, Oct 19, 2007
    #2
    1. Advertising

  3. Pasacco

    user923005 Guest

    On Oct 19, 3:41 pm, Pasacco <> 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.
     
    user923005, Oct 20, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. glowfire

    random shuffling

    glowfire, Feb 19, 2005, in forum: C++
    Replies:
    16
    Views:
    806
    Martijn Mulder
    Feb 23, 2005
  2. SilverWolf

    sorting and shuffling array

    SilverWolf, Oct 13, 2003, in forum: C Programming
    Replies:
    3
    Views:
    376
    Richard Heathfield
    Oct 14, 2003
  3. greenflame

    shuffling elements of a list

    greenflame, May 31, 2006, in forum: Python
    Replies:
    22
    Views:
    647
    Peter Otten
    Jun 2, 2006
  4. justin

    Shuffling rows in a GridView

    justin, Sep 1, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    8,998
    Alvin Bruney [MVP]
    Sep 15, 2006
  5. Replies:
    8
    Views:
    356
    Howard
    Mar 20, 2006
Loading...

Share This Page