Description Usage Arguments Details Value Examples
Searches for a string within a ternary search tree
1 | searchWord(tree, string)
|
tree |
an existing ternary search tree to search words in. |
string |
a string of characters to search for. |
Searches through the tree for the specified string. Returns TRUE if the string have been added to the tree and FALSE if not.
logical. TRUE if the string is in the tree, FALSE if not.
1 2 3 | fruitTree <- newTree(c("apple", "orange","apricot","cherry"))
searchWord(fruitTree, "apricot")
searchWord(fruitTree, "banana")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.