全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Left-child right-sibling representation?

Definition 11.16 University Computer Science — Year 1 · 第 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.
在原文中阅读 →