DEV Community

Mujahida Joynab
Mujahida Joynab

Posted on

Tree

Tree is a non linear data structure .
It is non linear because it not linear . One value have multiple values . It is not parallel .
We cannot go back in tree . Example - If we come to branches from root .We cannot go back to root . Because it follows hierarchy . We can go to child from parent . But cannot go to parent from child
Tree have -
Root
Branches
Leaf

It is hierarchy data structure . Hierarchy means parent and child and his child and his child .
Middle element are branches . End of the tree we have leaf node .

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay