Solved

Generate All Possible Answers From Groups of Values

Posted on 2004-09-13
1
211 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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