Solved

Generate All Possible Answers From Groups of Values

Posted on 2004-09-13
1
208 Views
Last Modified: 2010-04-23
I have multiple groups of values that I need to generate all the possible combinations from. I have two parts to my question:

1. The best way to store these values. (Hashtable, DataTable, etc.)
2. Fastest way to generate all the possible combinations.

I have multiple groups with different values. (Randomly generated)

Example:

G1   G2   G3
============
A     R     X
B     S     Y
C     T     Z

The final answer is created by 1 value from each group in order. G1-G2-G3
Example Answers:

A-S-X
or
B-R-Z

I need to generate all the possible answers.

Thanks for the help!
0
Comment
Question by:icosupport
1 Comment
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 250 total points
ID: 12047762
Your request is almost the same as this one:
http://www.experts-exchange.com/Programming/Programming_Languages/Q_21116627.html

Several different approaches there that you can use.

Idle_Mind
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question