资源列表
[数据结构常用算法] yinbiwenti
说明:在n个银币中有一个是不合格的,不合格的银币比合格银币要轻。 现用天平秤银币,找出不合格的银币,且在最坏情况下秤银币的次数最少 -In n silver in one is unqualified, not qualified silver qualified to light than silver. Now in the balance scale, and find out the unqualified silver coin, and in the worst c<王绍华> 在 2025-06-16 上传 | 大小:133kb | 下载:0
[数据结构常用算法] N-Queens-Algorithm
说明:N皇后问题算法,N皇后问题是关于国际象棋的一个著名问题,本算法给出了其中一种解法-N Queens Algorithm<duanyuxing> 在 2025-06-16 上传 | 大小:90kb | 下载:0
[数据结构常用算法] TopologicalSort
说明:数据结构的课程设计,关于拓扑排序。实现了一个拓扑排序的程序,可以用来交数据结构作业-Data structure course design, on the topological sort. Implements a topological sort of program, data structures can be used to pay operating<CTY> 在 2025-06-16 上传 | 大小:286kb | 下载:0
[数据结构常用算法] operation-of-form
说明:线性表基本操作,插入,删除,查找倒转,新建-Linear basic operation table, insert, delete, find reverse, the new<杨恒杰> 在 2025-06-16 上传 | 大小:2kb | 下载:0
[数据结构常用算法] SX23
说明:编写一个函数sort(int A[],int n),函数的功能是用选择法对数组进行由小到大的排序,其中n为数组A的元素个数。在主函数中输入10个数据,调用函数排序,然后输出排序好的10个数据。(输入数据:6,8,9,1,2,5,4,7,3,18)-Write a function sort (int A [], int n), the function is the function selection method for sorting an array of small to large,<macaihong> 在 2025-06-16 上传 | 大小:2kb | 下载:0
[数据结构常用算法] SX21
说明: 用二分查找法在已排序好的数组中查找输入的数。如果找到了输出该数的下标,否则输出“未找到”。(数组为:1,2,13,24,25,44,57,63,66,78,90,100)。-Using binary search in a sorted array to find a good number of inputs. If you find out the number of subscr ipts, otherwise output " not found." (Array<macaihong> 在 2025-06-16 上传 | 大小:2kb | 下载:0
[数据结构常用算法] bolanjisuanqi
说明:背景 以下是几个标准的表达式: 5 * 2 + -3 5 * (2 + -3) 5 + ((-4 * -5) + (((5 + (6 - 2)) * 7 + ((4 + 2) * (3 - 1)))) 与之等价的波兰表达式为 + * 5 2 -3 * 5 + 2 -3 + 5 + * -4 -5 + * + 5 - 6 2 7 * + 4 2 - 3 1 在普通的表达式中,符号是位于运算对象之间的,而在波兰表达式中,运算符号位于参<vengeance> 在 2025-06-16 上传 | 大小:17kb | 下载:0
[数据结构常用算法] biaodashiqiuzhi
说明:问题描述 带有变量的中缀表达式是常见的数学表达式。如果规定变量由长度不超过 8 个小写字母组成;end为保留字,表示程序段结束;用?表示输出指定变量的值,则可以设计出比较复杂的表达式(即一个可顺序执行语句序列)。例如,如果有如下语句段: abc=10 def=8 c=abc+def abc=abc+5-c*2 ? c ? abc end 则输出为: c=18 abc=-21 注意:为了简化编程实现,运算符只有<vengeance> 在 2025-06-16 上传 | 大小:29kb | 下载:0