-
分治法求众数
资源描述给定含有n个元素的多重集合S,每个元素在S中出现的次数称为该元素的重数。多重集S中重数最大的元素称为
众数。例如,S={1,2,2,2,3,5}。多重集S的众数是2,其重数为3。
求众数方法很多,现要求你用分治算法来试一试,并分析其效率。
编程任务:对于给定的由n个自然数组成的多重集S,采用分治算法编程计算S的众数及其重数。
- 2022-03-26 15:28:34下载
- 积分:1
-
serial port
这个解释有点复杂和晦涩。我们的
- 2023-07-22 03:20:03下载
- 积分:1
-
轻松学c++
里面包括了c++的各章的教程和网址内容,可以从很基础的讲起,包括了安装,感受,经典篇,还有就是各种函数,安装库,比如:SDL,xsd,gSOAP,codeblocks的配置等。。。
- 2022-02-26 16:51:08下载
- 积分:1
-
计算光子晶体能带的程序,用matlab编写,比较容易理解!
计算光子晶体能带的程序,用matlab编写,比较容易理解!-photonic crystals can be calculated with the procedures used Matlab to prepare, easier to understand!
- 2022-01-23 10:31:53下载
- 积分:1
-
Gaze tracking/ pupil tracking /eye tracking
提出了一个实时的视线追踪方案。程序可运行,追踪效果好。
An eye tracker gives the pixel position of the center of the pupil in an image whereas a gaze tracker determines where the person is looking on the screen.
↩
Timm and Barth. Accurate eye centre localisation by means of gradients. In Proceedings of the Int. Conference on Computer Theory and Applications (VISAPP), volume 1, pages 125-130, Algarve, Portugal, 2011. INSTICC.
- 2022-07-07 14:42:01下载
- 积分:1
-
对散射函数值的角度计算Mie散射过程,日…
计算mie散射过程中的角度散射函数的值,对研究粒子散射有很大帮助-Mie scattering process of calculating the angle of scattering function value, the study of particle scattering are very helpful
- 2022-09-07 09:30:03下载
- 积分:1
-
贝叶斯分类
类是将一个未知样本分到几个预先已知类的过程。
在众多的分类模型中,应用最为广泛的两种分类模型是决策树模型(Decision Tree Model)和朴素贝叶斯模型(Naive Bayesian Model,NBC)。
- 2022-03-31 03:45:25下载
- 积分:1
-
做世界时钟应用程序必要的文档, 不太好找, 大多资料不准
做世界时钟应用程序必要的文档, 不太好找, 大多资料不准-do world clock application procedures necessary documents, not a good look for mostly closed to information
- 2023-01-07 07:40:03下载
- 积分:1
-
斯奈尔定理求取反射系数
此程序用来求取反射系数。通过左普利兹方程组,知道反射角,给出两层水平地层的横波速度,纵波速度,以及两层的密度,即可来求取反射系数,透射系数。超过临界角时候,使用虚数,并取模作为最终结果。此程序可用来进行地球物理中,反射波,投射波能量、振幅的求取。
- 2023-04-18 05:45:03下载
- 积分:1
-
大数运算,生成两个随机大数,然后计算他们的和,差等
大数运算,生成两个随机大数,然后计算他们的和,差等-Computation of large numbers to generate two random large numbers, and then calculate them and, poor
- 2022-04-24 02:19:26下载
- 积分:1