登录
首页 » matlab » fun_dis_two_point

fun_dis_two_point

于 2020-11-30 发布 文件大小:3KB
0 159
下载积分: 1 下载次数: 0

代码说明:

说明:  used to 计算p0点到直线p1p2的距离(p0 points used to calculate the straight-line distance p1p2)

文件列表:

fun_dis_two_point.m
main.m
readme.doc

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 11087 统逆序对
    说明:  Description 设a[0…n-1]是一个包含n个数的数组,若在ia[j],则称(i, j)为a数组的一个逆序对(inversion)。 比如 有5个逆序对。请采用类似“合并排序算法”的分治思路以O(nlogn)的效率来实现逆序对的统计。 一个n个元素序列的逆序对个数由三部分构成: (1)它的左半部分逆序对的个数,(2)加上右半部分逆序对的个数,(3)再加上左半部分元素大于右半部分元素的数量。 其中前两部分(1)和(2)由递归来实现。要保证算法最后效率O(nlogn),第三部分(3)应该如何实现? 此题请勿采用O(n^2)的简单枚举算法来实现。 并思考如下问题: (1)怎样的数组含有最多的逆序对?最多的又是多少个呢? (2)插入排序的运行时间和数组中逆序对的个数有关系吗?什么关系? 输入格式 第一行:n,表示接下来要输入n个元素,n不超过10000。 第二行:n个元素序列。 输出格式 逆序对的个数。 输入样例 5 2 3 8 6 1 输出样例 5(Set a[0... N-1] is a n array containing n numbers. If there is a [i] > a [j] i n the case of I < j, then (i, j) is a n inversion pair of a array. For example, has five reverse pairs. Please use the idea of "merge sorting algorithm" to achieve the statistics of inverse pairs with O (nlogn) efficiency. The number of inverse pairs of a sequence of n elements consists of three parts: (1) The number of reverse pairs in the left half, (2) the number of reverse pairs in the right half, (3) the number of elements in the left half is greater than that in the right half. The first two parts (1) and (2) are implemented by recursion. To ensure the final efficiency of the algorithm O (nlogn), how should the third part (3) be implemented? Do not use O (n ^ 2) simple enumeration algorithm to solve this problem.)
    2019-01-07 23:52:06下载
    积分:1
  • support
    转子动力学研究中完整的支承松动数值仿真程序(Rotor dynamics study supports the complete relaxation of numerical simulation program)
    2021-02-17 16:39:46下载
    积分:1
  • Gear
    说明:  吉尔数值算法,求解刚性微分方程组,稳定好,收敛好(Gill numerical algorithm, good stability and convergence for solving rigid differential equations)
    2020-07-02 12:40:02下载
    积分:1
  • curl
    利用风速u,v计算海表风应力以及风应力旋度。(Calculation of sea surface wind stress and wind stress curl.)
    2021-01-06 12:48:53下载
    积分:1
  • Hyper
    converts a binary undirected adjacency graph into a hypergraph. The output is a non symmetric matrix where the columns are the vertices and the rows are the hyper edges.
    2013-03-23 09:07:37下载
    积分:1
  • metal0828
    金属表面反射模型算法,用于计算不同金属的偏振反射参数。(Metal surface reflectance model algorithm used to calculate the different metal polarized reflectance parameters.)
    2020-06-29 01:20:01下载
    积分:1
  • FRIC
    abaqus子程序fric摩擦材料clough-duncan模型,二三维通用,已经验证(abaqus subroutine frictional material fric)
    2020-12-18 16:59:11下载
    积分:1
  • RKDG-Euler
    使用龙格-库塔间断Galerkin方法(RKDG)求解无粘流动Euler方程的程序,适用于计算流体力学RKDG方法的学习和研究。(Using the discontinuous Galerkin method (DG) for solving inviscid flow Euler equations procedures applicable to DG methods of study and research.)
    2020-11-27 09:09:29下载
    积分:1
  • Quarter
    四分之一圆柱贴体网格的生成,可以调节大小(Fourth cylindrical body-fitted grid generation, you can adjust the size of the)
    2021-04-03 11:49:05下载
    积分:1
  • Code
    学习fortran的必备,simple算法,拥有完整注释,便于学习交流,是快速学习数值传热学的利器(Learning fortran essential, simple algorithm, with complete notes, facilitate learning exchanges)
    2014-11-10 21:21:02下载
    积分:1
  • 696518资源总数
  • 105554会员总数
  • 2今日下载