是可以的
所在版块:求学狮城 发贴时间:2007-09-21 11:32

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
In your case:

MC(1) = 3;
MC(2) = 2;
MC(3) = 1;
MC(4) = 2;
MC(5) = 5;

min cut means the minimal number of cuts to disconnect the source node from the sink node, so for node 1, we only need to cut the following edges:
(1, 5), (2, 0), (4, 0). Of course there are some other minimal cuts.

Accoring to my algorithm, it will output 3.

According to what you have said, you want to first cut (1, 5), then the spy has only two paths to escape, namely, through node 2 and through node 4. For the path that bypasses node 2, you have to wait until the spy has entered room 2, then you need to cut (1, 2) and (2, 0), which incurs two cuts, so in total, it's three cuts. Similarly for the path through node 4.

If you cut (1, 5) in the first place, and then wait until the spy has entered room 2, and you only cut (2, 0), then the spy can turn back to choose the path that goes through node 4. So you still need to cut (1, 4) or (4, 0). In this case, you again need three cuts, which matches the output of my algorithm.

.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

 相关帖子 我要回复↙ ↗回到正文
anyone interested to discuss about the last question in ACM this year? <Tunnels chancing   (75 bytes , 1143reads )
这样可以么? 房间   (343 bytes , 430reads )
I have revised the solution. 房间   (737 bytes , 370reads )
似乎还是不行 bugzzj   (221 bytes , 390reads )
是可以的 房间   (1023 bytes , 331reads )
看错了 房间   (154 bytes , 340reads )
And 房间   (88 bytes , 309reads )
顺带询问一个问题 房间   (267 bytes , 498reads )
如果child有到parent的ref的话。 bugzzj   (524 bytes , 452reads )
gr8. 房间   (142 bytes , 335reads )
construct a graph as follows icky   (178 bytes , 370reads )
disagree bugzzj   (149 bytes , 377reads )
so assume the spy enters 2 icky   (91 bytes , 347reads )
i think we can destroy the tunnels 2 0 and 2 1 simultaneously. bugzzj   (0 bytes , 347reads )
ok, i misunderstood the problem icky   (0 bytes , 325reads )
choose one of 3 or 4 icky   (0 bytes , 309reads )
opps! you are right. 吴永铮   (76 bytes , 312reads )
agree 吴永铮   (0 bytes , 274reads )
maxflow from vertex 0 to vertex 1 icky   (0 bytes , 317reads )
min-cut problem? icky   (54 bytes , 389reads )