摘要: Problem F: Heavy Cycle EdgesGiven an undirected graph with edge weights, a minimum spanning tree is a subset of edges of minimum total weight such that any two nodes are connected by some path containing only these edges. A popular algorithm for finding the minimum spanning tree T in a graph proceed 阅读全文
posted @ 2013-10-18 01:50 Ramanujan 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Heavy CargoBig Johnsson Trucks Inc. is a company specialized in manufacturing big trucks. Their latest model, the Godzilla V12, is so big that the amount of cargo you can transport with it is never limited by the truck itself. It is only limited by the weight restrictions that apply for the roads a. 阅读全文
posted @ 2013-10-18 01:46 Ramanujan 阅读(291) 评论(0) 推荐(0) 编辑
摘要: Given an undirected weighted graph G , you should find one of spanning trees specified as follows.The graph G is an ordered pair (V, E) , where V is a set of vertices {v1, v2,..., vn} and E is a set of undirected edges {e1, e2,..., em} . Each edge e E has its weight w(e) .A spanning tree T is a tre. 阅读全文
posted @ 2013-10-18 01:44 Ramanujan 阅读(255) 评论(0) 推荐(0) 编辑
摘要: F: Full Tank?After going through the receipts from your car trip through Europe this summer, you realised that the gas prices varied between the cities you visited. Maybe you could have saved some money if you were a bit more clever about where you filled your fuel?To help other tourists (and save . 阅读全文
posted @ 2013-10-18 01:41 Ramanujan 阅读(326) 评论(0) 推荐(0) 编辑
摘要: WormholesIn the year 2163, wormholes were discovered. A wormhole is a subspace tunnel through space and time connecting two star systems. Wormholes have a few peculiar properties:Wormholes are one-way only.The time it takes to travel through a wormhole is negligible.A wormhole has two end points, e. 阅读全文
posted @ 2013-10-18 01:33 Ramanujan 阅读(189) 评论(0) 推荐(0) 编辑