Find Jobs
Hire Freelancers

Algo hw7

$30-5000 USD

已关闭
已发布超过 20 年前

$30-5000 USD

货到付款
You need to find degree constrained minimum spanning tree (DCMST) . Degree constrained minimum spanning tree of a graph *G* is the minimum spanning tree in *G* in which the degree of no vertex exceeds a given number *d* (*reminder: degree of a vertex is the number of edges incident to it*). Unfortunately, finding DCMST of a given graph is a much harder problem than finding regular MST. (Why? [**hint:** *Take d=2, does that remind you of another very famous problem?*]) **Input** Your program will read the input data from a file named *[login to view URL]*. The first line of the input file contains three integers *n*, *m* and *d* denoting the number of vertices, number of edges and degree constaint respectively. (1< *n* <=25) Vertices are denoted by numbers between 1 and n. Each of the following *m* lines contains three numbers ui, vi and wi (0 < wi <= 1000) which states that vertex ui is connected to vertex vi by an edge of length wi. You can assume that the input is error-free. _deimos.inp_ 5 6 2 1 5 7 5 2 3 3 5 4 3 4 2 2 4 8 1 4 5 **Output** Output of your program is a file named *[login to view URL]*. The first line of the output file must contain a single integer number giving the total distance of the DCMST of the given graph. Each of the following *n*-1 lines must contain two numbers ui and vi, stating that vertex ui is connected to vertex vi in the resulting DCMST. _deimos.out_ 14 3 4 2 5 3 5 4 1 ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site). ## Platform Linux
项目 ID: 3064797

关于此项目

9提案
远程项目
活跃20 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
9威客以平均价$40 USD来参与此工作竞价
用户头像
See private message.
$24.57 USD 在3天之内
5.0 (158条评论)
6.0
6.0
用户头像
See private message.
$34 USD 在3天之内
4.9 (209条评论)
5.8
5.8
用户头像
See private message.
$63.75 USD 在3天之内
4.9 (61条评论)
5.4
5.4
用户头像
See private message.
$34 USD 在3天之内
4.9 (33条评论)
4.6
4.6
用户头像
See private message.
$55.25 USD 在3天之内
4.7 (24条评论)
4.5
4.5
用户头像
See private message.
$85 USD 在3天之内
5.0 (6条评论)
3.7
3.7
用户头像
See private message.
$25.50 USD 在3天之内
5.0 (20条评论)
3.5
3.5
用户头像
See private message.
$21.25 USD 在3天之内
5.0 (6条评论)
2.9
2.9
用户头像
See private message.
$12.75 USD 在3天之内
0.0 (0条评论)
0.0
0.0

关于客户

TURKEY的国旗
Turkey
0.0
0
会员自7月 9, 2003起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。