Structure of a Trie
Learn about the structure of the trie class in C# from this lesson.
Introduction
In this lesson, you will take a look at the basic structure of a trie, and then build a class in C# based on what you have studied.
Trie containing "top," "thus," and "their."
The trie node class
The node of a trie represents an alphabet. For example, if you want to insert “hello” in the trie, you will need to add 5 nodes; one for each alphabet. A typical node in a trie consists of three data members: ...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy