Tries Tries are a incredibly useful data structure. 

A trie (pronounced "try") is a tree-like data structure used primarily for storing strings where common prefixes are shared. Real-life equivalents of a trie (prefix tree) are seen wherever hierarchical or prefix-based lookup happens. Examples include:

The common form of storing trie data is the form of nodes.

Each node has 3 values.

Example of how data how it is loaded into the trie