-
朴素贝叶斯分类器
这是一个关于朴素贝叶斯分类器的算法实现,用java实现的,同时含有详尽的使用说明,在代码中也有详尽的注释,帮助使用者能够看懂代码,并自己尝试实现自己的朴素贝叶斯分配器。 &nbs
- 2022-09-05 23:20:03下载
- 积分:1
-
VB四则运算
vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算vb程序设计——四则运算
- 2022-01-25 16:40:47下载
- 积分:1
-
Discrete-Continuous Optimization for Multi-Target Tracking
A matlab program for multi-target tracking,The problem of multi-target tracking is comprised of two distinct, but tightly coupled challenges: (i) the naturally discrete
problem of data association, i.e. assigning image observations to the appropriate target; (ii) the naturally continuous
problem of trajectory estimation, i.e. recovering the trajectories of all targets. To go beyond simple greedy solutions for data association, recent approaches often
- 2023-01-02 11:40:18下载
- 积分:1
-
Gaussian Elimination Solution equation c procedures
高斯消去解方程组c++程序-Gaussian Elimination Solution equation c procedures
- 2022-11-18 19:05:03下载
- 积分:1
-
Linear programming simplex algorithm
线性规划单纯形算法,包括子函数和主程序,用c++编写-Linear programming simplex algorithm
- 2023-06-18 16:40:03下载
- 积分:1
-
FCT-VOf 2D code which helps you to simulate convection, rotation & shear flow test case
该程序用FORTRAN语言编写,用通量修正输运算法模拟二维自由表面流动。该程序可以模拟开孔方形和圆形对流试验箱以及开槽圆形试验箱的剪切试验箱和旋转试验箱。
- 2022-05-22 03:30:05下载
- 积分:1
-
统计逆序对
资源描述
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
- 2022-01-25 23:20:18下载
- 积分:1
-
一个用于蛋白质序列分类的profile hmm的Perl代码
一个用于蛋白质序列分类的profile hmm的Perl代码-One for protein sequence classification of the Perl code profile hmm
- 2022-10-26 00:10:03下载
- 积分:1
-
C#,DotNet FrameWork2.0,计算4张牌四则混合运算以后等于24的算法源码...
C#,DotNet FrameWork2.0,计算4张牌四则混合运算以后等于24的算法源码-C#, Delegate FrameWork2.0. Calculation four licensing mixed four to 24 after the operator of the algorithm source code
- 2022-01-29 03:57:32下载
- 积分:1
-
运行没问题的apriori分布式程序
该代码已经部署到hadoop平台上,运行没问题,但是reduce部分不是很完善,无法输出频繁项集,希望高手能帮忙解决一下,实在做不下去了,万分感谢!!
- 2022-02-03 16:22:26下载
- 积分:1