-和尚-

导航

2012年8月1日 #

The Bottom of a Graph

摘要: 题目:DescriptionWe will use the following (standard) definitions from graph theory. LetVbe a nonempty and finite set, its elements being called vertices (or nodes). LetEbe a subset of the Cartesian productVx V, its elements being called edges. ThenG=(V,E)is called a directed graph.Letnbe a positive in 阅读全文

posted @ 2012-08-01 18:44 -和尚- 阅读(153) 评论(0) 推荐(0) 编辑

2012年7月31日 #

Cow Relays

摘要: DescriptionFor their physical fitness program,N(2<=N<= 1,000,000) cows have decided to run a relay race using theT(2<=T<= 100) cow trails throughout the pasture.Each trail connects two different intersections (1<=I1i<= 1,000; 1<=I2i<= 1,000), each of which is the termination 阅读全文

posted @ 2012-07-31 13:38 -和尚- 阅读(104) 评论(0) 推荐(0) 编辑

Slim Span

摘要: 题目:DescriptionGiven an undirected weighted graphG, you should find one of spanning trees specified as follows.The graphGis an ordered pair (V,E), whereVis a set of vertices {v1,v2, …,vn} andEis a set of undirected edges {e1,e2, …,em}. Each edgee∈Ehas its weightw(e).A spanning treeTis a tree (a conne 阅读全文

posted @ 2012-07-31 13:33 -和尚- 阅读(126) 评论(0) 推荐(0) 编辑