-
EULER1
说明: Euler 回路问题
.问题描述:
对于给定的图G 和G 中的2 个顶点v 和w,连接顶点v 和w 且经过图中每条边恰好1 次
的路径称为顶点v 和w 之间的1 条Euler 路。当v=w 时得到一条首尾相接的Euler 回路。
.编程任务:
对于给定的图G,编程计算图G 的一条Euler 回路。
.数据输入:
由文件input.txt 给出输入数据。第1 行有2 个正整数n 和m,表示给定的图G 有n 个
顶点和m 条边,顶点编号为1,2,…,n。接下来的m 行中,每行有2 个正整数u,v ,表示
图G 的一条边(u,v) 。
.结果输出:
将编程计算出的Euler 回路输出到文件output.txt 。如果不存在Euler 回路,则输出-1。(Euler circuit problem. Problem description : for a given graph G and G of two vertices v, w, connectivity and vertex v w map through which each side precisely the path to a meeting called vertices v, w between a Euler Road. When v = w be an end-to-end circuit Euler. . Programming tasks : for a given graph G, programming terms of a graph G Euler circuit. . Data input : from the document input.txt given input data. Line 1 has two positive integers n and m, to the graph G with n vertices and m edges and vertices numbered 1, 2, ..., n. Next m OK, every trip has two positive integer u, v, said of a graph G edge (u, v). . Results output : Programming will be calculated by Euler circuit output to a file output.txt. If there is no Euler circuit, the output 1.)
- 2006-03-29 21:31:15下载
- 积分:1
-
a UDP communications for the sample program. Check to make communications data,...
一个用于UDP通讯的示例程序。可以方便的查看通讯数据,以及发送数据。-a UDP communications for the sample program. Check to make communications data, and send data.
- 2022-04-23 20:05:46下载
- 积分:1
-
综合布线的程序设计
说明: 综合布线管理系统,用vb+execel实现,xexcel作为后台数据库存储数据。(integrated wiring management system, with vb execel realized, as xexcel background databases store data.)
- 2005-11-01 14:50:53下载
- 积分:1
-
VB随机 掷骰子示例源码
VB随机 掷骰子示例源码
- 2013-10-24下载
- 积分:1
-
一个完整的IOCP类,可以直接使用,方便!
一个完整的IOCP类,可以直接使用,方便!-A complete IOCP classes can be used directly to facilitate!
- 2022-02-04 06:25:02下载
- 积分:1
-
Setup
This is programm to print labels on paper enveloppe
- 2010-01-14 00:15:00下载
- 积分:1
-
vb5
VB源码:ASCII码转换器源代码,任意字符的ASCII码转换工具,基于VB6的源代码,可以把任意字符(数字、字母、汉字)转化成ascii码,也可以把ascii码还原成最初的字符。(VB source code: ASCII code converter source code of any character ASCII code conversion tools, based on VB6 source code, you can put any characters (numbers, letters, Chinese characters) into ascii code ascii code can also restore the original character .)
- 2015-06-26 11:28:36下载
- 积分:1
-
LgK2SRpv
易语言目录文件操作模块源码,应用程序编程源码,很好的参考资料。(Easy language source code directory file operation module, application programming source code, a good reference.)
- 2013-11-06 10:16:52下载
- 积分:1
-
code
可以计算多个阴影部分的面积,并将计算结果输出为Excel表格(You can calculate the area of multiple shaded parts and output the results to Excel tables.)
- 2020-12-29 15:49:01下载
- 积分:1
-
人工蜂群算法优化无刷直流电机PID控制
说明: 人工蜂群算法优化无刷直流电机PID控制,并采用三种评价指标函数IAE、ITAE、ITSE来进行对比分析(PID control of BLDCM is optimized by artificial bee colony algorithm, and three evaluation index functions IAE, ITAE and itse are used for comparative analysis)
- 2019-12-02 20:15:10下载
- 积分:1