登录
首页 » Visual C++ » EULER1

EULER1

于 2006-03-29 发布 文件大小:60KB
0 229
下载积分: 1 下载次数: 0

代码说明:

说明:  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.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • v2f_turbulence_model
    v2f turbulence model
    2014-04-11 10:58:15下载
    积分:1
  • SamplePreview
    机器视觉相机中驱动使用例子,在机器视应用中非常有用,适合学习,希望对大家有帮助。(Machine vision camera driver uses the example, depending on the machine is very useful in applications for learn, we want to help.)
    2016-10-10 22:25:25下载
    积分:1
  • PLAYER
    播放器,能播放几种格式的播放器,只是界面比较简单,(Player, can play several formats player, but the interface is relatively simple,)
    2007-12-10 12:51:07下载
    积分:1
  • tongxinlu
    通信录源程序。调试环境为TC2.0或者3.0。运行这个程序需要tc提供的几个头文件。(Example source address book, or 3.0 debugging environment for TC2.0. Tc run the program needs to provide several header files. )
    2011-12-05 15:03:16下载
    积分:1
  • lcd-display-test
    lcd test program which demonstrates the use of the lcd 显示驱动 测试(lcd test program which demonstrates the use of the lcd display driver test)
    2013-08-26 19:36:47下载
    积分:1
  • treeedit
    用于实现VC++中树控件的编辑功能,方便用户对采用树控件实现界面编程。(VC++ editing functions for realizing the tree control, user-friendly programming interface using the tree controls to achieve.)
    2015-10-01 14:12:00下载
    积分:1
  • calendar
    一个小巧的的电子日历,用C++编写,对初级的同学很有帮助(A compact electronic calendar, with C++ Prepared, very helpful for junior students)
    2008-05-20 09:50:52下载
    积分:1
  • GetPixel
    取色源代码,功能满足一般的需求,重在学习,共同努力吧(GetPixel From Windows)
    2009-06-12 10:54:53下载
    积分:1
  • MFC-ODBC
    MFC的ODBC数据库编程,具有简单的数据库操作,希望能有帮助。(The MFC ODBC programming, a simple operations, hoping to help.)
    2015-03-09 21:23:02下载
    积分:1
  • OpenJPEG_PCMDC
    Fast Prediction Compensated Multiple Description Coding for JPEG 2000 The prediction compensated multiple description coding described in the following papers is implemented by modifying the OpenJPEG version of the JPEG 2000 standard: J. Wang, and J. Liang, "Filter banks for prediction-compensated multiple description coding,?submitted to IEEE Trans. Signal Processing, Sept. 2007. Revised: Aug. 2008. PDF J. Wang, and J. Liang, "Filter Banks for Prediction-Compensated Multiple Description Coding," accepted, 2008 Data Compression Conference, Snowbird, Utah, Mar. 2008. PDF http://www.ensc.sfu.ca/~jiel/
    2009-06-17 21:01:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载