Skip to content
Theory of Coding

Theory of Coding

Search
  • Home
  • Data Structures
    • Graphs
      • Graph Theory Basics
      • Breadth First Search Algorithm
      • Snakes and Ladders Game Code
      • Depth First Search Algorithm
      • Bellman Ford Algorithm
      • Prim’s Algorithm
      • Dijkstra’s Algorithm
    • Trees
      • Binary Indexed Tree (or) Fenwick Tree
      • Trie Tree
      • Compressed Trie Tree
      • N-ary tree or K-way tree data structure
      • Segment Trees
      • Binary Heaps
      • Binary Heaps and Heapsort Algorithm
  • Algorithms
    • Searching & Sorting
      • Binary Search
      • Jump Search
      • Quick Sort
      • Merge Sort
    • Dynamic Programming
      • Introduction and Fibonacci Numbers
      • Kadane’s Algorithm
      • Edit Distance
    • Math
      • Modular Arithmetic Properties
  • AI
    • MiniMax Algorithm
    • Minimax algorithm with Alpha-Beta Pruning
    • Iterative Deepening Depth First Search
    • Bidirectional Search
  • Java
    • Language Basics
      • An Introduction
      • Data Types, Input and Operators
      • If Else, Switch and Loops
      • Strings, StringBuffer and StringBuilder
      • Arrays in Java
      • Enum and Methods in Java
    • Introduction to OOP
      • Java Tutorials – Classes and Objects
      • Encapsulation in Java
      • Constructor and Overloading Methods
      • Inheritance
Theory of Coding

Theory of Coding

Close menu
  • Home
  • Data Structures
    • Graphs
      • Graph Theory Basics
      • Breadth First Search Algorithm
      • Snakes and Ladders Game Code
      • Depth First Search Algorithm
      • Bellman Ford Algorithm
      • Prim’s Algorithm
      • Dijkstra’s Algorithm
    • Trees
      • Binary Indexed Tree (or) Fenwick Tree
      • Trie Tree
      • Compressed Trie Tree
      • N-ary tree or K-way tree data structure
      • Segment Trees
      • Binary Heaps
      • Binary Heaps and Heapsort Algorithm
  • Algorithms
    • Searching & Sorting
      • Binary Search
      • Jump Search
      • Quick Sort
      • Merge Sort
    • Dynamic Programming
      • Introduction and Fibonacci Numbers
      • Kadane’s Algorithm
      • Edit Distance
    • Math
      • Modular Arithmetic Properties
  • AI
    • MiniMax Algorithm
    • Minimax algorithm with Alpha-Beta Pruning
    • Iterative Deepening Depth First Search
    • Bidirectional Search
  • Java
    • Language Basics
      • An Introduction
      • Data Types, Input and Operators
      • If Else, Switch and Loops
      • Strings, StringBuffer and StringBuilder
      • Arrays in Java
      • Enum and Methods in Java
    • Introduction to OOP
      • Java Tutorials – Classes and Objects
      • Encapsulation in Java
      • Constructor and Overloading Methods
      • Inheritance
Theory of Coding

Theory of Coding

Search Toggle menu

Category: Tree Data Structures

14 January 2018Tree Data Structures

N-ary tree or K-way tree data structure

N-ary tree is defined as a rooted tree which has at most N children for any node. So, a binary tree is a special case of the N-ary tree, where N = 2. We ca implement an N-ary tree using structures or using arrays.

15 November 201620 November 2023Tree Data Structures

Compressed Trie Tree

Hello, people! In this post, we will discuss a commonly used data structure to store strings, the Compress Trie Tree, also known […]

1 February 201517 November 2023Tree Data Structures

Binary Heaps and Heapsort Algorithm

Hello people…! In this post I will talk about the Binary Heaps and Heapsort Algorithm implemented using structures and not arrays. This […]

27 January 201517 November 2023Tree Data Structures

Segment Trees

Hello people…! In this post I will talk about one of the most versatile data structure in competitive programming, the Segment Tree. […]

16 January 201511 November 2023Tree Data Structures

Trie Tree Implementation

Note – Theory of Coding is also on YouTube! This post has a video. Watch it at – https://www.youtube.com/watch?v=EbamlevPlxY Hoping you’ll support […]

24 December 201410 November 2023Tree Data Structures

Binary Indexed Tree (or) Fenwick Tree

Every programmer needs a suitable data structure to compute some complex function or to do a time-taking task quickly. In this post, […]

Recent Posts

  • Bidirectional Search
  • Iterative Deepening Depth First Search (IDDFS)
  • N-ary tree or K-way tree data structure
  • Rotate matrix clockwise
  • Print matrix in spiral order

Categories

  • Array Interview Questions
  • Artificial Intelligence
  • C++ Tutorials
  • Competitive Coding
  • Dynamic Programming
  • Graph Theory
  • Heaps
  • Java
  • Math
  • Searching Algorithms
  • Sorting Algorithms
  • Tree Data Structures
© 2025 Theory of Coding. Proudly powered by Sydney