Branches
. As the tree is drawn with the root placed at the top, it is called as Inverted tree
.
Syntax:
[xml]
<root>
<child>
<subchild>.....</subchild>
</child>
</root>
[/xml]
The elements present at the very bottom of an inverted tree i.e. is the part that doesn't have no elements are called as Leaves
. Hierarchical File Structures are represented by Inverted trees. In this case, the leaves are files and the other elements above the leaves are directories.
A binary tree is a special type of inverted tree in which each element has only two branches below it. Book
is the root element, Title
, Author
, Chapter
are the Branches of the root. In one of the branch Chapter, there are sub-branches like Title
, Summary
, Paragraph
and this Tree structure goes on with multiple sub-elements.