leftchildrightsibling
Left-child right-sibling (LCRS) is a representation of rooted trees in which each node contains two pointers: one to its left child, and one to its right sibling. In this scheme, any node can have an arbitrary number of children by linking them via a chain of right pointers starting from the left child. The structure effectively stores a multiway tree as a binary tree.
To traverse the children of a node, you start at the left child and follow the right
Advantages include a uniform storage model compatible with binary-tree algorithms and simple memory management for variable
LCRS is also known as the first-child, next-sibling representation and is used in computer science for representing