About 1,150 results
Open links in new tab
  1. Introduction to Tree Data Structure | GeeksforGeeks

    Mar 4, 2025 · Basic Operations Of Tree Data Structure: Create – create a tree in the data structure. Insert − Inserts data in a tree. Search − Searches specific data in a tree to check whether it is present or not. Traversal: Depth-First-Search Traversal; Breadth-First-Search Traversal; Implementation of Tree Data Structure: C++

  2. Binary Tree Data Structure - GeeksforGeeks

    Mar 4, 2025 · Binary Tree is a non-linear and hierarchical data structure where each node has at most two children referred to as the left child and the right child. The topmost node in a binary tree is called the root, and the bottom-most nodes are called leaves.

  3. Tree Data Structure - GeeksforGeeks

    Mar 21, 2025 · Tree Data Structure is a non-linear data structure in which a collection of elements known as nodes are connected to each other via edges such that there exists exactly one path between any two nodes. Basics of Tree Data Structure. Introduction to Tree; Types of Trees in Data Structures; Applications of tree data structure; Binary Tree. Binary ...

  4. Height and Depth of a node in a Binary Tree - GeeksforGeeks

    Apr 3, 2025 · Given a Binary Tree consisting of n nodes and a integer k, the task is to find the depth and height of the node with value k in the Binary Tree. Note: The depth of a node is the number of edges present in path from the root node of a tree to that node. The height of a node is the maximum number of edges from that node to a leaf node in its ...

  5. Types of Trees in Data Structures - GeeksforGeeks

    Mar 21, 2025 · A tree is a type of data structure that represents a hierarchical relationship between data elements, called nodes. The top node in the tree is called the root, and the elements below the root are called child nodes. Each child node may have one or more child nodes of its own, forming a branching st

  6. Trie Data Structure Tutorial - GeeksforGeeks

    Apr 21, 2025 · The trie data structure, also known as a prefix tree, is a tree-like data structure used for efficient retrieval of key-value pairs. It is commonly used for implementing dictionaries and autocomplete features, making it a fundamental component in many search algorithms.

  7. Applications of tree data structure - GeeksforGeeks

    Mar 21, 2025 · A tree is a type of data structure that represents a hierarchical relationship between data elements, called nodes. The top node in the tree is called the root, and the elements below the root are called child nodes.

  8. Tree Traversal Techniques - GeeksforGeeks

    Mar 11, 2025 · Diagonal traversal helps in visualizing the hierarchical structure of binary trees, particularly in tree-based data structures like binary search trees (BSTs) and heap trees. Diagonal traversal can be utilized to calculate path sums along diagonals in a binary tree.

  9. Find the Root of a Tree - GeeksforGeeks

    Jan 22, 2024 · Given a random node of a tree, find out the root of the tree. Note: Every node has a value (val) and a pointer (*parent) pointing towards its parent. Examples: Input: A Node : E / \ B D / | / \ E G H K Output: A Explanation: A is the root of the tree. Input: 1 Node : 6

  10. Introduction of B-Tree - GeeksforGeeks

    Jan 29, 2025 · A B-Tree is a specialized m-way tree designed to optimize data access, especially on disk-based storage systems. In a B-Tree of order m, each node can have up to m children and m-1 keys, allowing it to efficiently manage large datasets. The value of m is decided based on disk block and key sizes.

  11. Some results have been removed
Refresh