combination algorithm/source code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ross

    #1

    combination algorithm/source code

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

    YGEQLGMREMVRNCM QDL

    and generating sequences:

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


  • Lawrence Kirby

    #2
    Re: combination algorithm/source code

    On Thu, 09 Dec 2004 14:52:40 +0800, Ross wrote:
    [color=blue]
    > Is there any combination parsing algorithm/source code available to handle
    > the combination problem of inputting a sequence:
    >
    > YGEQLGMREMVRNCM QDL
    >
    > and generating sequences:
    >
    > YGEQLGMREMVRNCM QDL
    > YGE QLGMREMVRNCMQDL
    > YGE QLGMREMVR NCMQDL
    > YGE QLGMREMVR NCM QDL
    > YGEQLGMREMVR NCMQDL
    > YGEQLGMREMVR NCM QDL
    > YGEQLGMREMVRNCM QDL[/color]

    Try an algorithms related newsgroup such as comp.programmin g.

    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

    Comment

    • Richard Bos

      #3
      Re: combination algorithm/source code

      "Ross" <kk-leung@cuhk.edu. hk> wrote:
      [color=blue]
      > Is there any combination parsing algorithm/source code available to handle
      > the combination problem of inputting a sequence:
      >
      > YGEQLGMREMVRNCM QDL
      >
      > and generating sequences:
      >
      > YGEQLGMREMVRNCM QDL
      > YGE QLGMREMVRNCMQDL
      > YGE QLGMREMVR NCMQDL
      > YGE QLGMREMVR NCM QDL
      > YGEQLGMREMVR NCMQDL
      > YGEQLGMREMVR NCM QDL
      > YGEQLGMREMVRNCM QDL[/color]

      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

      Comment

      Working...