Solved

Generate All Possible Answers From Groups of Values

Posted on 2004-09-13
1
202 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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now