登录
首页 » Visual C++ » EULER1

EULER1

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

  • 基于噪声点检测的中值滤波方法_马学磊
    图像识别中,对噪点的检测的中值滤波的方法。(Image recognition, median filtering method for the noise detection)
    2017-07-06 16:20:55下载
    积分:1
  • pigdjas67
    By throwing an exception to indicate the occurrence of an error(By throwing an exception to indicate the occurrence of an erro)
    2018-12-25 13:29:14下载
    积分:1
  • serial
    串口驱动程序,可替换NT下的串口驱动程序 (Serial dirver which can replace serial driver in NT)
    2021-04-20 23:48:49下载
    积分:1
  • chongzai
    重载+ += =实现字符串的连接、赋值自加等运算(Overloading++ = = to achieve the connection string, assignment,. . . . . . . .)
    2011-11-19 14:30:41下载
    积分:1
  • the4th
    利用socket实现简单文件传输,mfc实现,很简单(Simple file transfer using socket, mfc achieve)
    2013-10-20 15:37:24下载
    积分:1
  • testVTK_ITK
    VTK8.0,ITK联合编译测试代码,编译环境VS2017,采用C++语言,内含属性表,无需使用CMake进行编译,能够成功运行(VTK and ITK compile and test code)
    2020-07-10 15:18:56下载
    积分:1
  • TRACERT
    支持IPv4和IPv6的路由探测代码,可以用来开发网络探测工具(traceroute in IPv4 and IPv6 network)
    2021-03-31 16:09:09下载
    积分:1
  • eTask
    mfc数据库访问、list,实现任务加入和删除和提醒,桌面停驻的小程序,用来做备忘的。(using mdb and list control to inform you of the task you noted.)
    2011-11-20 12:05:00下载
    积分:1
  • Compiler-C
    compiler on c++ good luck
    2014-01-23 00:45:17下载
    积分:1
  • PicProcess
    说明:  一个数字图像处理源码,实现了jpeg,bmp,tiff,png,gif等多种图像格式的读取,边缘检测,fft变换,图像形态变化等功能(A source of digital image processing to achieve a jpeg, bmp, tiff, png, gif image formats such as read, edge detection, fft transform, image features such as morphological changes)
    2008-11-29 09:49:41下载
    积分:1
  • 696516资源总数
  • 106618会员总数
  • 4今日下载