考察例1 4 - 8中的1 4个点。A中的最近点对为(b,h),其距离约为0 . 3 1 6。B中最近点对为 (f, j),其距离为0 . 3,因此= 0 . 3。当考察 是否存在第三类点时,除d, g, i, l, m 以外 的点均被淘汰,因为它们距分割线x= 1的 距离≥ 。RA ={d, i, m},RB= {g, l},由 于d 和m 的比较区中没有点,只需考察i 即可。i 的比较区中仅含点l。计算i 和l 的距离,发现它小于,因此(i, l) 是最近
标签:
上传时间: 2013-12-03
上传用户:66666
邻接矩阵类的根是A d j a c e n c y W D i g r a p h,因此从这个类开始。程序1 2 - 1给出了类的描述。程 序中,先用程序1 - 1 3中函数Make2DArray 为二组数组a 分配空间,然后对数组a 初始化,以描述 一个n 顶点、没有边的图的邻接矩阵,其复杂性为( n2 )。该代码没有捕获可能由M a k e 2 D A r r a y 引发的异常。在析构函数中调用了程序1 - 1 4中的二维数组释放函数D e l e t e 2 D
标签: 矩阵
上传时间: 2013-12-21
上传用户:lanjisu111
第二个搜索函数为私有成员函数S a v e S e a r c h,由插入和删除操作来调用。S a v e S e a r c h不仅 包含了S e a r c h的功能,而且可把每一级中遇到的最后一个节点存放在数组l a s t之中
上传时间: 2015-10-11
上传用户:zm7516678
C++/CLI in Action is a practical guide that will help you breathe new life into your legacy C++ programs. The book begins with a concise C++/CLI tutorial. It then quickly moves to the key themes of native/managed code interop and mixed-mode programming. You抣l learn to take advantage of GUI frameworks like Windows Forms and WPF while keeping your native C++ business logic. The book also covers methods for accessing C# or VB.NET components and libraries. Written for readers with a working knowledge of C++.
标签: practical breathe Action legacy
上传时间: 2015-10-17
上传用户:wendy15
E:\VISUAL C++MFC扩展编程实例 实例35 添加帮助菜单项,在本例中将向应用程序中的H e l p菜单中添加C o n t e n t s和S e a r c h 菜单项。
上传时间: 2014-01-09
上传用户:541657925
SPSS是Statistical Product and Service Solutions的英文缩写,即:统计产品与 服务解决方案。 l它是目前世界上流行的三大统计分析软 件之一。 l我们现在讲授的主要是SPSS for Windows 13.0版。
标签: Statistical Solutions Product Service
上传时间: 2013-12-26
上传用户:15736969615
acm HDOJ 1051WoodenSticks Description: There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. The setup times are associated with cleaning operations and changing tools and shapes in the machine. The setup times of the woodworking machine are given as follows: (a) The setup time for the first wooden stick is 1 minute. (b) Right after processing a stick of length l and weight w , the machine will need no setup time for a stick of length l and weight w if l<=l and w<=w . Otherwise, it will need 1 minute for setup.
标签: WoodenSticks Description length wooden
上传时间: 2014-03-08
上传用户:netwolf
人件集:人性化的软件开发(中文版,Larry L[1]. Constantine 著) 人件领域中的经典著作。探讨软件开发过程中人的因素。
标签: 软件开发
上传时间: 2015-10-19
上传用户:rishian
代入法的启发示搜索 我的代码实现是:按照自然语言各字母出现频率的大小从高到低(已经有人作国统计分析了)先生成一张字母出现频率统计表(A)--------(e),(t,a,o,i,n,s,h,r),(d,l),(c,u,m,w,f,g,y,p,b),(v,k,j,x,q,z) ,再对密文字母计算频率,并按频率从高到低生成一张输入密文字母的统计表(B),通过两张表的对应关系,不断用A中的字母去替换B中的字母,搜索不成功时就回退,在这里回朔是一个关键。
上传时间: 2015-10-24
上传用户:wanqunsheng
实现一个类,描述二维平面的直线Line。 描述属性:私有属性 直线所通过的点:Point p; 直线的斜率:double m 实现方法: 直线的构建; 返回直线的两个属性; 返回直线在Y轴上的截距:yIntercept ; 判断两条直线是否相等; 显示直线的内容:y = mx + b isParallelTo(Line line2),判断本直线与直线line2是否平行; isPeroendicularTo(Line line2),判断本直线与直线line2是否垂直; translate(double dx, double dy),将直线向右移动dx单位,向上移动dy单位; rarate(double ta),将直线沿逆时针方向旋转ta度
标签:
上传时间: 2015-10-24
上传用户:Divine