dimTree: Tree dimensions

Description Usage Arguments Details Value See Also Examples

View source: R/dimTree.R

Description

Returns a numeric vector with the dimensions of the ternary search tree

Usage

1
dimTree(tree)

Arguments

tree

an existing ternary search tree.

Details

The first number in the vector is the number of words in the ternary search tree and the second is the number of nodes (each node is a character) in the tree.

Value

A numeric vector with the dimensions of the tree.

See Also

newTree

Examples

1
2
fruitTree <- newTree(c("apple", "orange","apricot","cherry"))
dimTree(fruitTree)

TSTr documentation built on May 1, 2019, 9:16 p.m.