CompleteKaryTree
The full (perfect) -ary tree of the given depth — every level completely filled.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
CompleteKaryTree✓CompleteKaryTree(levels)binary (); levels is a LEVEL count, not a vertex count.CompleteKaryTree(levels, k) vertices, 1-indexed heap layout — vertex 's children are .Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer, integer?) -> value | combinatorics | always |
Details
levelscounts LEVELS, not vertices (kernel-verified):CompleteKaryTree(1, 2)is a single vertex,CompleteKaryTree(3, 2)has 7.
Examples
3 more kept as data, checked against the oraclesProperties #
About
| Examples | 15 |
|---|---|
| Checked against | Wolfram Language 15 agree |
| Crosswalk | Wolfram Language |
See also: StarGraph, IsTreeGraph