Converting strings of letters into a list of letters?

June 21 2007 by choirgirl1987 40
false
Maple

0


How would I generate all possible strings of letters from a given string of letters? (For example, if a given string of letters is "AA", then all possible strings of letters are "A" and "AA". If a given string of letters is "ABA", then all possible strings of letters in lexicographic order are "A", "AA", "AAB", "AB", "ABA", "B", "BA", "BAA".) I know that I first need to convert the string of letters to a list of letters, but I can't figure out the correct coding. Thanks for any advice!
 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account