文件名称:zhongshu
-
所属分类:
- 标签属性:
- 上传时间:2014-10-22
-
文件大小:6.08kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
给定含有n个元素的多重集合S,每个元素在S中出现的次数称为该元素的重数。多重集S中重数最大的元素称为众数。例,S={1,2,2,2,3,5}。多重集S的众数是2,其重数是3。
2.算法设计
对于给定的n个自然数组成的多重集S,计算S的众数及其重数。
-Given n elements containing multiple set S, the number of times each element appears in the S called the multiplicity of the element. Multiple sets the maximum number of S in heavy elements called plural. Embodiment, S = {1,2,2,2,3,5}. Multiple sets the mode S is 2, and its multiplicity is 3.
2 Algorithm Design
For a given multiset S n natural numbers composed of plural computing S and multiplicity.
2.算法设计
对于给定的n个自然数组成的多重集S,计算S的众数及其重数。
-Given n elements containing multiple set S, the number of times each element appears in the S called the multiplicity of the element. Multiple sets the maximum number of S in heavy elements called plural. Embodiment, S = {1,2,2,2,3,5}. Multiple sets the mode S is 2, and its multiplicity is 3.
2 Algorithm Design
For a given multiset S n natural numbers composed of plural computing S and multiplicity.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lab2_1.dsw
lab2_1.ncb
lab2_1.opt
lab2_1.plg
lab2_1.cpp
lab2_1.dsp
lab2_1.ncb
lab2_1.opt
lab2_1.plg
lab2_1.cpp
lab2_1.dsp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.