资源列表
[数据结构常用算法] p126_2
说明:邮箱问题:150个邮箱,从邮箱2开始,打开所有偶数编号邮箱的门,接着从编号3开始,每隔3个邮箱,若门关着则打开,开着则关闭,随后每隔4个重复此过程,再每隔5个重复此过程,如此下去。判断最后哪些邮箱关着-E-mail questions: 150 mailboxes from the mailbox 2 starts, open the door all the even-numbered mailbox, and then start from number three, every three<李梦渊> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] sorting-and-decision-algorithms
说明:文档包括生成随机数组的方法、简单排序算法的实现以及闰年个数的计算方法,适合初学者掌握简单排序算法的原理,为更进一步学习数据结构打下良好的基础。-Document includes an array of methods to generate a random, simple sorting algorithm and method of calculating the number of leap years, suitable for beginners to master the prin<刘争辉> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] 1
说明:设有n件工作分配给n个人,将工作i分配给第j个人所需要的费用为Ci。试 设计一个算法,为每一个人都分配1件不同的工作,并使总费用达到最小。-suppose n pieces of work are arranged to n persons, it costs Ci to arrange work i to people j. design a algorithm to make it cost least and to make sure that everyone get one diffe<lch> 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] CreateTree
说明:用递归方法创建二叉树的算法,会提示某节点左儿子和右儿子的输入,避免一次输入所有节点导致出错的情形-Recursive method to create the binary tree algorithm, a node will be prompted son left and right inputs son, enter all the nodes to avoid a situation that caused the error<rj> 在 2025-06-18 上传 | 大小:1kb | 下载:0