- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Digital Search Trees Binary Tries Analog of radix sort to searching. Keys are binary bit strings. Fixed length – 0110, 0010, 1010, 1011. Variable length – 01, 00, 101, 1011. Application – IP routing, packet classification, firewalls. IPv4 – 32 bit IP address. IPv6 – 128 bit IP address. Digital Search Tree Assume fixed number of bits. Not empty = Root contains one dictionary pair (any pair). All remaining pairs whose key begins with a 0 are in the left subtree. All remaining pairs whose key begins with a 1 are in the right subtree. Left and right subtrees are digital subtrees on remaining bits. Example Start with an empty digital search tree and insert a pair whose key is 0110. Example Example Example Search/Insert/Delete Binary Trie Information Retrieval. At most one key comparison per operation. Fixed length keys. Branch nodes. Left and right child pointers. No data field(s). Element nodes. No child pointers. Data field to hold dictionary pair. Example Variable Key Length Left and right child fields. Left and right pair fields. Left pair is pair whose key terminates at root of left subtree or the single pair that might otherwise be in the left subtree. Right pair is pair whose key terminates at root of right subtree or the single pair that might otherwise be in the right subtree. Field is null otherwise. Example Fixed Length Insert Fixed Length Insert Fixed Length Insert Fixed Length Insert Fixed Length Delete Fixed Length Delete Fixed Length Delete Fixed Length Delete Fixed Length Delete Fixed Length Delete Fixed Length Delete Fixed Length Join(S,m,B) Insert m into B to get B’. S empty = B’ is answer; done. S is element node = insert S element into B’; done; B’ is element node = insert B’ element into S; done; If you get to this step, the roots of S and B’ are branch nodes. Fixed Length Join(S,m,B) S has empty right subtree. Fixed Length Join(S,m,B) S has nonempty right subtree. Left subtree of B’ must be empty, because all keys in B’ all keys in S. * 0110 No
您可能关注的文档
最近下载
- 小学英语新课程标准解读版.pptx VIP
- 服装设计教程_自学服装设计.pdf VIP
- 医疗机构相关法律法规培训PPT课件(医疗卫生与健康促进法、医师法、处方管理办法、传染病防治法、职业病防治法、医疗纠纷).pptx VIP
- XX市国资国企在线监管系统项目技术方案(2023最新).pdf VIP
- 《应急疏散演练》课件.ppt VIP
- 部编版小学四年级语文上册第一单元测试卷及答案(共4套).pdf VIP
- 2025年山区救援网5G网络覆盖对山区救援效率的影响报告.docx VIP
- 向量的概念试题.pdf VIP
- 光伏施工项目资源配备计划.docx VIP
- 中国地铁发展史PPT课件.pptx VIP
文档评论(0)