-
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
-
Win32Cube
DirectX编写绘制旋转的盒子,便于新手学习如何设置世界矩阵,投影举证(DirectX prepared draw the rotating box, easy for novices to learn how to set the world matrix, projection proof)
- 2013-11-16 22:57:55下载
- 积分:1
-
YouToo
说明: sip开发相关资料集,为sip开发人员提供了很丰富的资料,适合初学者.
- 2010-03-23 17:00:26下载
- 积分:1
-
Space_Invaders
Space Invaders in OpenGL, simple version.
- 2014-05-30 18:36:29下载
- 积分:1
-
VC modbus
VC串口通信modbus协议源代码,测试可用。(modbus通信协议)(VC serial communication protocol source code modbus)
- 2014-06-07 18:26:28下载
- 积分:1
-
BlueTooth4.0
这是蓝牙4.0的规范说明文档,对于了解4.0协议有所帮助。(This is the Bluetooth 4.0 specification document helpful for understanding the 4.0 protocol.)
- 2013-10-14 21:50:52下载
- 积分:1
-
10-11cha
Visual C++实践与提高--数据库开发与工程应用篇 随书代码 希望对用ADO开发的人会有所帮助 这是第10、11章的(Visual C Practice and improve-- database development and application articles with the hope that the code book to use ADO development will be helpful This is the first 10 and 11 of Chapter)
- 2006-11-29 23:06:40下载
- 积分:1
-
ExchangeServer2003PDF(1)
反垃圾邮件技术研究现状及解决办法。用于邮件服务器研究(Anti-Spam)
- 2009-05-31 10:21:02下载
- 积分:1
-
FormViewDemo
在窗体视图(CFormView)中使用控件,VC++精选学习编程源码,很好的参考资料。(In form view (CFormView) using controls, select learning VC++ programming source code, a good reference.)
- 2013-11-26 18:16:41下载
- 积分:1
-
Malloc_Implementaion
详细解析MALLOC/free;New/delete内部实现机制,以及实现。(Detailed analysis MALLOC/free New/delete internal implementation mechanisms, and implementation.)
- 2013-11-17 18:55:32下载
- 积分:1