- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
分而治之算法---距离最近的点对(Divide and conquer algorithm -- nearest point pair)
分而治之算法---距离最近的点对(Divide and conquer algorithm -- nearest point pair)
Divide and rule algorithm --- the nearest point of the.Txt marriage is a keyboard, too many orders and rules; love is the mouse, one click. Men are more important than memory in the host computer; women are like monitors; everything can be seen. Nearest point pair
Given n points (Xi, Yi) (1 i n), which requires to find the nearest two points.
Example 14-7 assume that n holes are drilled on a piece of metal. If the hole is too close, the metal may break. If we know the minimum distance between two holes, we can estimate the probability of metal fracture. The minimum distance problem is, in fact, the nearest point pair problem.
By checking all n (n- 1) / 2 pairs, and calculating the distance between each pair, the closest pair of points can be found. The time required for this method is (N2). We call this method direct method. The pseudo code of divide and conquer algorithm is given in figure 14-13. The algorithm for small problems by direct method, and for large problems first divide it into two smaller problems, one problem (called A) the size of n /2 is connected, another problem (called B) the size of the /2 is connected to n. Initially, the closest pair of points may belong to one of the following three cases: 1 in both A (i.e., nearest point to A); 2 in B; 3) one at A, one in B. Assuming that the nearest pair is determined according to the three cases, the closest point pair is the smallest pair of points in all three cases. In the first case, the A can be recursively solved, and in the second case the B can be recursively solved.
If (n smaller) {direct method for nearest point pair
R, e, t, u, R, N;}
N / large
Divide a point set into two roughly equal parts, A and B
Determine the closest point pair in A and B
Determine the closest point in A and another point in B
From the three pairs of points obtained above, find the smallest pair of points
Figure 14-13 looks for the closest point pair
To de
您可能关注的文档
- 企业借贷的法律风险及规避方法(Legal risks and avoidance methods of enterprise loans).doc
- 企业内部银行(Intra firm banking).doc
- 企业内部审计及内部控制与财务风险管理(上海,11月16-17日)(Enterprise internal audit and internal control and financial risk management (Shanghai, November, 16-17)).doc
- 企业兵法管理离我们很近(The management of enterprise's art of war is very close to us).doc
- 企业创新管理(Enterprise innovation management).doc
- 企业厘革用锯不必刀(Don't change with cutting knife Enterprises).doc
- 企业变革中应警惕非正式组织的紧密化(The vigilance of informal organizations should be emphasized in enterprise change).doc
- 企业发展与核心竞争力(Enterprise development and core competence).doc
- 企业凭什么整合全球资源(How can companies integrate global resources).doc
- 企业呼唤工资正常增长机制(Enterprises call for normal wage growth mechanism).doc
- 2026年崇左中电环保有限公司招聘备考题库及一套完整答案详解.docx
- 2026年厦门市大同中学非在编教师招聘备考题库参考答案详解.docx
- 2026年国联汽车动力电池研究院有限责任公司招聘备考题库及一套参考答案详解.docx
- 2026年天津市静海区所属部分国有企业面向社会公开招聘工作人员备考题库及参考答案详解1套.docx
- 2026年宁波市奉化区甬台众创小镇开发建设有限公司公开招聘工作人员备考题库及1套参考答案详解.docx
- 2026年国家电投集团浙江电力有限公司招聘备考题库及答案详解1套.docx
- 2026年博州联通小营盘营业厅招聘备考题库及完整答案详解一套.docx
- 2026年国家电投集团黄河上游水电开发有限责任公司招聘备考题库及参考答案详解一套.docx
- 2026年大冶有色设计研究院有限公司招聘备考题库及1套完整答案详解.docx
- 2026年四川紫璞科技有限责任公司招聘备考题库及答案详解参考.docx
原创力文档


文档评论(0)