首页 | 本学科首页   官方微博 | 高级检索  
     


A note on searching in a binary search tree
Authors:Arne Andersson
Abstract:An algorithm for searching in a binary search tree using two-way comparisons is presented. The number of comparisons required by this algorithm is only one more than when using three-way comparisons. Since most high-level programming languages do not supply three-way comparisons, the number of comparisons used de facto is reduced by a factor of two. We give experimental results to indicate the speed-up that may be achieved by the presented algorithm.
Keywords:Binary search tree  Searching  Two-way comparison  Code optimization
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号