Identifier
Identifier
Values
[[]] generating graphics... => 1
[[],[]] generating graphics... => 2
[[[]]] generating graphics... => 1
[[],[],[]] generating graphics... => 3
[[],[[]]] generating graphics... => 2
[[[]],[]] generating graphics... => 2
[[[],[]]] generating graphics... => 2
[[[[]]]] generating graphics... => 1
[[],[],[],[]] generating graphics... => 4
[[],[],[[]]] generating graphics... => 3
[[],[[]],[]] generating graphics... => 3
[[],[[],[]]] generating graphics... => 2
[[],[[[]]]] generating graphics... => 2
[[[]],[],[]] generating graphics... => 3
[[[]],[[]]] generating graphics... => 2
[[[],[]],[]] generating graphics... => 2
[[[[]]],[]] generating graphics... => 2
[[[],[],[]]] generating graphics... => 3
[[[],[[]]]] generating graphics... => 2
[[[[]],[]]] generating graphics... => 2
[[[[],[]]]] generating graphics... => 2
[[[[[]]]]] generating graphics... => 1
[[],[],[],[],[]] generating graphics... => 5
[[],[],[],[[]]] generating graphics... => 4
[[],[],[[]],[]] generating graphics... => 4
[[],[],[[],[]]] generating graphics... => 3
[[],[],[[[]]]] generating graphics... => 3
[[],[[]],[],[]] generating graphics... => 4
[[],[[]],[[]]] generating graphics... => 3
[[],[[],[]],[]] generating graphics... => 3
[[],[[[]]],[]] generating graphics... => 3
[[],[[],[],[]]] generating graphics... => 3
[[],[[],[[]]]] generating graphics... => 2
[[],[[[]],[]]] generating graphics... => 2
[[],[[[],[]]]] generating graphics... => 2
[[],[[[[]]]]] generating graphics... => 2
[[[]],[],[],[]] generating graphics... => 4
[[[]],[],[[]]] generating graphics... => 3
[[[]],[[]],[]] generating graphics... => 3
[[[]],[[],[]]] generating graphics... => 2
[[[]],[[[]]]] generating graphics... => 2
[[[],[]],[],[]] generating graphics... => 3
[[[[]]],[],[]] generating graphics... => 3
[[[],[]],[[]]] generating graphics... => 2
[[[[]]],[[]]] generating graphics... => 2
[[[],[],[]],[]] generating graphics... => 3
[[[],[[]]],[]] generating graphics... => 2
[[[[]],[]],[]] generating graphics... => 2
[[[[],[]]],[]] generating graphics... => 2
[[[[[]]]],[]] generating graphics... => 2
[[[],[],[],[]]] generating graphics... => 4
[[[],[],[[]]]] generating graphics... => 3
[[[],[[]],[]]] generating graphics... => 3
[[[],[[],[]]]] generating graphics... => 2
[[[],[[[]]]]] generating graphics... => 2
[[[[]],[],[]]] generating graphics... => 3
[[[[]],[[]]]] generating graphics... => 2
[[[[],[]],[]]] generating graphics... => 2
[[[[[]]],[]]] generating graphics... => 2
[[[[],[],[]]]] generating graphics... => 3
[[[[],[[]]]]] generating graphics... => 2
[[[[[]],[]]]] generating graphics... => 2
[[[[[],[]]]]] generating graphics... => 2
[[[[[[]]]]]] generating graphics... => 1
[[],[],[],[],[],[]] generating graphics... => 6
[[],[],[],[],[[]]] generating graphics... => 5
[[],[],[],[[]],[]] generating graphics... => 5
[[],[],[],[[],[]]] generating graphics... => 4
[[],[],[],[[[]]]] generating graphics... => 4
[[],[],[[]],[],[]] generating graphics... => 5
[[],[],[[]],[[]]] generating graphics... => 4
[[],[],[[],[]],[]] generating graphics... => 4
[[],[],[[[]]],[]] generating graphics... => 4
[[],[],[[],[],[]]] generating graphics... => 3
[[],[],[[],[[]]]] generating graphics... => 3
[[],[],[[[]],[]]] generating graphics... => 3
[[],[],[[[],[]]]] generating graphics... => 3
[[],[],[[[[]]]]] generating graphics... => 3
[[],[[]],[],[],[]] generating graphics... => 5
[[],[[]],[],[[]]] generating graphics... => 4
[[],[[]],[[]],[]] generating graphics... => 4
[[],[[]],[[],[]]] generating graphics... => 3
[[],[[]],[[[]]]] generating graphics... => 3
[[],[[],[]],[],[]] generating graphics... => 4
[[],[[[]]],[],[]] generating graphics... => 4
[[],[[],[]],[[]]] generating graphics... => 3
[[],[[[]]],[[]]] generating graphics... => 3
[[],[[],[],[]],[]] generating graphics... => 3
[[],[[],[[]]],[]] generating graphics... => 3
[[],[[[]],[]],[]] generating graphics... => 3
[[],[[[],[]]],[]] generating graphics... => 3
[[],[[[[]]]],[]] generating graphics... => 3
[[],[[],[],[],[]]] generating graphics... => 4
[[],[[],[],[[]]]] generating graphics... => 3
[[],[[],[[]],[]]] generating graphics... => 3
[[],[[],[[],[]]]] generating graphics... => 2
[[],[[],[[[]]]]] generating graphics... => 2
[[],[[[]],[],[]]] generating graphics... => 3
[[],[[[]],[[]]]] generating graphics... => 2
[[],[[[],[]],[]]] generating graphics... => 2
[[],[[[[]]],[]]] generating graphics... => 2
[[],[[[],[],[]]]] generating graphics... => 3
[[],[[[],[[]]]]] generating graphics... => 2
[[],[[[[]],[]]]] generating graphics... => 2
[[],[[[[],[]]]]] generating graphics... => 2
[[],[[[[[]]]]]] generating graphics... => 2
[[[]],[],[],[],[]] generating graphics... => 5
[[[]],[],[],[[]]] generating graphics... => 4
[[[]],[],[[]],[]] generating graphics... => 4
[[[]],[],[[],[]]] generating graphics... => 3
[[[]],[],[[[]]]] generating graphics... => 3
[[[]],[[]],[],[]] generating graphics... => 4
[[[]],[[]],[[]]] generating graphics... => 3
[[[]],[[],[]],[]] generating graphics... => 3
[[[]],[[[]]],[]] generating graphics... => 3
[[[]],[[],[],[]]] generating graphics... => 3
[[[]],[[],[[]]]] generating graphics... => 2
[[[]],[[[]],[]]] generating graphics... => 2
[[[]],[[[],[]]]] generating graphics... => 2
[[[]],[[[[]]]]] generating graphics... => 2
[[[],[]],[],[],[]] generating graphics... => 4
[[[[]]],[],[],[]] generating graphics... => 4
[[[],[]],[],[[]]] generating graphics... => 3
[[[[]]],[],[[]]] generating graphics... => 3
[[[],[]],[[]],[]] generating graphics... => 3
[[[[]]],[[]],[]] generating graphics... => 3
[[[],[]],[[],[]]] generating graphics... => 2
[[[],[]],[[[]]]] generating graphics... => 2
[[[[]]],[[],[]]] generating graphics... => 2
[[[[]]],[[[]]]] generating graphics... => 2
[[[],[],[]],[],[]] generating graphics... => 3
[[[],[[]]],[],[]] generating graphics... => 3
[[[[]],[]],[],[]] generating graphics... => 3
[[[[],[]]],[],[]] generating graphics... => 3
[[[[[]]]],[],[]] generating graphics... => 3
[[[],[],[]],[[]]] generating graphics... => 3
[[[],[[]]],[[]]] generating graphics... => 2
[[[[]],[]],[[]]] generating graphics... => 2
[[[[],[]]],[[]]] generating graphics... => 2
[[[[[]]]],[[]]] generating graphics... => 2
[[[],[],[],[]],[]] generating graphics... => 4
[[[],[],[[]]],[]] generating graphics... => 3
[[[],[[]],[]],[]] generating graphics... => 3
[[[],[[],[]]],[]] generating graphics... => 2
[[[],[[[]]]],[]] generating graphics... => 2
[[[[]],[],[]],[]] generating graphics... => 3
[[[[]],[[]]],[]] generating graphics... => 2
[[[[],[]],[]],[]] generating graphics... => 2
[[[[[]]],[]],[]] generating graphics... => 2
[[[[],[],[]]],[]] generating graphics... => 3
[[[[],[[]]]],[]] generating graphics... => 2
[[[[[]],[]]],[]] generating graphics... => 2
[[[[[],[]]]],[]] generating graphics... => 2
[[[[[[]]]]],[]] generating graphics... => 2
[[[],[],[],[],[]]] generating graphics... => 5
[[[],[],[],[[]]]] generating graphics... => 4
[[[],[],[[]],[]]] generating graphics... => 4
[[[],[],[[],[]]]] generating graphics... => 3
[[[],[],[[[]]]]] generating graphics... => 3
[[[],[[]],[],[]]] generating graphics... => 4
[[[],[[]],[[]]]] generating graphics... => 3
[[[],[[],[]],[]]] generating graphics... => 3
[[[],[[[]]],[]]] generating graphics... => 3
[[[],[[],[],[]]]] generating graphics... => 3
[[[],[[],[[]]]]] generating graphics... => 2
[[[],[[[]],[]]]] generating graphics... => 2
[[[],[[[],[]]]]] generating graphics... => 2
[[[],[[[[]]]]]] generating graphics... => 2
[[[[]],[],[],[]]] generating graphics... => 4
[[[[]],[],[[]]]] generating graphics... => 3
[[[[]],[[]],[]]] generating graphics... => 3
[[[[]],[[],[]]]] generating graphics... => 2
[[[[]],[[[]]]]] generating graphics... => 2
[[[[],[]],[],[]]] generating graphics... => 3
[[[[[]]],[],[]]] generating graphics... => 3
[[[[],[]],[[]]]] generating graphics... => 2
[[[[[]]],[[]]]] generating graphics... => 2
[[[[],[],[]],[]]] generating graphics... => 3
[[[[],[[]]],[]]] generating graphics... => 2
[[[[[]],[]],[]]] generating graphics... => 2
[[[[[],[]]],[]]] generating graphics... => 2
[[[[[[]]]],[]]] generating graphics... => 2
[[[[],[],[],[]]]] generating graphics... => 4
[[[[],[],[[]]]]] generating graphics... => 3
[[[[],[[]],[]]]] generating graphics... => 3
[[[[],[[],[]]]]] generating graphics... => 2
[[[[],[[[]]]]]] generating graphics... => 2
[[[[[]],[],[]]]] generating graphics... => 3
[[[[[]],[[]]]]] generating graphics... => 2
[[[[[],[]],[]]]] generating graphics... => 2
[[[[[[]]],[]]]] generating graphics... => 2
[[[[[],[],[]]]]] generating graphics... => 3
[[[[[],[[]]]]]] generating graphics... => 2
[[[[[[]],[]]]]] generating graphics... => 2
[[[[[[],[]]]]]] generating graphics... => 2
[[[[[[[]]]]]]] generating graphics... => 1
click to show generating function       
Description
The maximum number of child nodes in a tree.
Code
def statistic(t):
    
    nodes = []
    for node in t:
        nodes.append(node)
    
    maxNode = 0
    if (len(nodes) > 0):
        for node in nodes:
            tempMax = statistic(node)
            if(tempMax > maxNode):
                maxNode = tempMax
            
    if (len(nodes) > maxNode):
        return len(nodes)
    else:
        return maxNode
Created
Dec 16, 2015 at 06:18 by Cole Kainz
Updated
Dec 16, 2015 at 20:14 by Cole Kainz