登录
首页 » C# » Description : Let numbered 1, 2, ..., n (NGT; 0) clockwise direction by individu...

Description : Let numbered 1, 2, ..., n (NGT; 0) clockwise direction by individu...

于 2023-04-25 发布 文件大小:20.54 kB
0 119
下载积分: 2 下载次数: 1

代码说明:

描述:设编号为1,2,…,n(n>0)个人按顺时针方向围坐一圈,每人持有一个正整数密码。开始时任意给出一个报数上限值m,从第一个人开始顺时针方向自1起顺序报数,报到m时停止报数,抱m的人出列,从他在顺时针方向上的下一个人起重新自1起顺序报数;如此下去,直到所有人全部出列为止。要求设计一个程序模拟此过程,并给出出列人的编号序列。 .算法思想: Jeseph函数是实现问题要求的主要函数,其算法思想是:从1至m对带头结点的单循环链表循环计数,到m时,输出该结点的编号值,,再从该结点的下一个结点起重新自1起循环计数;如此下去,直到单循环链表空时循环过程结束。 -Description : Let numbered 1, 2, ..., n (NGT; 0) clockwise direction by individuals sitting around a circle, each holding a positive integer code. At the beginning of a given arbitrary reported few limits on m, started from the first clockwise direction from the starting sequence reported a few, when they report back m reported few, hold out the m out from the clockwise direction in the next personal re-order starting from a newspaper; This situation continues until all people so far shown up. Asked to design a simulation of this process, and give out the number of people out sequence. . Algorithm thinking : Jeseph function is to seek to achieve the main function of the algorithm is thinking : m f

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

发表评论

0 个回复

  • telphoneDebug
    该程序是在visual c++6.0环境下运行的程序.(procedures in the visual c++ 6.0 environment running program.)
    2006-06-08 09:18:02下载
    积分:1
  • Two-curves-displayed-in-real-time
    C# 两条曲线 实时显示 zedgraph(C# two curves displayed in real time)
    2013-10-21 15:29:29下载
    积分:1
  • Windows下CPU、内存、磁盘以及网速监控demo
    此demo可展现CPU、磁盘、内存的占用和网速(上行和下行)的实时速度 通过Windows的api调用获得数据并显示在程序中 由于不同的机型使用的网卡编号不一样,可通过右键更改网卡编号来获得实时网络速度 可通过右键退出
    2022-01-26 18:28:55下载
    积分:1
  • circle
    利用双缓冲技术实现使得能用鼠标在桌面上轻松画取圆形,(The use of double-buffering technology makes the mouse can be used to easily draw on the desktop to take round,)
    2010-01-05 14:58:14下载
    积分:1
  • CSharpAforgeCamera
    利用Aforge控件调用摄像头,稳定,流畅,不卡顿,可调用多个摄像头,自由扩展。(Aforge control calls using the camera, stable, smooth, no Caton, you can call multiple cameras, the expansion of freedom.)
    2021-03-26 18:29:14下载
    积分:1
  • TypicalListCtrl
    CListCtrl类,可以改变表头的高度,也可以改变表的格式(CListCtrl class, you can change the header height, you can change the format of the table)
    2010-01-29 18:06:23下载
    积分:1
  • MeFrm
    说明:  傅立叶变换在图像处理中的重要作用: (A) 图像增强与图像去噪 绝大部分噪音都是图像的高频分量,通过低通滤波器来滤除高频噪声;边缘也是图像的高频分量,可以通过添加高频分量来增强原始图像的边缘; (B) 图像分割与边缘检测 提取图像高频分量 (C) 图像特征提取 形状特征:傅里叶描述子 纹理特征:直接通过傅里叶系数来计算纹理特征 其他特征:将提取的特征值进行傅里叶变换来使特征具有平移、伸缩、旋转不变性 (D ) 图像压缩 可以直接通过傅里叶系数来压缩数据;常用的离散余弦变换是傅立叶变换的实变换; (Fourier transform in the important role of image processing: (A) image enhancement and image denoising Most of all images of high frequency noise by low pass filter to filter out high frequency noise edge is the image of the high frequency components can be enhanced by adding high frequency components to the edge of the original image (B) Image segmentation and edge detection High frequency components extracted image (C) image feature extraction Shape features: Fourier descriptors Texture: directly through the Fourier coefficients to calculate the texture features Other features: The characteristic value extracted by Fourier transform to the characteristics of translation, scaling, rotation invariance (D) image compression Fourier coefficients can be directly compressed data commonly used discrete cosine transform is the Fourier transform of the real transformation 朗读显示对应的拉丁字符的拼音)
    2011-03-28 19:06:27下载
    积分:1
  • TCP-Passivea
    Tcp/ip telecomunicate system
    2013-10-31 21:26:03下载
    积分:1
  • 4CPM
    实现完整的4CPM(h=1/2)调制解调程序,包括消息序列生成,串并转换,升抽样成形滤波,数字上变频,多项式非线性效应,AWGN信道,到接收端数字下变频,降采样,匹配滤波,接收端基带信号星座图。(Message sequence generation, serial-parallel conversion, up sampling shaping filter, digital upconversion, polynomial nonlinear effects, AWGN channel, to the receiver digital down-conversion, down-sampling, the matched filter, the receiving end the baseband signal constellation.)
    2021-04-08 11:09:00下载
    积分:1
  • ICP
    说明:  实现二维图像配准,需要结合opencv使用具体配置(To achieve two-dimensional image registration, you need to use specific configuration in conjunction with opencv)
    2019-03-05 16:40:08下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载