By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,995 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,995 IT Pros & Developers. It's quick & easy.

combination algorithm/source code

P: n/a
Is there any combination parsing algorithm/source code available to handle
the combination problem of inputting a sequence:

YGEQLGMREMVRNCMQDL

and generating sequences:

YGEQLGMREMVRNCMQDL
YGE QLGMREMVRNCMQDL
YGE QLGMREMVR NCMQDL
YGE QLGMREMVR NCM QDL
YGEQLGMREMVR NCMQDL
YGEQLGMREMVR NCM QDL
YGEQLGMREMVRNCM QDL
Nov 14 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Thu, 09 Dec 2004 14:52:40 +0800, Ross wrote:
Is there any combination parsing algorithm/source code available to handle
the combination problem of inputting a sequence:

YGEQLGMREMVRNCMQDL

and generating sequences:

YGEQLGMREMVRNCMQDL
YGE QLGMREMVRNCMQDL
YGE QLGMREMVR NCMQDL
YGE QLGMREMVR NCM QDL
YGEQLGMREMVR NCMQDL
YGEQLGMREMVR NCM QDL
YGEQLGMREMVRNCM QDL


Try an algorithms related newsgroup such as comp.programming.

You should also explain the rules that such sequences adhere to. You
appear to be adding whitespace between groups of 3 letters in different
combinations but is that all there is to it?

Lawrence

Nov 14 '05 #2

P: n/a
"Ross" <kk******@cuhk.edu.hk> wrote:
Is there any combination parsing algorithm/source code available to handle
the combination problem of inputting a sequence:

YGEQLGMREMVRNCMQDL

and generating sequences:

YGEQLGMREMVRNCMQDL
YGE QLGMREMVRNCMQDL
YGE QLGMREMVR NCMQDL
YGE QLGMREMVR NCM QDL
YGEQLGMREMVR NCMQDL
YGEQLGMREMVR NCM QDL
YGEQLGMREMVRNCM QDL


Since you don't give any reasons why the sequence should be split in
exactly those spots, in that order, we cannot possibly help you. If you
_did_ give a thorough reason why, we wouldn't need to help you, because
that would be the beginning of your algorithm right there.
As for source code, DYODH.

Richard
Nov 14 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.