GraphTheory[SpecialGraphs][CompleteBinaryTree]
GraphTheory[SpecialGraphs][CompleteKaryTree]
|
Calling Sequence
|
|
CompleteBinaryTree(n)
CompleteKaryTree(k,n)
|
|
Parameters
|
|
k
|
-
|
positive integer indicating the degree of the root
|
n
|
-
|
positive integer indicating the depth of the tree
|
|
|
|
|
Description
|
|
•
|
The CompleteBinaryTree(n) command constructs the complete binary tree with depth n.
|
•
|
The CompleteKaryTree(k,n) command constructs the complete k-ary tree with depth n for a given k.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
|
|
Download Help Document
Was this information helpful?