Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

TriesWithFrequencies

Guides

  • Tries with frequencies

Tech Notes

  • English words infixes study

Symbols

  • ToTrieFromJSON
  • ToTrieWithRoot
  • TrieBlank
  • TrieBodyQ
  • TrieClassify
  • TrieComparisonGrid
  • TrieContains
  • TrieCreateBySplit
  • TrieCreate
  • TrieDepth
  • TrieForm
  • TrieGetWords
  • TrieHasCompleteMatchQ
  • TrieInsert
  • TrieKeyExistsQ
  • TrieKeyQ
  • TrieKeyTraverse
  • TrieKeyValueTraverse
  • TrieLeafProbabilities
  • TrieLeafProbabilitiesWithPositions
  • TrieMap
  • TrieMemberQ
  • TrieMerge
  • TrieNodeCounts
  • TrieNodeFrequencies
  • TrieNodeProbabilities
  • TrieParetoFractionRemove
  • TriePathFromPosition
  • TriePosition
  • TriePrune
  • TrieQ
  • TrieRandomChoice
  • TrieRemove
  • TrieRetrieve
  • TrieRootToLeafPathProbabilityRules
  • TrieRootToLeafPathRules
  • TrieRootToLeafPaths
  • TrieRuleQ
  • TrieShrink
  • TrieSubTrie
  • TrieThresholdRemove
  • TrieToJSON
  • TrieToListTrie
  • TrieToRules
  • TrieValueRuleQ
  • TrieValueTotal
  • TrieWithTrieRootQ
  • $TrieRoot
  • $TrieValue
AntonAntonov`TriesWithFrequencies`
TrieCreate
​
TrieCreate
[words:{_List..}]
creates a trie from a list of lists.
​
Examples  
(1)
Basic Examples  
(1)
Here we get dictionary words and split them into characters:
In[1]:=
words=Characters/@DictionaryLookup["cardi*"]
Out[1]=
{{c,a,r,d,i,a,c},{c,a,r,d,i,e},{c,a,r,d,i,e,s},{c,a,r,d,i,g,a,n},{c,a,r,d,i,g,a,n,s},{c,a,r,d,i,n,a,l},{c,a,r,d,i,n,a,l,i,t,y},{c,a,r,d,i,n,a,l,l,y},{c,a,r,d,i,n,a,l,s},{c,a,r,d,i,n,g},{c,a,r,d,i,o,g,r,a,m},{c,a,r,d,i,o,g,r,a,m,s},{c,a,r,d,i,o,g,r,a,p,h},{c,a,r,d,i,o,g,r,a,p,h,s},{c,a,r,d,i,o,i,d},{c,a,r,d,i,o,l,o,g,i,s,t},{c,a,r,d,i,o,l,o,g,i,s,t,s},{c,a,r,d,i,o,l,o,g,y},{c,a,r,d,i,o,p,u,l,m,o,n,a,r,y},{c,a,r,d,i,o,v,a,s,c,u,l,a,r}}
Here we create a trie for the list of lists of characters above:
In[2]:=
TrieCreate
[words]//
TrieForm
[#,ImageSizeLarge]&
Out[2]=
Contents cannot be rendered at this time; please try again later
SeeAlso
TrieCreateBySplit
 
▪
TrieForm
RelatedGuides
▪
Tries with frequencies
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com