Everything you need to know about tree data structures - Deepstash
Machine Learning With Google

Learn more about computerscience with this collection

Understanding machine learning models

Improving data analysis and decision-making

How Google uses logic in machine learning

Machine Learning With Google

Discover 95 similar ideas in

It takes just

14 mins to read

Data Trees: Definition

Data Trees: Definition

Trees are well-known as a non-linear data structure. They don’t store data in a linear way. They organize data hierarchically.

A tree is a collection of entities called nodes. Nodes are connected by edges. Each node contains a value or data, and it may or may not have a child node .

14

114 reads

Terminology summary

  • Root is the topmost node of the tree  
  • Edge is the link between two nodes  
  • Child is a node that has a parent node  
  • Parent is a node that has an edge to a child node  
  • Leaf is a node that does not have a child node in the tree  
  • Height is the length of the longest path to a leaf  
  • Depth is the length of the path to its root  

12

86 reads

CURATED BY

sarakelly

Product designer

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving & library

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Personalized recommendations

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates