Click here to Skip to main content
15,885,891 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm confused by the concept of digital search tree and Trie data structure. Can someone explain to me briefly their differences? Also, is trie the same as radix tree?

What I have tried:

I tried searching but the results that I get are different so I don't really know what is what
Posted
Updated 2-Feb-20 4:51am

1 solution

From Wikipedia:
In computer science, a trie, also called digital tree or prefix tree, is a kind of search tree — an ordered tree data structure used to store a dynamic set or associative array where the keys are usually strings. Unlike a binary search tree, no node in the tree stores the key associated with that node; instead, its position in the tree defines the key with which it is associated. All the descendants of a node have a common prefix of the string associated with that node, and the root is associated with the empty string.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900