登录
首页 » Visual C++ » EULER1

EULER1

于 2006-03-29 发布 文件大小:60KB
0 225
下载积分: 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 个回复

  • Reporter
    绘图 c# 绘制饼图 柱状图 折线图 只需很简单的调用即可 属性可以随意设置(C#)
    2009-09-09 14:16:42下载
    积分:1
  • 11
    说明:  这是一个可以在vc环境下使用的c语言 其功能是实现了人工智能里传教士与野人过河的经典问题(This is an environment in vc using c-language whose function is to achieve artificial intelligence to cross the river where missionaries and savages a classic problem of)
    2009-12-28 21:16:38下载
    积分:1
  • RefrainChild
    限定MDI子框架窗口的最大、最小尺寸,C++精选学习源码,很好的参考资料。(Defining the maximum, minimum size MDI sub frame window, select learning C++ source code, a good reference.)
    2013-11-27 07:27:10下载
    积分:1
  • TCP-UDP
    TCP与UDP源代码测试程序,方便初学者观看,理解。用VC写的,容易读懂。。(TCP and UDP code for ABC to use)
    2012-06-17 11:38:04下载
    积分:1
  • tcpserver
    一个能够接受TCP/IP连接的服务器源代码(One can accept TCP/IP connection the server source code)
    2011-04-26 10:52:28下载
    积分:1
  • calculator
    计算器(界面)对于MFC初学者来说非常好,很容易入手(Calculator (interface) is very good for MFC beginners, it is easy to start)
    2011-05-29 23:29:39下载
    积分:1
  • Joker-Hacks-Dayz-Sa
    Another Dayz SA hack with script r
    2016-02-05 14:06:38下载
    积分:1
  • splinewidget
    VTK对格式为DICOM医学数据重建后,利用VTKsplinewidget类对其作进行曲线,并能利用鼠标对其人机操作。(VTK format for DICOM medical data reconstruction after VTKsplinewidget class its for the curve, and can use the mouse to its man-machine.)
    2020-10-27 10:29:59下载
    积分:1
  • zi-xing-che-Proteus
    电动自行车仿真,可以控制速度,自行车的前进后退等功能,可以加速减速,利用proteus进行了仿真(Electric bicycle simulation, you can control the speed, bike forward and backward functions, you can speed reducer, use proteus simulation)
    2013-05-31 09:05:32下载
    积分:1
  • MTGCCombobox
    Combo box control with autocomplete
    2013-11-16 18:08:40下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载