The following introduction is copied from Wikipedia:
In computer science, a trie, also called digital tree or sometimes radix tree or prefix tree
(as they can be searched by prefixes), is an ordered tree data structure that is used to store
a dynamic set or associative array where the keys are usually strings.
Trie is a good choice for bioinformatic applications (for DNA sequence alighment).
Also because trie supports ordered traversal, outputing all keys in the trie is actually a pre-order traversal.
So obviously trie can be used for sorting, for example Burstsort, it’s even faster than quicksort for
large data sets ( Worst case: ).
The above implemetation does not use space efficiently. The space complexity is , m = 26 for just English characters, and things get even worse when deal with unicode characters.