Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Left-child right-sibling representation?

Definition 11.16 University Computer Science — Year 1 · Hoofdstuk 11 — Induction, Recursion and Termination

The left-child right-sibling representation stores a tree of any arity as a binary tree with the same nodes: the left subtree of a node is its first child, and its right subtree is its next sibling.

A tree of arity 4 and its left-child right-sibling binary tree. The same eight nodes; the children of a node become a chain of right links starting at its left child.
A tree of arity 4 and its left-child right-sibling binary tree. The same eight nodes; the children of a node become a chain of right links starting at its left child.
Lees in het hoofdstuk →