åé¡æ¦è¦
åã¡ãå¼ãåããè² ãã®ãã¤ã³ãããããã ã ã ã®ãªã¼ã°æ¦ã«ã¤ãã¦ãåãã¼ã ã®ç¾å¨ã®ãã¤ã³ãã¨æ®ãã®è©¦åæ°ãä¸ããããã®ã§ãåç¬åªåã§ããå ´åããã³åªåã§ããå ´åãããããå¤å®ããåé¡ã§ããã
解æ³
ãããã¼ã ã®åªåå¯è½æ§ã®å¤å®
ãã¼ã ãåªåããå ´åãããæ¡ä»¶ã¨ããã®é«éãªå¤å®æ³ãèããã
ã¨ããã ã¾ãã空ã§ãªã ã«ã¤ã㦠ã¨å®ç¾©ããã ããã¦ã ã¨å®ç¾©ããã
空ã§ãªããã ãåå¨ã㦠ãæç«ãããªãã°ããã¼ã ãåªåããå ´åã¯ãªããã¨ã次ã®ããã«ãããã ãã¼ã ã¨ãã¼ã ãä»å¾å¯¾æ¦ãããã¨ã«ããã 㨠ã å°ãããªãã試åçµæã«ãã£ã¦ ã¾ã㯠ã«ãã¤ã³ããå ããã¨èããã ãã¹ã¦ã®è©¦åãçµäºããå¾ã® ããããã ã¨ããã¨ã ããããã ã¾ãã 㯠ã®å¹³åã§ãããã¨ããããã å¹³åã®æ§è³ªããããããã¼ã ãåå¨ãã¦ã ãæç«ããã ã¨ä»®å®ããã空ã§ãªããã 㨠ãåå¨ã㦠ã¨ãªãããããã¼ã ã¯ã©ã®å ´åã«ããã¦ãåªåã§ããªãã
次ã«ã ãæºããã空ã§ãªã ãåå¨ãããã©ããã¯æ¬¡ã®ããã«å¤å®ã§ããã ãé ç¹éåã¨ãã ããå ã«å®¹é ã®æå辺ããå ãã ã«å®¹é ã®æå辺ããå ãã ã«å®¹é ã®æå辺ãå¼µãã ãªãããã ã«ã¤ã㦠ãè² ã«ãªãå ´åã¯ãæããã«ãã¼ã ã¯åªåã§ããªãã ãã®ãããã¯ã¼ã¯ã® ãã ã¸ã®æå°ã«ããã® å´ã®é ç¹éåã ã¨ããã¨ãããã ãåå¨ã㦠ã¨ãªãã ããã¦ã å´ã®é ç¹éåã ã¨ãªããããªã«ããã®å®¹é㯠ã§ããããã ã空ã§ãªãã¨ãæå°ã«ããã®å®¹é㯠æªæºã§ããã ãã®ã¨ãã ãæºãããã¨ã次ã®ããã«ãããã
ã¾ããæå°ã«ããã® å´ã®é ç¹éåã ã¨ãªãå ´åãæ大ããã¼ã«æ³¨ç®ããã¨ããã¹ã¦ã®ãã¼ã ã«ã¤ãã¦ä»å¾ãã¼ã 以å¤ã¨ã®å¯¾æ¦ã§å¾ããã¤ã³ãã®åè¨ã 以ä¸ã¨ãªãå ´åãæ§ç¯ã§ãã¦ããã ãã®ãããªå ´åã«ããã¦ããã¼ã ã¯ä»å¾ã®ãã¹ã¦ã®è©¦åã«åã¦ã°åªåã§ããã
ãã£ã¦ããã¼ã ã®åªåå¯è½æ§ã®å¤å®ã¯ä¸ã®ãããã¯ã¼ã¯ã«ã¤ãã¦æ大æµåé¡ã解ããã¨ã§è¡ããã ãã®ãããã¯ã¼ã¯ã¯ é ç¹ è¾ºã§ãããããPush-Relabel Algorithmã«ããæéè¨ç®é㯠ã¨ãªãã Dinicæ³ã§ãããã®åé¡ã«å¯¾ãã¦ã¯ååé«éã§ããã
ãããã¼ã ã®åç¬åªåå¯è½æ§ã®å¤å®
ãã¼ã ãåç¬åªåããå ´åãããæ¡ä»¶ã¨ããã®é«éãªå¤å®æ³ãèããã
åæ§ã«ã ã¨ããã ã¾ãã空ã§ãªã ã«ã¤ã㦠ã¨å®ç¾©ããã ããã¦ã ã¨å®ç¾©ããã
空ã§ãªããã ãåå¨ã㦠ãæç«ãããªãã°ããã¼ã ãåªåããå ´åã¯ãªããã¨ã次ã®ããã«ãããã ãã¹ã¦ã®è©¦åãçµäºããå¾ã® ã ã¨ããã¨ããããã¼ã ãåå¨ãã¦ã ãæç«ããã®ã§ãã£ãã ã¨ä»®å®ããã空ã§ãªããã 㨠ãåå¨ã㦠ã¨ãªãã ãã¤ã³ãã®æ´æ°æ§ãã ãæç«ããããããã¼ã ã¯ã©ã®å ´åã«ããã¦ãåç¬åªåã§ããªãã
ãé ç¹éåã¨ãã ããå ã«å®¹é ã®æå辺ããå ãã ã«å®¹é ã®æå辺ããå ãã ã«å®¹é ã®æå辺ãå¼µãã ãã ã«ã¤ã㦠ãè² ã«ãªãå ´åã¯ãæããã«ãã¼ã ã¯åªåã§ããªãã ã¾ããåªåå¯è½æ§ã¨åæ§ã®ä¸çå¼å¤å½¢ã«ãããæå°ã«ããã® å´ã®é ç¹éåã ã§ãªãå ´åã ãæºããã ã¾ããæå°ã«ããã® å´ã®é ç¹éåã ã¨ãªãå ´åãæ大ããã¼ã«æ³¨ç®ããã¨ããã¹ã¦ã®ãã¼ã ã«ã¤ãã¦ä»å¾ãã¼ã 以å¤ã¨ã®å¯¾æ¦ã§å¾ããã¤ã³ãã®åè¨ã 以ä¸ã¨ãªãå ´åãæ§ç¯ã§ãã¦ããã ãã®ãããªå ´åã«ããã¦ããã¼ã ã¯ä»å¾ã®ãã¹ã¦ã®è©¦åã«åã¦ã°åç¬åªåã§ããã
ãã£ã¦ããã¼ã ã®åç¬åªåå¯è½æ§ã®å¤å®ã¯ä¸ã®ãããã¯ã¼ã¯ã«ã¤ãã¦æ大æµåé¡ã解ããã¨ã§è¡ããã åªåå¯è½æ§ã¨åæ§ã«ãPush-Relabel Algorithmã«ããæéè¨ç®é㯠ã¨ãªããDinicæ³ã§ããã®åé¡ã«å¯¾ãã¦ã¯ååé«éã§ããã
ãã¹ã¦ã®ãã¼ã ã®åªåå¯è½æ§ã®é«éãªå¤å®
ã¨ããã ãã¼ã ãåªåããå ´åã¯ãªãã¨ããã ãã®ã¨ãããã¼ã ã«ã¤ã㦠ãæç«ãããªãã°ãã¼ã ãåªåããå ´åããªããã¨ã次ã®ããã«ãããã
ã¾ããä»®å®ãã空ã§ãªããã ãåå¨ã㦠ãæç«ããã ã§ããããªãã°æããã«ãã¼ã ãåªåããå ´åã¯ãªãã ã§ãããã¨ã¯ ã§ãããã¨ã¨åå¤ã§ããã ãã ã§ããããããã®ãããªå ´å㯠ã¯ç©ºã§ãªãã ãæ±ããã
ã¨ãªãããã®å ´åããã¼ã ãåªåããå ´åã¯ãªããã¨ã示ãããã
æ¡ä»¶ãçå·ä»ãã§ããããã ãçãããã°åªåå¯è½ãã©ãããçããã ãã£ã¦ãåãã¼ã ã ã§ã½ã¼ããã¦äºåæ¢ç´¢ãè¡ããã¨ã«ãããå ¨ä½ã¨ãã¦ã®æéè¨ç®éã ã«ãããã¨ãã§ããã ã¾ããä»ã®ãã¼ã ã¨ä»å¾å¯¾æ¦ããªãä»®ã®ãã¼ã ã追å ãã¦ããã®ãã¼ã ãåãã¼ã ã® ã¨çãããã¤ã³ããæã£ã¦ããã¨ãã¦äºåæ¢ç´¢ãã¦ãããã
ãã¹ã¦ã®ãã¼ã ã®åç¬åªåå¯è½æ§ã®é«éãªå¤å®
åæ§ã« ã¨ããã ãã¼ã ãåç¬åªåããå ´åã¯ãªãã¨ãããã¼ã ã«ã¤ã㦠ãæç«ããå ´åãèããã
ã¾ããä»®å®ãã空ã§ãªããã ãåå¨ã㦠ãæç«ããã ã§ããããªãã°æããã«ãã¼ã ãåç¬åªåããå ´åã¯ãªãã ä¸æ¹ã ã§ããå ´åã ãªãã° ãã ã§ããå¯è½æ§ãããã ãã ãã ãæºãããã¼ã ãåç¬åªåããããã«ã¯ãä»»æã®ãã¼ã ã«ã¤ã㦠ãæãç«ã¤å¿ è¦ãããã ãã®ãããªãã¼ã ãåå¨ããã°ããã®ãã¼ã ã«ã¤ãã¦å¤å®ãè¡ãã°ããã
ã㤠ã®å ´å㯠ã¯ç©ºã§ãªãã¨ãã¦ããã ã¾ãããã¤ã³ãã®æ´æ°æ§ãèæ
®ã㦠ã ã¨è¨ãæãã¦ããã
ã¨ãªãã ã㤠ãæç«ããå ´åã®ã¿ã ããããªãã
ä»ã®ãã¼ã ã¨ä»å¾å¯¾æ¦ããªãä»®ã®ãã¼ã ã追å ããäºåæ¢ç´¢ãè¡ããªãããä¸ã®ã³ã¼ãã¼ã«å¯¾å¦ããã ã¾ãã ç¹ã®ãã¼ã ã追å ãã¦åªåå¯è½æ§ã®å¤å®ããããã¨ã¯ã ç¹ã®ãã¼ã ã追å ãã¦ãã®ãã¼ã ã®åç¬åªåå¯è½æ§ã®å¤å®ããããã¨ã¨ç価ã§ããã åªåå¯è½ã¨å¤å®ãããæå°ã®ãã¤ã³ãã ç¹ã¨ããã ãªãã°æããã«ãã¼ã ã¯åªåä¸å¯è½ã§ããã ãªãã°ãã¼ã ã¯åç¬åªåãå¯è½ã§ãããã¨ã次ã®ããã«ãããã ãã¤ãã¼ã ãåç¬åªåä¸å¯è½ã§ãããã¨ãä»®å®ããã ããã¨ããã ãåå¨ã㦠ãæç«ããã ã« ç¹ãæã¡ä»å¾è©¦åããªããã¼ã ã追å ããã¨ãæãã㫠㨠ãæç«ãããã¼ã ãåªåå¯è½ã¨å¤å®ããããã¨ã¨çç¾ããã
ã®å ´åã ç¹ã®ãã¼ã ã追å ãã¦ãã®ãã¼ã ã®åç¬åªåå¯è½æ§ã®å¤å®ãè¡ãã æããã«åç¬åªåã¯ä¸å¯è½ã¨å¤å®ãããæå°ã«ããã®å®¹éã ã§ãªãå ´åã¯ã³ã¼ãã¼ã§ãªããã¨ã次ã®ããã«ãããã
ãã ããä¸çå·ã¯è¤å·åé ã æå°ã«ããã®å®¹éã ã§ããå ´åã«ã¤ãã¦èããã ã«å±ã ãæºããåé ç¹ ã«ã¤ãã¦ãããã¼ãæ¼ãæ»ã㦠ãã ã¸ã®ãã¹ã«ããã¼ã æµããããã«ã§ããã ãã ã¸ããã¼ãæµãããªãã°å¾ãããã®ãæ大ããã¼ã§ã¯ãªãã¨ãããã¨ã«ãªã£ã¦ãã¾ãããã ãã ã¸å¼µã£ã辺ã«ã¯ããã¼ãæµããã£ã¦ããã ãçµç±ãã ãã ã¸ã®ãã¹ã«ç¡çç¢çããã¼ã æµããã¨ãèããã¨ããã¹ã¦ã®ãã¼ã ã«ã¤ãã¦ä»å¾å¾ããã¤ã³ãã®åè¨ã 以ä¸ã§ããããã¤ãã¼ã ã®ä»å¾å¾ããã¤ã³ãã®åè¨ã ã§ããå ´åãæ§ç¯ã§ãã¦ããã ããã¯ããã¼ã ãåç¬åªåã§ãã¦ããå ´åã§ããã
ãã£ã¦ãåç¬åªåå¯è½æ§ãå¤å®ããå ´åãäºåæ¢ç´¢ãããå¾ãå¢çã«ã¤ãã¦æå°ã«ãããæ±ãããã¨ãå¿ è¦ã¨ãªãã æ大æµåé¡ã解ãåæ°ã ã«ããå ´åãåªåå¯è½ã¨ãªãæå°ã® ãåªåå¯è½ã¨ãªãæå°ã®ãã¤ã³ãã§ã¯ãªãå¯è½æ§ã«æ³¨æãå¿ è¦ã§ããã ã¾ããPush-Relabel Algorithmã®å ´åãå®è£ ã«ãã£ã¦ã¯æ®ä½ãããã¯ã¼ã¯ã ãã§ãªãæ®åéãèæ ®ãã¦æå°ã«ãããæ±ããå¿ è¦ããããã¨ã«æ³¨æãå¿ è¦ã§ããã
åºã«ãªã£ãè«æ
åªåå¤å®ã«ã¤ãã¦ã¯ãKD Wayne, "A New Property and Faster Algorithm for Baseball Elimination", 1999ã«è¨è¼ãããã
ãããã«
ä½åã®éãè¨ç®é解æããã³åç¬åªåå¤å®ã®ã³ã¼ãã¼ã®å¯¾å¦ãtatyamããã«æãã¦ããã ãã¾ããã ã¾ããåé¡åæ¡ãåºããéã«Yu_ããã«ãå©è¨ãããã ãã¾ããã ããã«æè¬ã®æã表ãã¾ãã