-
分治法求众数
资源描述给定含有n个元素的多重集合S,每个元素在S中出现的次数称为该元素的重数。多重集S中重数最大的元素称为
众数。例如,S={1,2,2,2,3,5}。多重集S的众数是2,其重数为3。
求众数方法很多,现要求你用分治算法来试一试,并分析其效率。
编程任务:对于给定的由n个自然数组成的多重集S,采用分治算法编程计算S的众数及其重数。
- 2022-03-26 15:28:34下载
- 积分:1
-
语音信号滤波程序(低通、带通、多带通、fft卷积滤波 自己动手做的...
语音信号滤波程序(低通、带通、多带通、fft卷积滤波 自己动手做的-Voice signal filtering process (low-pass, band-pass, multi-band-pass, fft convolution filtering
- 2022-03-26 10:30:54下载
- 积分:1
-
Plane frame finite element program, consideration could be given support nodes a...
平面框架有限元计算程序,可考虑节点和支座位移-Plane frame finite element program, consideration could be given support nodes and displacement
- 2023-01-31 11:05:03下载
- 积分:1
-
数据挖掘中de一个算法 hamster的实例,在c下实现的。简单易懂。...
数据挖掘中de一个算法 hamster的实例,在c下实现的。简单易懂。-de data mining algorithms hamster an example of the c achieved under. Simple and understandable.
- 2023-05-21 10:00:03下载
- 积分:1
-
二维粒子滤波算法程序
粒子滤波是一种基于蒙特卡罗方法的非线性贝叶斯估计方法,适用于非线性非高斯的估计问题。程序中通过一个二维跟踪系统对粒子滤波的跟踪性能进行了仿真,可作为学习粒子滤波的资料。
- 2022-07-03 01:04:30下载
- 积分:1
-
issue a travel home to travel home to drive a car with the minimum of cost yi us...
旅行家问题 一个旅行家想驾驶汽车以最少的费yi 用从一个城市到另一个城市(假设出发时油箱是空的)。给定两个城市之间的距离为D1、汽车油箱的容量为C(以升为单位),每升汽油能行驶的距离为 D2,出发点每升汽油价格P和沿途油站数N(N可以为零),油站i离出发点距离Di,每升汽油价格Pi(i=1,2...N)。计算结果四舍五入至小数点后两位。 如果无法到达目的地,则输出“No Solution"。-issue a travel home to travel home to drive a car with the minimum of cost yi used from one city to another city (assuming starting at the fuel tank was empty). Given the two cities for the distance between D1, car fuel tank capacity of the C (in liters) per liter petrol traveling distance to the D2, the starting point liter gasoline prices P and several petrol stations along the N (N can be zero), PFS i distance from the starting point Di per liter Steam oil prices Pi (i = 1,2 ... N). Calculation results rounded to two decimal places. If unable to reach their destination, the export of "No Solution."
- 2023-09-07 00:25:03下载
- 积分:1
-
拉格朗日函数的源程序代码,可实现多个数的插值运算,最多可达二十个之多...
拉格朗日函数的源程序代码,可实现多个数的插值运算,最多可达二十个之多-Lagrange function of source code, can realize more than a few of the interpolation operator, up to as many as 20
- 2022-03-04 17:07:36下载
- 积分:1
-
"laser land leveling system algorithm research," through matlib simula...
“激光土地平整系统算法研究”,通过matlib模拟了该算法最终效果。-"laser land leveling system algorithm research," through matlib simulation of the algorithm ultimate effect.
- 2022-07-12 02:53:29下载
- 积分:1
-
我的串的连接算法实现
我的串的连接算法实现-Series connectivity algorithm
- 2022-01-22 08:08:05下载
- 积分:1
-
OLED 64X48点阵驱动程序
OLED 64X48点阵驱动程序,包括各种借口SPI,I2C,等等,是经过实测可以用的代码,不明的地方可以问我。 是开发OLED的屏的实用工具。最少50字,应该够了吧。各种驱动都有的。
- 2022-05-18 12:46:32下载
- 积分:1