What is Ternary Tree

Data Structure and Algorithms Course
Recent articles on Tree

What is a Ternary Tree?

A Ternary Tree is a tree data structure in which each node has at most three child nodes, usually distinguished as “left”, “mid” and “right”.

For example: Consider the tree below. Since each node of this tree has only 3 children, it can be said that this tree is a Ternary Tree.

Ternary Tree

Ternary Tree

Some interesting problems on Ternary Tree:

  1. Create a Doubly Linked List from a Ternary Tree
  2. Ternary Search Tree
  3. Ternary Search Tree (Deletion)
  4. Longest word in ternary search tree
  5. How to implement text Auto-complete feature using Ternary Search Tree

Please write comments if you find anything incorrect, or if you want to share more information about the topic discussed above

Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!


  • Last Updated : 26 Sep, 2023

Share your thoughts in the comments
Similar Reads