Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Left-child right-sibling representation » ?

Definition 11.16 University Computer Science — Year 1 · Chapitre 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.
Lire dans le chapitre →