Home | History | Annotate | Download | only in garbage

Lines Matching refs:depth

45 var n = flag.Int("n", 16, "depth")
52 func bottomUpTree(item, depth int) *Node {
53 if depth <= 0 {
56 return &Node{item, bottomUpTree(2*item-1, depth-1), bottomUpTree(2*item, depth-1)}
80 fmt.Printf("stretch tree of depth %d\t check: %d\n", stretchDepth, check)
84 for depth := minDepth; depth <= maxDepth; depth += 2 {
85 iterations := 1 << uint(maxDepth-depth+minDepth)
89 check += bottomUpTree(i, depth).itemCheck()
90 check += bottomUpTree(-i, depth).itemCheck()
92 fmt.Printf("%d\t trees of depth %d\t check: %d\n", iterations*2, depth, check)
94 fmt.Printf("long lived tree of depth %d\t check: %d\n", maxDepth, longLivedTree.itemCheck())