登录
首页 » 算法 » 设有n个人围做一圈,现从某个人开始报数,数到m的人出列,接着从出列的下一个人开始重新报数,数到m的人又出列,如此下去,直到所有人都出列为止。运用循环单链表解决约...

设有n个人围做一圈,现从某个人开始报数,数到m的人出列,接着从出列的下一个人开始重新报数,数到m的人又出列,如此下去,直到所有人都出列为止。运用循环单链表解决约...

于 2022-02-26 发布 文件大小:4.53 kB
0 190
下载积分: 2 下载次数: 1

代码说明:

设有n个人围做一圈,现从某个人开始报数,数到m的人出列,接着从出列的下一个人开始重新报数,数到m的人又出列,如此下去,直到所有人都出列为止。运用循环单链表解决约瑟夫环问题。- Is equipped with n personally to encircle makes, presently starts from some person to count off, leaves ranks the number to the m person, meets from the next person which leaves ranks is starting reto count off, leaves ranks the number to the m person, continue like this, all leaves ranks until all people. Using circulates Shan Lianbiao to solve the Joseph link problem.

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

发表评论

0 个回复

  • LDPC的BP译码
    BP算法是LDPC译码的最优算法,此文件包括BP算法的概率域实现和对数域实现,对于LDPC初学者来说,一定会有帮助
    2022-07-15 09:31:43下载
    积分:1
  • Example program for adjacent_difference
    Example program for adjacent_difference
    2022-04-29 18:29:53下载
    积分:1
  • 按照既定的步长,输入后筛选已有数据 筛选后根据变化,再次筛选...
    按照既定的步长,输入后筛选已有数据 筛选后根据变化,再次筛选-accordance with the established step, the imported data has been selected according to changes after the screening, selection again
    2022-08-31 18:05:04下载
    积分:1
  • achieve a reversal of a linked list, in the entire process completed within a Li...
    实现了一个链表的逆转,全部过程在一个链表内完成!-achieve a reversal of a linked list, in the entire process completed within a List!
    2022-03-11 22:22:36下载
    积分:1
  • Winzip压缩代码
    本代码主要是winzip压缩算法代码,对想研究zip压缩算法的朋友,快些下载吧。
    2022-10-23 14:30:05下载
    积分:1
  • 用动态规划求解0-1背包问题
    应用背景  1、问题描述: 3 2、最优性原理: 3 3、递推关系: 3 4、 改进前的算法 4 4.1 源代码 4 4.2 算法的时间复杂度 6  5、算法的改进: 6 5.1源代码 8 5.2 算法的时间复杂度 11 6、运行结果 11 7、 结论 12 关键技术  1、问题描述:     给定n种物品和一背包。物品i(1
    2022-04-16 21:36:35下载
    积分:1
  • massive mimo Fundamentals, Opportunities and Challenges
    应用背景Massive multiuser MIMO (MISO): ◮ M ≫ K ≫ 1 (think 100 × 10 or 500 × 50) ◮ coherent, but simple, processing ◮ Potential to dramatically improve rate & reliability ◮ Potential to drastically scale down TX power ◮ Not only theory, at least one known testbed (64× ∼10) 关键技术 Massive MIMO Operation Not enough resources for pilots & CSI feedback, so operate in TDD. ◮ On the uplink, ◮ acquire CSI from uplink pilots and/or blindly from data ◮ detect symbols ◮ M ≫ K ⇒ linear processing (MRC, ZF, MMSE) nearly optimal ◮ On the downlink, ◮ use CSI obtained on the uplink ◮ make necessary adjustments based on reciprocity calibration ◮ apply multiuser MIMO precoding ◮ simple precoders desirable (and very good!): MRT, ZF, MMSE, ... ◮ MRC/MRT operation ◮ intracell interference will appear as
    2022-07-07 16:58:08下载
    积分:1
  • 实现 OFDM 使用 Altera 知识产权
    具有高度的集成性 Altera 的可编程逻辑器件 (Pld),设计师可以把市场的时间大幅减少实例化参数信号处理中的知识产权 (IP) 函数先端 ™ 20KE 设备 — — 创建一个系统-在-一-可编程芯片 (SOPC) 解决方案。信号处理 IP MegaCore ® 函数可以用于生成正交频分复用 (OFDM) 通信系统为数字视频广播的发射机、 多通道多点分布服务 (MMDS) 的基站和无线宽带调制解调器。
    2022-06-26 03:09:37下载
    积分:1
  • C语言实践
    通过一个简单的实例,实现一个C语言的经典算法,而且这个代码在我们实践中,也会经常用到,并将其进行模板话,这样就可以随时拿来使并可以将其封装成一个固有的库来实现
    2022-02-05 05:35:21下载
    积分:1
  • 线性方程组的求解
    线性方程组的求解 
    2022-03-19 12:02:35下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载