binary search tree 是可数名词,复数形式为 binary search trees。作主语时谓语动词单复数取决于修饰语:a binary search tree 用单数,binary search trees 用复数。常见句型包括“A binary search tree is a...”“Operations on a binary search tree take O(log n) time on average.”。易错点:不要与“binary tree”(二叉树)混淆,后者不要求有序性;此外,缩写 BST 在正式写作中首次出现时应给出全称。
近义词对比
与 binary tree(二叉树)相比,binary search tree 强调节点键值的有序排列,而 binary tree 仅指每个节点最多有两个子节点的树结构。与 balanced binary search tree(平衡二叉搜索树)相比,后者是前者的子类,额外要求树的高度保持平衡以保障最坏情况下的性能。与 heap(堆)相比,两者都是基于树的结构,但堆满足堆序性质而非二叉搜索树的有序性质。在需要强调有序搜索时使用 binary search tree,仅讨论树形结构时用 binary tree。
使用提示
该词组属于专业术语,语域较高,适用于技术文献和正式讨论,不宜在非技术语境中随意使用。褒贬色彩中性。常见误用包括:将 binary search tree 与 binary tree 混为一谈;在描述算法复杂度时忽略“平均”与“最坏”情况的区别;缩写 BST 在未定义时直接使用。此外,中文翻译“二叉搜索树”是标准译法,但“二叉查找树”也常见,两者可互换。
搭配用法
balanced binary search tree平衡二叉搜索树
self-balancing binary search tree自平衡二叉搜索树
insert into a binary search tree向二叉搜索树中插入
delete from a binary search tree从二叉搜索树中删除
search in a binary search tree在二叉搜索树中搜索
binary search tree property二叉搜索树性质
optimal binary search tree最优二叉搜索树
例句
A binary search tree allows efficient searching, insertion, and deletion of keys.
The average time complexity of operations on a binary search tree is O(log n).
Unlike a binary tree, a binary search tree maintains an ordering property among its nodes.
To avoid degeneration, a balanced binary search tree such as a red-black tree is often used.
In the interview, the candidate was asked to implement a binary search tree from scratch.