登录
首页 » 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 35
下载积分: 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 个回复

  • 48226662485258d178923f42ce4fd9c298750a70c7
    STM32 Project using DMA for data transfert. Code source is provided
    2012-05-03 06:45:16下载
    积分:1
  • T_Features
    使用OPENCV实现的Tamura纹理特征,基于灰度共生矩阵的纹理特征(Use the OPENCV to achieve Tamura texture features based on GLCM texture features)
    2012-06-14 22:48:51下载
    积分:1
  • EEPROM
    本系统是基于mega16的EEPROM的读写,程序可靠!(The system is based on the mega16 the EEPROM read and write, program and reliable!)
    2011-07-08 18:14:03下载
    积分:1
  • Visual_CPP-sql
    Visual_C++ 数据库编程,很不错。(Visual_C++ database programming, very good.)
    2013-03-10 10:12:18下载
    积分:1
  • cprogramming
    C language programming guide.
    2017-12-26 12:53:13下载
    积分:1
  • grasstopmodel
    分布式水文模型TopModel的C#实现(C# implementation of a distributed hydrological model TopModel)
    2012-08-16 13:59:56下载
    积分:1
  • ex6
    exercise 6 ssd 5 or ssd4
    2013-09-25 18:18:37下载
    积分:1
  • oracleOCI
    ORACLE接口超过20个字干尼玛啊,傻逼论坛(oracle hand)
    2013-11-05 10:40:16下载
    积分:1
  • Visual-C-MATLAB-image-processing
    本书系统地介绍了图像处理与识别的基本原理、典型方法和实用技术。全书共分12章,第1章~第6章是图像处理与识别的基础内容,包括图像科学综述、MATLAB语言图像编程、图像增强、图像分割、图像特征提取和图像识别;第7章~第10章是图像处理与识别的工程实例,涵盖了医学图像处理、文字识别和自导引小车路径识别等应用实例,并结合理论算法,提供了大量MATLAB代码程序,以帮助读者掌握如何使用MATLAB语言快速进行算法的仿真、调试和估计等方法。第11章~第12章,是两个综合性较强的实例,分别是Visual C++实现的基于神经网络的文字识别系统和车牌定位系统。 本书附带的光盘给出了各个章节列举的实例的源代码,同时赠送了28个常用数字图像处理算法的Visual C++代码实现。 本书讲解深入浅出,实例程序丰富,注重理论与实践相结合。本书可作为计算机应用、自动化、图像处理与模式识别、机电一体化专业的高年级本科生或研究生的参考书,也可供从事图像处理与识别的研究人员和工程技术人员阅读参考。(This book introduces the basic principles of image processing and recognition of the typical methods and practical skills . The book is divided into 12 chapters , Chapter 1- Chapter 6 is the basis of the content of image processing and recognition , including images scientific overview , MATLAB programming language images, image enhancement, image segmentation, image feature extraction and image recognition Chapter 7- Section Chapter 10 is a project example image processing and recognition , covering the medical image processing, character recognition and self- guided trolley path recognition example , the combination of theory and algorithms, for a lot of MATLAB code procedures to help readers learn how to use MATLAB language fast simulation , debugging and estimation methods algorithm. Chapter 11- Chapter 12 , are two examples of highly integrated , namely Visual C++ implementation based on neural network character recognition system and a license plate positioning system. The book)
    2014-03-26 11:09:37下载
    积分:1
  • txt_pqdif
    pqdif格式文件的阅读代码,可以将pqdif文件转为txt文件(pqdif format file to read the code, you can pqdif files to txt file)
    2011-12-02 09:41:39下载
    积分:1
  • 696518资源总数
  • 104224会员总数
  • 54今日下载