-
约瑟夫问题有原始的约瑟夫和发展了的约瑟夫两种。 原始的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,他有一条荒唐的法律,将犯人站成一个圆圈,从第S个人开始数起...
约瑟夫问题有原始的约瑟夫和发展了的约瑟夫两种。 原始的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,他有一条荒唐的法律,将犯人站成一个圆圈,从第S个人开始数起,每数到第D个犯人,就拉出来处决,然后再数D个,数到的人再处决―――直到剩下的最后一个可赦免。 发展的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,但这N个人每人持有一个密码,他有一条荒唐的法律,将犯人站成一个圆圈,法官先给出一个密码M,从第S个人开始数起,每数到第M个犯人,就拉出来处决,再根据这个人所持有的密码F,然后再数F个,数到的人再处决,以此类推―――直到剩下的最后一个可赦免。-Joseph problems have original development of the Joseph and Joseph two. The original Joseph Description : Ancient a judge to sentence N inmates of the death penalty, he is a ridiculous law, prisoners station into a circle, from S began a few individuals, every few months to D prisoners, pull out executions, then D, the number of people to be re-executed--- until the last one left to be pardoned. The development of the Joseph Description : Ancient a judge to sentence N inmates of the death penalty, but each individual N holders a password, he is a ridiculous law, prisoners station into a circle, the judges first gave a password M, S individuals from the beginning of several, each of the first few inmates M , pull hi
- 2022-03-11 16:54:39下载
- 积分:1
-
倒置一个单链表,链表是带有头结点的单链表,通过不断在表头插入结点,使链表有序...
倒置一个单链表,链表是带有头结点的单链表,通过不断在表头插入结点,使链表有序-Inversion of a single linked list, linked list is the first node with a single list, through constant head inserted in the table node, so that an orderly list
- 2023-03-15 21:25:04下载
- 积分:1
-
poj1125 binary heap using the Dijkstra algorithm optimization
poj1125用二叉堆优化的Dijkstra算法-poj1125 binary heap using the Dijkstra algorithm optimization
- 2022-07-15 13:25:37下载
- 积分:1
-
create a binary tree using preorder before the establishment of a tree. transmis...
创建一棵二叉树,采用前序遍历的方法建立一棵树,传递的参数为一个指向结点的指针的指针,目的是为了解决传值的问题,输入@符号的时候,表示一棵子树结束线索化二叉树,寻找当前结点的后继结点,寻找当前结点的前驱结点,中序遍历
-create a binary tree using preorder before the establishment of a tree. transmission parameters of a point to the node pointer, the purpose is to solve the problem of traditional values, the importation of the @ symbol, said the end of a tree-binary tree of clues to find the current node"s successor nodes, for the current node precursor nodes, China preorder
- 2023-02-13 17:50:04下载
- 积分:1
-
数据结构中堆栈的具体应用,实现表达式的化简、求值等功能,可以自由确定变量,并且可以给变量赋值。Vc开发,包括了用户操作界面,输入输出清晰。...
数据结构中堆栈的具体应用,实现表达式的化简、求值等功能,可以自由确定变量,并且可以给变量赋值。Vc开发,包括了用户操作界面,输入输出清晰。-stack data structures to the specific applications, simplification of the expression, evaluates functions and the freedom to determine variables, as well as to assign values to variables. Vc development, including the user interface, input and output clear.
- 2022-01-26 01:46:08下载
- 积分:1
-
trigger示范程序
trigger示范程序-trigger example program
- 2022-02-10 13:00:05下载
- 积分:1
-
C++连接ACCESS数据库
该数据库的源代码是本人自己开发,主要对于刚学习数据库的初学者有很多大的帮助,能够很好的帮助你理解数据库的用法。
- 2022-03-19 00:55:03下载
- 积分:1
-
Computer algorithms designed for the design of dynamic programming, you know
计算机算法设计,用于设计贪心算法,你们懂得-Computer algorithms designed for the design of dynamic programming, you know
- 2022-04-07 04:13:44下载
- 积分:1
-
数据库索引功能 C 语言源码
数据库索引功能 C 语言源码-database indexing functions C language source code
- 2022-02-07 23:13:16下载
- 积分:1
-
这是一个用于计算最小生成树的程序。当人们逐个输入每条边的权,再点击生成,便能得到这个图的最小生成树。
这是一个用于计算最小生成树的程序。当人们逐个输入每条边的权,再点击生成,便能得到这个图的最小生成树。-This is a used to calculate the minimum spanning tree procedure. When people enter one by one each side of the right, then click generate, will be able to get this graph minimum spanning tree.
- 2022-04-26 22:15:50下载
- 积分:1