?
Solved

Generate All Possible Answers From Groups of Values

Posted on 2004-09-13
1
Medium Priority
?
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 750 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

718 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