全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Binary search tree?

又称: search-tree property

Definition 25.6 High School Computer Science · 第 25 章 — Trees and Binary Search Trees

A binary search tree is a binary tree of keys in which, at every node, the keys of the left subtree are smaller than the node’s key and the keys of the right subtree are larger.

The search tree of bst_demo.py. Every title on the left of a node comes before it in alphabetical order, every title on the right after it. The deepest node, shaded, has depth 5: the height of the tree.
The search tree of bst_demo.py. Every title on the left of a node comes before it in alphabetical order, every title on the right after it. The deepest node, shaded, has depth 55: the height of the tree.
在原文中阅读 →
Definition 17.1 University Computer Science — Year 1 · 第 17 章 — Binary Search Trees and Balanced Trees

A binary search tree is a binary tree whose nodes hold keys from an ordered set, with the search-tree property: at every node, the keys of the left subtree are smaller than the node’s key, and the keys of the right subtree are larger.

在原文中阅读 →