文件名称:ClosetPairs
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:24.72kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
本算法使用分治法求解最近点对问题。事先用O(nlogn)时间对x坐标进行排序,使得所有的点是按x坐标从小到大排好序的(x坐标相同时y坐标小的排前),然后取下标小于n/2属于左边的点集PL,取下标大于n/2属于右边的点集PR,即用O(1)时间就可以将规模为n的问题分解为两个规模为n/2的、同类型的子问题。分割完毕之后就可以采用分治法,分别求出PL和PR中的最近点对,最终通过递归实现。-This algorithm uses divide and conquer to solve the problem closest point. Prior to use O (nlogn) time to sort the x coordinate so that all points are based on x coordinates from small to large sorted (x coordinates with the same y coordinates of the small, the top), and then remove the standard is less than n/2 the set of points belonging to the left PL, remove the standard is greater than n/2 set of points belonging to the right of PR, that is to use O (1) time can be the problem size n divided into two size n/2, the same type The sub-problems. Segmentation can be used after completion of sub-rule method, respectively, find the PL and PR in the last points and eventually through the recursion.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ClosetPairs/ClosetPairs.csproj
ClosetPairs/bin/Debug/ClosetPairs.exe
ClosetPairs/bin/Debug/ClosetPairs.pdb
ClosetPairs/bin/Debug/ClosetPairs.vshost.exe
ClosetPairs/bin/Debug/ClosetPairs.vshost.exe.manifest
ClosetPairs/obj/Debug/ClosetPairs.csproj.FileListAbsolute.txt
ClosetPairs/obj/Debug/ClosetPairs.exe
ClosetPairs/obj/Debug/ClosetPairs.pdb
ClosetPairs/Properties/AssemblyInfo.cs
ClosetPairs/Program.cs
ClosetPairs/obj/Debug/TempPE
ClosetPairs/bin/Debug
ClosetPairs/obj/Debug
ClosetPairs/bin
ClosetPairs/obj
ClosetPairs/Properties
ClosetPairs
ClosetPairs/bin/Debug/ClosetPairs.exe
ClosetPairs/bin/Debug/ClosetPairs.pdb
ClosetPairs/bin/Debug/ClosetPairs.vshost.exe
ClosetPairs/bin/Debug/ClosetPairs.vshost.exe.manifest
ClosetPairs/obj/Debug/ClosetPairs.csproj.FileListAbsolute.txt
ClosetPairs/obj/Debug/ClosetPairs.exe
ClosetPairs/obj/Debug/ClosetPairs.pdb
ClosetPairs/Properties/AssemblyInfo.cs
ClosetPairs/Program.cs
ClosetPairs/obj/Debug/TempPE
ClosetPairs/bin/Debug
ClosetPairs/obj/Debug
ClosetPairs/bin
ClosetPairs/obj
ClosetPairs/Properties
ClosetPairs
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.