-
该程序用贪心算法来求解最小生成树问题 采用贪婪准则:每次选择边权值最小边。如果该边加入后不构成环,则加入。...
该程序用贪心算法来求解最小生成树问题 采用贪婪准则:每次选择边权值最小边。如果该边加入后不构成环,则加入。-procedures with the greedy algorithm to solve the problem using the minimum spanning tree greedy guidelines : each side the right to choose the minimum value side. If the edge after the entry does not constitute a part, while accession.
- 2022-06-11 11:33:35下载
- 积分:1
-
编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数),一开始人选一个正整数作为报数上限m,从第一个人开始按顺时针方向从自1开始顺序报数,...
编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数),一开始人选一个正整数作为报数上限m,从第一个人开始按顺时针方向从自1开始顺序报数,报道m时停止报数。报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止,设计一个程序求出出列顺序。采用单向循环链表模拟此过程,按照出列的顺序印出各人的编号测试数据:m的初值为20;n=7,7个人的密码依次为:3,1,7,2,4,8,4,首先m的值为6(正确的出列顺序应为6,1,4,7,2,3,5)-No. 1, 2, ..., n n clockwise direction by individuals sitting around a circle, each holding a password (positive integers), a candidate started as a positive integers m ceiling on the number of reported from the first individuals to embark on the clockwise direction from the start sequence from a few newspaper reports m reportedly stopped a few. M reported out of the list of his password as a new value m, from the clockwise direction on the next re-started from a few reported so on, until all out all out, the design of a procedure sought out the order out. Listless one-cycle simulation process and follow the sequence shown in the numbers printed each test data : m for the initial 20; N = 7,7 personal passwords were : 3,1,7,2,4,8
- 2022-01-24 15:11:40下载
- 积分:1
-
航空定票系统
有退票定票 远程打印
报表显示 asp .net运行环境...
航空定票系统
有退票定票 远程打印
报表显示 asp .net运行环境-air ticket system for ticket refunds Remote Print statements asp. Net operating environment
- 2022-01-27 18:06:14下载
- 积分:1
-
windows c++源代码
这是初学VC++基本实例,从简单的语法实例到复杂的窗口程序,希望对初学者有帮助。windows c++源代码.zIP压缩文件.
- 2022-03-24 12:37:39下载
- 积分:1
-
一个可以实现加减乘除以及带括号的计算器,用数据结构知识中的数栈编写而成...
一个可以实现加减乘除以及带括号的计算器,用数据结构知识中的数栈编写而成-A calculation can be achieved as well as the brackets with the calculator, and knowledge of data structure has been prepared by a number of stack
- 2022-04-14 17:48:18下载
- 积分:1
-
这是一个java语言编写的,一个小小的applet程序,可以自动生成饼图。希望给想学习的同学有个小小的帮助。...
这是一个java语言编写的,一个小小的applet程序,可以自动生成饼图。希望给想学习的同学有个小小的帮助。-This is a java language, and a small applet program that can automatically generate a pie chart. Hope there classmates to want to learn a little help.
- 2022-04-22 01:10:24下载
- 积分:1
-
用vc++开发的9×9数独游戏的计算机程序
用vc++开发的9×9数独游戏的计算机程序-Vc++ development with the 9 × 9 Sudoku computer program
- 2022-03-06 07:18:45下载
- 积分:1
-
C#写的磁卡读写程序
C#开发支持HCE300磁卡读写器程序,可用于磁卡的加密读写。不支持多线程,适当修改后可支持。VS2010下开发,共享出来,供需要的人使用。
- 2022-08-20 18:13:08下载
- 积分:1
-
C经典程序,不紧对学C的有帮助,对所有程序员都有帮助哦
C经典程序,不紧对学C的有帮助,对所有程序员都有帮助哦-C classic procedures, a lack of C for school help to all programmers have helped oh
- 2022-01-27 09:58:05下载
- 积分:1
-
年大宇,大宇和# 39;财务总监问我写的一个小软件…
当年在大宇时,大宇的财务部主任托我写的一个小软件,好像后来网星的财务部主管也用这个小软件。输入栏要输入的是计税金额。-year in Daewoo, Daewoo"s financial director asked me to write a small software, like the Star network was the financial director also used the small software. Input column to the admission of taxable amount.
- 2022-02-04 23:00:05下载
- 积分:1