Input-based permutation

This is a discussion on Input-based permutation within the C Programming forums, part of the General Programming Boards category; Let's say I have a string "abcdef" If I input n = 3, how to create a permutation of 3 ...

  1. #1
    TmX
    TmX is offline
    Registered User TmX's Avatar
    Join Date
    Sep 2006
    Posts
    12

    Input-based permutation

    Let's say I have a string "abcdef"
    If I input n = 3, how to create a permutation of 3 like this :
    abc
    abd
    abe
    ...
    ...
    edf ?

  2. #2
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,762
    1. Write a permutation algorithm.
    2. Split string into pieces of n length.
    3. ???
    4. Profit!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 04:42 PM
  2. Structure and Linked List User Input Question
    By kevndale79 in forum C Programming
    Replies: 16
    Last Post: 10-05-2006, 12:09 PM
  3. Binary based input
    By DonW in forum C Programming
    Replies: 2
    Last Post: 09-21-2004, 01:43 AM
  4. Custom Made Safe Input Function
    By Beast() in forum C Programming
    Replies: 6
    Last Post: 08-21-2004, 11:19 PM
  5. need help with some input
    By blindleaf in forum C Programming
    Replies: 2
    Last Post: 03-16-2003, 01:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21