-
5
说明:
★问题描述:
给出平面上的N 个二维点,求出距离最小的2 个点对。本题中距离定义为他们的直
线距离。例如(0,0) (3,4)的距离为5.
★数据输入:
有多组数据,对于每组数据,第一行是一个数字N 表示点的个数。N=0 的时候说明
输入结束。之后N 行,每行有2 个浮点数x_i,y_i 表示第i 个点的坐标。(1<=N<=10000
0,0<=|x_i|,|y_i|<=10^9)
★结果输出:
输出一个浮点数,表示最近点对的距离除以2,保留2 位小数(四舍五入)。
- 2013-12-03 14:57:02下载
- 积分:1
-
Landweber
电容层析成像的landweber算法演示程序,并有详细的说明。(The capacitive tomography of the landweber algorithm demonstrates the program and has a detailed description.)
- 2020-12-31 09:59:04下载
- 积分:1
-
SP_d
利用Dijkstra算法计算最短有向路小程序(Dijkstra algorithm using the shortest way there is a small program to)
- 2011-06-14 16:00:28下载
- 积分:1
-
1_2_3维均值聚类
简单地实现了一、二、三维的K均值聚类,效果还不错,适合初步学习模式识别的同志们(Simple implementation of one, two, three - dimensional k-means clustering, the effect is not bad, it is suitable for the initial learning pattern recognition comrades)
- 2020-07-02 04:00:01下载
- 积分:1
-
Soct
假设有一个能装入总体积为T的背包和n件体积分别为w1 , w2 , … , wn 的物品,能否从n件物品中挑选若干件恰好装满背包,即使w1 +w2 + … + wn=T,要求找出所有满足上述条件的解。例如:当T=10,各件物品的体积{1,8,4,3,5,2}时,可找到下列4组解:(1,4,3,2),(1,4,5),(8,2),(3,5,2)。
[需求分析](Suppose there are a load of the backpack of the total volume of T and n volumes were w1, w2, ... wn items, whether selected from n items a number of exactly filled backpack, even if w1+w2+ ...+ wn = T, find out the solution of all the above conditions are met. For example: when T = 10, the volume of items {1,8,4,3,5,2}, can be found in the following four solutions: (1,4,3,2), (1,4,5 ), (8,2), (3,5,2). [Needs Analysis])
- 2012-06-14 16:25:10下载
- 积分:1
-
[muchong.com]MATLAB在计算物理中的应用
用Matlab程序求解计算物理中使用到的方程,包括:薛定谔方程、傅立叶变换、波函数求解等等(Matlab file is used to describe and solve the equations in the computational physics, including, Schrodinger equation, Fourier transform, wave function solution, etc.)
- 2018-05-30 21:37:36下载
- 积分:1
-
cylinder
说明: 经典圆柱绕流算例,基于palabos开源软件,计算结果非常好(cylinder flow with palabos)
- 2020-05-11 10:14:35下载
- 积分:1
-
标准方腔流动
用来计算流体力学中非常典型的不可压缩方腔流动。包含MATLAB程序绘制流函数图。(It is used to calculate the incompressible flow of a typical square cavity in fluid mechanics. Contains MATLAB programs to draw stream function diagrams.)
- 2017-09-10 18:32:53下载
- 积分:1
-
qiuni
C语言矩阵求逆模块,输入矩阵调用此模块即可求出对应的逆矩阵(C language matrix inversion module)
- 2013-12-16 21:18:18下载
- 积分:1
-
drilled-hole-PBG
xfdtd中用于计算光子晶体PBG的算例(example used for PBG calculation in xfdtd)
- 2011-11-21 23:28:40下载
- 积分:1