Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: Generate all possible sequences from Event Tree

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Thanked 0 Times in 0 Posts

    Default Generate all possible sequences from Event Tree

    Suppose, i have event tree and each node has a type namely 'event', 'sequence' and 'set'. A node can have 'n' branches.

    event- leaf node
    sequence- the leaf node must come in sequence like for node 'A' in the example tree the sequence must be only B->C
    set- any combination of leaf node may appear in sequence like for node 'E' in the example tree: the sequence may be F->G, G->F

    For example:


    So, I have to generate all the possible sequence of event for a given tree. The example tree will have 4 event sequences which are


    So, how it can be done in java to find out all possible sequences.

    Any algorithm will also be a great help.
    Last edited by masterblaster; November 22nd, 2011 at 03:15 AM.

Similar Threads

  1. Generate users id
    By sante in forum Algorithms & Recursion
    Replies: 5
    Last Post: October 6th, 2011, 11:29 AM
  2. [SOLVED] Generate UserID?
    By sukuiichuu in forum What's Wrong With My Code?
    Replies: 5
    Last Post: September 18th, 2011, 08:50 PM
  3. How do you generate javadoc?
    By javapenguin in forum Java IDEs
    Replies: 15
    Last Post: November 27th, 2010, 09:12 PM
  4. Data Structures(Binary Search Tree to AVL Tree)ASAP
    By jfAdik in forum Algorithms & Recursion
    Replies: 2
    Last Post: April 5th, 2010, 03:58 AM