- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
CSE 326 Data StructuresPart 10Advanced Data Structures.ppt
CSE 326: Data StructuresPart 10Advanced Data Structures Henry Kautz Autumn Quarter 2002 Outline Multidimensional search trees Range Queries k-D Trees Quad Trees Randomized Data Structures Algorithms Treaps Primality testing Local search for NP-complete problems Multi-D Search ADT Dictionary operations create destroy find insert delete range queries Each item has k keys for a k-dimensional search tree Searches can be performed on one, some, or all the keys or on ranges of the keys Applications of Multi-D Search Astronomy (simulation of galaxies) - 3 dimensions Protein folding in molecular biology - 3 dimensions Lossy data compression - 4 to 64 dimensions Image processing - 2 dimensions Graphics - 2 or 3 dimensions Animation - 3 to 4 dimensions Geographical databases - 2 or 3 dimensions Web searching - 200 or more dimensions Range Query A range query is a search in a dictionary in which the exact key may not be entirely specified. Range queries are the primary interface with multi-D data structures. Range Query Examples:Two Dimensions Search for items based on just one key Search for items based on ranges for all keys Search for items based on a function of several keys: e.g., a circular range query Range Querying in 1-D Range Querying in 1-D with a BST 1-D Range Querying in 2-D 2-D Range Querying in 2-D k-D Trees Split on the next dimension at each succeeding level If building in batch, choose the median along the current dimension at each level guarantees logarithmic height and balanced tree In general, add as in a BST Find in a k-D Tree find(x1,x2, …, xk, root) finds the node which has the given set of keys in it or returns null if there is no such node Find Example Building a 2-D Tree (1/4) Building a 2-D Tree (2/4) Building a 2-D Tree (3/4) Building a 2-D Tree (4/4) k-D Tree 2-D Range Querying in 2-D Trees Range Query in a 2-D Tree print_range(int xlow, xhigh, ylow, yhigh, Node root) { if (root == NULL) return; if ( xlow = root.x root.x = xhigh ylo
您可能关注的文档
- Bioterrorism Agents – PlagueLesson 8.ppt
- Boar Stud BiosecurityMaintaining High Health Status.ppt
- Book 2 Unit 7.ppt
- BookManager.ppt
- Boot Loader.ppt
- Border Gateway Protocol (BGP4).ppt
- Boyan's Indian Dishes.ppt
- Br2+H2 2HBr.ppt
- Briefing How ICD-10 Will Affect Billing.ppt
- Broadway MusicalThe BookChapter 10.ppt
- CSE 690 GPGPULecture 7 Matrix Multiplications.ppt
- cti论坛斑竹双子星赵栋伟我和cti的故事-我和CTI.ppt
- CTL公式与不动点.ppt
- Cultural Beliefs Chapter 4.ppt
- Cutter著者号码表电子版简介.ppt
- C语言程序设计项目一 初始C语言.ppt
- C语言程序设计项目九 课程设计.ppt
- C语言程序设计项目二 分支程序设计.ppt
- dú zuò jìnɡ tínɡ shān 独坐静亭山[唐]李白zhònɡ niǎo ɡāo fēi.ppt
- Daily Language PracticeGrade 10 – Week 9.ppt
文档评论(0)