org.graffiti.plugins.algorithms.generators
Class RandomBinaryTreeGenerator

java.lang.Object
  extended by org.graffiti.plugins.algorithms.generators.RandomBinaryTreeGenerator

public class RandomBinaryTreeGenerator
extends Object

Author:
Beiqi Create a random binary (k-nary) tree generator according to the Martin and Orr Algorithmus

Constructor Summary
RandomBinaryTreeGenerator()
           
 
Method Summary
static void generateTree(int[] inversionTable, int nodeNumber)
          Generate Binary Tree
static void generateTree(int[] inversionTable, int nodeNumber, int arity)
          Generate z-nary tree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomBinaryTreeGenerator

public RandomBinaryTreeGenerator()
Method Detail

generateTree

public static void generateTree(int[] inversionTable,
                                int nodeNumber)
Generate Binary Tree

Parameters:
inversionTable -
nodeNumber -

generateTree

public static void generateTree(int[] inversionTable,
                                int nodeNumber,
                                int arity)
Generate z-nary tree

Parameters:
inversionTable -
nodeNumber -
arity -


Generated at 2012-05-30 11:01:25 PM CEST