好的,在上次课程的最后,我也给你们看了一个二分查找的例子。
OK. At the end of the lecture last time, I also showed you an example of binary search.
当然,他们也问刚毕业的大学生一些关于计算机科学理论的问题,如:请写一个二分查找程序。
And, of course, they asked new university graduates about computer science theory; "Write me a binary search."
和其它的提供了最坏情况O(logn)查找时间的自平衡二分查找树不同,替罪羊树与普通的二分查找树相比,并没有对每个节点增加额外的开销。
Unlike other self-balancing binary search trees that provide worst case O(log n) lookup time, scapegoat trees have no additional per-node overhead compared to a regular binary search tree.
在这些年间,有许多种不同的数据结构不断被提出和应用,例如哈希表、二分搜索树、数字查找树、三元搜索树等等。
Throughout the years, many kinds of data structure had been proposed and applied, for instance, hash tables, binary search tree, digital search tree, ternary search tree and so on and so forth.
在这些年间,有许多种不同的数据结构不断被提出和应用,例如哈希表、二分搜索树、数字查找树、三元搜索树等等。
Throughout the years, many kinds of data structure had been proposed and applied, for instance, hash tables, binary search tree, digital search tree, ternary search tree and so on and so forth.
应用推荐