-
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
-
UU
说明: c++语言求解稀疏矩阵方程组的ICCG法源程序。参考:《工程电磁场数值计算分析与综合》 附录(Fortran90).(c++ solves sparse matrix equations with the ICCG method.Reference: " Analysis and Synthesis of Numerical Electromagnetic Field ," Appendix (Fortran90).)
- 2010-06-08 18:53:07下载
- 积分:1
-
SPH-for-couette
光滑粒子(SPH)模拟couette流动,代码是根据刘桂荣老师《光滑粒子流体动力学-一种无网格方法》书后的代码改编,较实用,请需要的下载(Smoothed Particle (SPH) simulation couette flow, the code is based on Liu Guirong teacher " smoothed particle hydrodynamics- a non-grid method" Code adaptation of the book, more practical, please download required)
- 2020-10-26 20:09:59下载
- 积分:1
-
xconv2
频域二维卷积算法,通过在频域用fft计算,加速了卷积的实现过程(Frequency domain of two-dimensional convolution algorithm, by calculating the frequency domain using fft and accelerate the realization of the convolution process)
- 2020-11-20 19:59:37下载
- 积分:1
-
temperature
采用逆傅里叶变换方法数值求解热传导的温度场(Inverse Fourier transform method for the numerical solution of heat conduction of the temperature field)
- 2012-08-07 10:06:32下载
- 积分:1
-
Mani
流形学习程序,Isomap,LLE,LTSA,etc,非线性数据降维(manifold learning, Isomap, LLE, LTSA, etc, nonlinear data dimensionality reduction)
- 2009-04-02 09:44:24下载
- 积分:1
-
Transmission-Network-Expans1on
应用遗传算法做电网规划,把遗传算法应用于输电网络规划,提出了基于遗传算
法的输电网络规划模型,以新建线路的投资费用和系统年运
行费用之和最小为目标函数,建立了输电网络规划的数学模型。该模型还考虑了“N-1”事故检验,使得规划方案更加合理。以Garver-6节点系统为例进行优化规划(The application of genetic algorithms to do network planning)
- 2020-07-30 09:18:39下载
- 积分:1
-
SIMPLER-Tao
西安交大陶老师经典SIMPLER算法程序,Fortran编写,对学习CFD很有帮助!(Tao, Xi' an Jiaotong University Teachers classic SIMPLER algorithm program, Fortran write, to learn CFD helpful!)
- 2009-12-29 18:04:15下载
- 积分:1
-
SVD
用matlab仿真,通过不同的方法计算矩阵的SVD分解,并用SVD的方法计算最小二乘问题和进行图像压缩(Matlab simulation, different ways to calculate the matrix SVD decomposition and the SVD method to calculate the least squares problem and the image compression)
- 2012-08-16 12:53:55下载
- 积分:1
-
niulachaoliu(hanfengdianchang)
IEEE14节点接入一个风电场的牛拉法潮流计算MATLAB程序(含线路和风电机组的参数),里面有注解,方便理解。(IEEE14 Nodes System connected to a wind farm cattle MATLAB rafa power flow calculation (including lines and the parameters of the wind turbines), there are annotations, easy to understand)
- 2017-05-05 17:22:11下载
- 积分:1