473,396 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

combination algorithm/source code

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
2 8408
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bo Xu | last post by:
Object of Combination By Bo Xu Introduction A combination of n things, taken s at a time, often referred as an s-combination out of n, is a way to select a subset of size s from a given set of...
3
by: gdogg1587 | last post by:
Greetings. I'm working on a program that will "descramble" words. Think of a word scramble game where there is a list of characters, and several blank spaces to denote the word(s) that you are...
0
by: --CELKO-- | last post by:
I am re-doing the graphs section for the third edition of SQL FOR SMARTIES and would like some feedback and help. Here is a version of Floyd's algorithm to find the transitive closure of a...
3
by: AsuWoo | last post by:
hi, I want to implement a function that prints all possible combinations of a characters in a string,eg. input "123"into a textbox, add "1","2","3","12","13","23","123",to a listbox,Or "ab" into a...
6
by: aka_eu | last post by:
I have this problem. I'm trying to get all the valid combination C(N,K) that pass one condition. For example C(5,3) can use in any combination this numbers {1,2,3,4,5} But let's say that I...
1
by: Charles | last post by:
Hi all, I need C# code for Implementing MD5 Algorithm.. Hope all would have heard of MD5 Algorith... Does any one have the C# coding for that Algorithm.. please Send... ITs URgent..... Thanks...
2
by: Julio C. Hernandez Castro | last post by:
Dear all, We have just developped a new block cipher called Raiden, following a Feistel Network structure by means of genetic programming. Our intention now consists on getting as much feedback...
17
by: DanielJohnson | last post by:
how to use the combination function in python ? For example 9 choose 2 (written as 9C2) = 9!/7!*2!=36 Please help, I couldnt find the function through help.
9
by: paragpdoke | last post by:
Hello All. I'm looking for some algorithm to build a combination of strings from multiple arrays. Let me explain in detail. - I'm working on VBA (excel). I have functions that accept one string...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.