-
10名海盗抢得了窖藏的100块金子,并打算瓜分
这些战利品。这是一些讲民主的海盗(当然是他们自己特有的民主),他们的习惯
是按下面的方式进行分配:最...
10名海盗抢得了窖藏的100块金子,并打算瓜分
这些战利品。这是一些讲民主的海盗(当然是他们自己特有的民主),他们的习惯
是按下面的方式进行分配:最厉害的一名海盗提出分配方案,然后所有的海盗(包
括提出方案者本人)就此方案进行表决。如果50%或更多的海盗赞同此方案,此方
案就获得通过并据此分配战利品。否则提出方案的海盗将被扔到海里,然后下提名
最厉害的海盗又重复上述过程-10 pirates seize a cache of 100 gold, and plan to divide up these spoils of war. This is the democracy of some pirates (of course it was their own unique democracy), their habits are based on the following manner allocation : one of the most powerful pirate proposed distribution plan, and then all the pirates (including the proposal himself) on this program for a vote. If 50% or more of the pirates agreed to this program, this program was adopted and on the allocation of spoils of war. Otherwise, the proposals will be pirates thrown into the sea, and then nominate the most serious piracy repeated this process
- 2023-06-24 15:35:03下载
- 积分:1
-
XMathLib是一个通用的3D图形数学库。
其中包含两个部分:
XMathLib和XGeomLib。分别处理数学和几何运算。
数学部分包含向量、矩...
XMathLib是一个通用的3D图形数学库。
其中包含两个部分:
XMathLib和XGeomLib。分别处理数学和几何运算。
数学部分包含向量、矩阵、四元数的运算。以及其它的运算。
几何部分包含Box Frustum AABB OBB Ray Line Line-Segment Plan Triangle等的运算。-XMathLib is a generic 3D graphics math. Which consists of two parts : XMathLib and XGeomLib. Separate processing mathematical and geometric computing. The math section includes vector, matrix, quaternion arithmetic. , And other arithmetic. Geometric part consists Box Frustum AABB OBB Ray Line Line-Segme nt Plan Triangle such arithmetic.
- 2023-04-15 11:00:03下载
- 积分:1
-
Matlab应用篇提供了大量的Matlab应用实例。配合前三篇所讲内容,巩固Matlab知识。...
Matlab应用篇提供了大量的Matlab应用实例。配合前三篇所讲内容,巩固Matlab知识。-Matlab Application chapter provides a large number of application examples Matlab. Compatible with the three have said, the consolidation of Matlab knowledge.
- 2022-06-14 23:04:39下载
- 积分:1
-
求解约瑟夫问题。设有n个人围成一个圆圈坐下,对所有围从的人从某个位置开始编号为1,2,3,……,n,从编号为1的人开始报数1,报数依交进行,报数n的人即出列,下...
求解约瑟夫问题。设有n个人围成一个圆圈坐下,对所有围从的人从某个位置开始编号为1,2,3,……,n,从编号为1的人开始报数1,报数依交进行,报数n的人即出列,下一个人从1开始报数,再报数m的人便是第二个出列的人如此重复下去,直到最后一个人出列为止,于是便得到一个出列的顺序,这称之为约瑟夫(Josephu)问题。-solving problems. N individuals have formed a circle to sit down, all right Wai from the start from a position of No. 1, 2, 3, ..., n, for a number of people reported a few, according to several newspaper pay, the newspaper n ie the out, the next person was from the beginning a few , and reported m is the second out of this series continue to repeat until the final out in a series, then get a series out of order, which called Joseph (Josephu) problem.
- 2022-05-21 23:13:13下载
- 积分:1
-
本文是介绍数据结构中的二分查找,比较数等思想及算法的
本文是介绍数据结构中的二分查找,比较数等思想及算法的-this paper is to introduce the data structure to search two hours, a few more ideas and algorithms
- 2022-01-25 20:25:17下载
- 积分:1
-
与清华大学版的《数据结构》匹配二叉树的实现:BITREE1.CPP:为主程序,其中实现了递归算法以及非递归算法的前序遍历,中序遍历,后序遍历。TSTACK1.H...
与清华大学版的《数据结构》匹配二叉树的实现:BITREE1.CPP:为主程序,其中实现了递归算法以及非递归算法的前序遍历,中序遍历,后序遍历。TSTACK1.H: 为头文件,其中定义了一些常量的值,其中也包括了书中第三章的栈的实现,只需要将注解符去掉即可。运行环境为:VC++6 或 TC3-and Tsinghua University version of the "data structure" matching the achievement of a binary tree : BITREE1.CPP : mainly procedures, which achieved a recursive and non- recursive algorithm of algorithms preorder, preorder, after preorder. TSTACK1.H : for the first document, which defines a number of the value of a constant, which also include a third chapter of the book stack the realization simply have the website notes can be removed. Operating environment : VC 6 or TC3
- 2023-08-23 23:30:03下载
- 积分:1
-
大学本科课程设计
操作系统_页式管理(c语言)
大学本科课程设计
操作系统_页式管理(c语言)-undergraduate curriculum design operating system _ page management (c language)
- 2022-03-19 20:23:16下载
- 积分:1
-
最小生成树算法普里姆算法邻接矩阵C.
最小生成树的贪心算法实现
普里姆算法
用邻接矩阵进行图的生成-the minimum spanning tree algorithm Primbetov greedy algorithm adjacent matrix chart generation
- 2023-01-14 12:55:03下载
- 积分:1
-
同时rear和len分别指示环形队列中队尾元素的位置和内含元素的个数。设计相应的入队和出队算法。...
同时rear和len分别指示环形队列中队尾元素的位置和内含元素的个数。设计相应的入队和出队算法。-At the same time, rear and len, respectively, annular instructions squadron tail queue element containing the location and the number of elements. Design corresponding to the team and the team algorithm.
- 2023-03-12 17:10:04下载
- 积分:1
-
ODBC数据库查询源代码 关于数据库中数据的查询 一个非常好的代码...
ODBC数据库查询源代码 关于数据库中数据的查询 一个非常好的代码-ODBC database query on the source database query of data a very good code
- 2023-08-14 02:35:03下载
- 积分:1