[DUG] Make all possible unique combinations
Cameron Hart
Cameron.Hart at flowsoftware.co.nz
Thu Dec 10 12:20:02 NZDT 2009
Hi Sandra
Perhaps if you share your existing algorithm we can help you faster.
Cameron Hart | Development Manager | Flow Software Limited
P: +64 9 476 3579 | M: +64 21 222 3569 | E:
cameron.hart at flowsoftware.co.nz
PO Box 305-237, Triton Plaza, Auckland 0757, New Zealand |
www.flowsoftware.co.nz
This message is intended for the addressee named above. It may contain
privileged or confidential information. If you are not the intended
recipient of this message you must not use, copy, distribute or disclose
it to anyone.
Please consider the environment before printing this email
-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Sandeep Chandra
Sent: Thursday, 10 December 2009 11:47 a.m.
To: delphi at delphi.org.nz
Subject: [DUG] Make all possible unique combinations
I am looking for ideas to generate all possible combinations for the
following arrays. I don't want to use for.. loops as number of arrays
can change.
const
STGR : array[1..2] of string = ('A1', 'A2');
STG1 : array[1..4] of string = ('B1', 'B2', 'B3', 'B4');
STG2 : array[1..2] of string = ('C1', 'C2');
.
.
STGN : array[1..2] of string = ('N1', 'N2');
I have an algorithm to this but was wondering if there are other
simpler/better/quicker ways to do this.
Regards
Sandeep
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe
More information about the Delphi
mailing list