application to create possible strings. help!
Hi all -
I am attempting to write a program that will take numbers from a user (that the user enters in text boxes) and will transform them into a string. but more than that, I want the program to show all the possible strings that the numbers could fall into. plus, i include an area that would allow the user to input pairs of numbers (numbers that would pair the single numbers that were already enterd) and then create strings based on that. lastly, I offer an option for users to input the first or last number of the the future string, and then output all the possibilities. can anyone help me?
-Thanks!
[627 byte] By [
rewclaus] at [2007-11-11 8:36:44]

# 2 Re: application to create possible strings. help!
I do realize how big the possibilietes could get. if all the digits were different, then there would by 3628800 possibilities. That goes to about a 40MB text file (HUGE!!!!) I understand this! That is why we have steps 2, 3, and 4.
Step 2 - Pairing digits:
The user would be able to enter up to 5 2 digit comibnations that would tell the program that the 2 combined numbers must be paired with one another in the final answer.
For example:
I enter the digits 0, 0, 0, 3, 0, 0, 0, 7, 0, 0
and I enter a pairing code of 37
the program should make sure that anywhere 3 shows up, 7 must follow it.
0000000037
0000000370
0000003700
0000037000
0000370000
0003700000
0037000000
0370000000
3700000000
Like that.
Step 3 - Junctioning pairs:
The user would be able to enter up to 4 2 digit comibnations that would tell the program that the 2 combined numbers must be the beginning and end of two different pairs of numbers from step 2.
For example:
I enter the digits 0, 5, 0, 3, 0, 2, 0, 7, 0, 0
and I enter pairing codes of 37 and 25, and a juntion code of 72.
The program should pair 37 and 25 together by 72.
0000003725
0000037250
0000372500
0003725000
0037250000
0372500000
3725000000
Step 4: First or Last Difit:
The user would also have an option to input the first or last digit of the final answer.
For Example:
I enter the digits 0, 5, 0, 3, 0, 2, 0, 7, 0, 8
and I enter pairing codes of 37 and 25, a juntion code of 72, a First Digit code of 8 and a Last Digit code of 0.
The program should pair 37 and 25 together by 72, and place 8 at the beginning and 0 at the end.
8000037250
8000372500
8003725000
8037250000
8372500000
I hope this is more understandable, and I hope anyone can help me. Thanks!