ContentslistsavailableatScienceDirect ThedisjointpathsprobleminquadratictimeKenichiKawarabayashiYusukeKobayashiBruceReedNationalInstituteofInformatics212HitotsubashiChiyodakuTokyoJapanDepar ID: 492526
Download Pdf The PPT/PDF document "JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/0..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.1(1-12)JournalofCombinatorialTheory,SeriesB ContentslistsavailableatScienceDirect ThedisjointpathsprobleminquadratictimeKen-ichiKawarabayashi,YusukeKobayashi,BruceReedNationalInstituteofInformatics,2-1-2,Hitotsubashi,Chiyoda-ku,Tokyo,JapanDepartmentofMathematicalInformatics,GraduateSchoolofInformationScienceandTechnology,UniversityofTokyo,Tokyo113-8656,CanadaResearchChairinGraphTheory,McGillUniversity,Montreal,CanadaProjectMascotte,INRIA,LaboratoireI3S,CNRS,Sophia-Antipolis,France articleinfoabstract Articlehistory:Received6July2009Availableonlinexxxx Keywords:DisjointpathsQuadratictimeGraphminorTree-width Weconsiderthefollowingwell-knownproblem,whichiscalleddisjointpathsproblem.Foragivengraphandasetofofterminalsin,theobjectiveistondvertex-disjointpathsconnectinggivenpairsofterminalsortoconcludethatsuchpathsdonotexist.Wepresentantimealgorithmforthisproblemforxed.ThisimprovesthetimecomplexityoftheseminalresultbyRobertsonandSeymour,whogaveantimealgorithmforthedisjointpathsproblemforxed.NotethatPerkovicandReed(2000)announcedin[24](withoutproofs)thatthisproblemcanbesolvedintime.Ouralgorithmimpliesthatthereisantimealgorithmfortheedge-disjointpathsproblem,theminorcontainmentproblem,andthelabeledminorcontainmentproblem.Infact,thetimecomplexityofallthealgorithmswiththemostexpensivepartdependingonRobertsonandSeymoursalgorithmcanbeimprovedto,forexample,themembershiptestingforminor-closedclassofgraphs.2011ElsevierInc.Allrightsreserved. 1.Introduction1.1.BackgroundofthedisjointpathsproblemInthevertex-(edge-)disjointpathsproblem,wearegivenagraphandasetofpairsofvertices),...,((whicharesometimescalledterminals),andwehavetodecidewhetherornotvertex-(edge-)disjointpathssuchthatfor E-mailaddresses:k_keniti@nii.ac.jp(K.Kawarabayashi),kobayashi@mist.i.u-tokyo.ac.jp(Y.Kobayashi),breed@cs.mcgill.ca(B.Reed).0095-8956/$ seefrontmatter2011ElsevierInc.Allrightsreserved.doi:10.1016/j.jctb.2011.07.004 JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.2(1-12)K.Kawarabayashietal./JournalofCombinatorialTheory,SeriesBFurthermore,wendsuchpathsiftheyexist.Thisiscertainlyacentralprobleminalgorithmicgraphtheoryandcombinatorialoptimization.Seethesurveys[9,32].Ithasattractedattentioninthecon-textsoftransportationnetworks,VLSIlayoutandvirtualcircuitroutinginhigh-speednetworksorInternet.Abasictechnicalproblemhereistointerconnectcertainprescribedchannelsonthechipsuchthatwiresbelongingtodifferentpinsdonottoucheachother.Inthissimplestform,theprob-lemmathematicallyamountstondingdisjointtreesinagraphordisjointpathsinagraph,eachconnectingagivensetofvertices.Letusgivepreviousknownresultsonthedisjointpathsproblem.Ifisapartoftheinputoftheproblem,thenthisisoneofKarpsoriginalNP-completeproblems[12],anditremainsNP-completeevenifisconstrainedtobeplanar(Lynch[21]).TheseminalworkofRobertsonandSeymoursaysthatthereisapolynomialtimealgorithm(actuallyantimealgorithm)forthedisjointpathsproblemwhenthenumberofterminals,,isxed(inthispaper,weshallrefertothisproblemasdisjointpathsproblem).Actually,thisalgorithmisoneofthespin-offsoftheirgroundbreakingworkonthegraphminorprojectspanning23papers,andgivingseveraldeepandprofoundresultsandtechniquesindiscretemathematics.Thedisjointpathsproblemisaspecialcaseofndingamulti-commodityow.Inthemulti-commodityowquestion,thecommoditiesatthesourcesaredifferentandthedemandateachisforaspeciccommodity.Thisisthetypeofquestionweneedtoresolvewhensend-inginformationthroughtheinformationhighwaynetworkandsohasbecomeincreasinglyofinteresttocomputerscientists(see,forexampletheworkofChekurietal.[3 6]andofTardosandKlein-berg[15 18]).Onespecialcasewhichisofgreatinterestisthatalldemandsareatmost12.Thisproblemsettingbehavesverydifferentfromthedisjointpathsproblem.Indeedtherearemanysuchowtypeproblemsforwhichthehalfintegralversioncanbeatleastapproximatelysolvedalthoughtheintegralversionisintractable(see[20,22]).Asimilarsituationholdswithrespecttothepathproblem.TheproofofcorrectnessofRobertsonandSeymoursalgorithmrequiresalmostallofthegraphminorsprojectpapersandmorethan500pages.Ontheotherhand,KawarabayashiandReed[13]gaveanearlylineartimealgorithmforthehalfintegralversion,whichimprovesthepre-viousknownresultbyKleinberg[16]whogaveantimealgorithm.Inaddition,thecorrectnessofthisalgorithmismuchsimplerthanthatofRobertsonandSeymours.1.2.MotivationandmainresultsOurmotivationisthatitseemsthatthetimecomplexityofRobertsonandSeymoursalgo-rithmistooexpensive.Reedannouncedin[27](seealso[24])thatheprovedthatthisproblemcanbesolvedintime.Howeveradetaileddescriptionofthealgorithmwasnotfullywrittendown.Wenowcometoknowtanglesandbrambles,andtheircorrespondinggridminorsmoreclosely,sowethinkthatweshouldbeabletoimprovethetimecomplexity.In[13],twoofusgaveanearlylineartimealgorithmforthehalfintegralversionofthedisjointpathsproblem.Namely,thetimecomplexityis.ThisgreatlyimprovestheresultbyKleinberg[16].Wenowtrytoim-provethetimecomplexityofRobertsonandSeymoursalgorithm.Letusremarkthattheresultsin[26,29]showthatthereisalineartimealgorithmforthedisjointpathsproblemwhenaninputgraphisplanar.Also,thereisalineartimealgorithmforthedisjointpathsproblemwhenanin-putgraphisaboundedgenusgraph[8,19].So,itwouldbeconceivablethatthetimecomplexityofRobertsonandSeymoursalgorithmcanbeimprovedtolinearornearlylinear.However,therearealotoftechnicaldiculties;aswementioned,thehalfintegralversionofthedisjointpathsproblemismucheasier.Inthispaper,wemanagedtoprovethefollowingtheorem,whichimprovesthetimecomplexityofRobertsonandSeymoursalgorithmtoquadratic.Theorem1.1.ThereisanOtimealgorithmforthekdisjointpathsproblemforxedk. Recently,amuchshorterproofforthecorrectnessofthegraphminoralgorithmisobtainedin[14].Theproofhingesuponasignicantlyshorterproofoftheuniquelinkagetheorem[35]. JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.3(1-12)K.Kawarabayashietal./JournalofCombinatorialTheory,SeriesB1.3.OverviewOuralgorithmfollowsRobertson Seymoursalgorithm[33].So,letusrstsketchtheRobertson Seymoursalgorithmonthedisjointpathsproblem.Atahighlevel,itisbasedonthefollowingtwocases:eitheragivengraphhasboundedtree-widthorelseithaslargetree-width.Intherstcase,onecanapplydynamicprogrammingtoatree-decompositionofboundedtree-width,see[1,2,33].Thesecondcaseagainbreaksintotwocasesdependingonwhetherhasalargecliqueminorornot.Supposethathasalargecliqueminor.Ifwecanlinkuptheterminalstotheminor,thenwecanusethiscliqueminortolinkuptheterminalsinanydesiredway.Otherwise,thereisasmallseparationsuchthatthelargecliqueminoriscutofffromtheterminalsbythisseparation.Inthiscase,wecanprovethatthereisavertexinthecliqueminorwhichisirrelevant,i.e.,thedisjointpathsproblemisfeasibleinifandonlyifitisinSo,supposedoesnothavealargecliqueminor.Thenonecanprovethat,afterdeletingboundednumberofvertices,thereisalargewallwhichisessentiallyplanar.Thismakesitpossibletoprovethatthemiddlevertexofthiswallisirrelevant.Thisrequiresthewholegraphminorpapers,andthestructuretheoremofgraphminors[34].RobertsonandSeymourcouldonlygiveantimealgorithmtondsuchanirrelevantver-tex.Thenthealgorithmrecursesinthegraph.Thusifwecouldgiveanalgorithmtondsuchanirrelevantvertex,wecouldproveTheorem1.1.Thisisourmaintask.Weneedtoconsiderthetwocases,namely,agraphwithorwithoutalargecliqueminor.Inbothcases,weneedtondanirrelevantvertexintime.ThiswillbeprovedinSections4and5.Thetechnicaldicultieswehavetoovercomearethefollowingtwopoints:1.Whenthereisalargecliqueminor,wehavetondanirrelevantvertexintime,ratherthantime.Thismeansthatwecannotusethestandardowalgorithm(sincetheinputgraphcouldhaveedges).WeshallusethealgorithmbyNagamochiandIbaraki[23]tondsuchavertex.Roughly,atthebeginningofouralgorithm,wehavetoconstructaspanneroftheinputgraphwithatmostedges,whichmaintainsconnectivitybetweeneachvertexinandtheterminalsin.Thisallowsustondasmallseparationintime,andhenceweareabletondanirrelevantvertexinthelargecliqueminorinInaddition,afterdeletingtheirrelevantvertex,wehavetoupdatethisspannerin2.Whenthereisnolargecliqueminor,intime,wehavetondalargewallwhichisclosesttoaleafintheseminalgraphminordecompositiontheorem.Thenwehavetondanearlyplanarembeddinginducedbythiswallintime.Notethatatthemoment,thereareedgesin2.PreliminaryInthispaper,alwaysmeanthenumberofverticesofagivengraphandthenumberofedgesofagivengraph,respectively.Sometimeswesaydisjointpaths,whichmeanvertex-disjointpaths.Letbeagraph.Forasubgraph,thevertexsetandtheedgesetofaredenotedby,respectively.Aseparationisapairofedge-disjointsubgraphssuchthat.Theorderoftheseparation.For,letdenotethesetofverticesinthatareadjacentto,andlettX]bethesubgraphinducedby.Wenowlookatdenitionsofthetree-widthandwalls.2.1.Tree-widthTree-widthwasintroducedbyHalinin[10],butitwentunnoticeduntilitwasrediscoveredbyRobertsonandSeymour[30]and,independently,byArnborgandProskurowski[1].tree-decompositionofagraphconsistsofatreeandasubtreeforeachvertexsuchthatifisanedgeofintersect.Foreachnodeofthetree,weletbethesetofverticessuchthat.Theofatree-decompositionisthemaximumof JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.4(1-12)K.Kawarabayashietal./JournalofCombinatorialTheory,SeriesB Fig.1.Anelementarywallofheight8. Fig.2.Awallofheight3.1overthenodes.Thetree-widthofagraphistheminimumwidthamongallpossibletree-decompositionsofthegraph.Wecanapplydynamicprogrammingtosolveproblemsongraphsofboundedtree-width,inthesamewaythatweapplyittotrees(seee.g.[1]),providedthatwearegivenaboundedwidthtree-decomposition.RobertsonandSeymourdevelopedtherstpolynomialtimealgorithmforconstructingatree-decompositionofagraphofboundedwidth[33],andeventuallycameupwithanalgorithmwhichrunsintime,forthisproblem.Reed[25]developedanalgorithmfortheproblemwhichrunstime,andthenBodlaender[2]developedalineartimealgorithm.Thisalgorithmwasfurtherimprovedin[24].Theorem2.1.(SeeBodlaender[2].)Foranyxedintegerw,thereexistsanOtimealgorithmthat,givenagraphG,eitherndsatree-decompositionofGofwidthworconcludesthatthetree-widthofGismorethanw.2.2.WallAnelementarywallofheighteightisdepictedinFig.1.Anelementarywallofheightforissimilar.Itconsistsoflevelseachcontainingbricks,whereabrickisacycleoflengthsix.wallofheightisobtainedfromanelementarywallofheightbysubdividingsomeoftheedges,i.e.replacingtheedgeswithinternallyvertex-disjointpathswiththesameendpoints(seeFig.2).Theofawallaretheverticesofdegreethreewithinit.Anywallhasauniqueplanarembedding.Theperimeterofawall,denotedperistheboundaryoftheuniquefaceinthisembeddingwhichcontains4Oneofthemostimportantresultsconcerningthetree-widthisthemainresultofGraphMinorsV[31]whichsaysthefollowing:Theorem2.2.(SeeRobertsonandSeymour[31].)Foranyr,thereexistsaconstantfsuchthatifGhastree-widthatleastf,thenGcontainsawallWofheightr.Thebestknownupperboundforisgivenin[7,27,36].Itis20.Thebestknownlowerboundis,see[36].Furthermore,suchawallcanbefoundinlineartime. JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.5(1-12)K.Kawarabayashietal./JournalofCombinatorialTheory,SeriesBTheorem2.3.(Followsfrom[2,24,31].)Forxedintegerr,inagraphGwithtree-widthatleastf,wecanndawallWofheightrinlineartime.Herewegiveanoutlineofthelineartimealgorithm.Bythealgorithmin[24],wecanndinlineartimeasubgraphoftree-widthatleastandatree-decompositionofofwidthatmost2.Then,sincehasawallofheightbyTheorem2.2,itcanbefoundinlineartimebythedynamicprogrammingmethod[2].3.Findingaatlargewallin-minor-freegraphsInthissection,weapplyastructuralresultofRobertsonandSeymourconcerninggraphswhichhavealargetree-widthbutnolargecliqueminor.Tostatethisresultwewillneedafewdenitions.Recallthattheofawallaretheverticesofdegreethreewithinit.Anywallhasauniqueplanarembedding.Foranywallinagivengraph,thereisauniquecomponentcontaining.Thecompass,denotedcomp,isthesubgraphofinducedbysubwallofawallisawallwhichisasubgraphof.Asubwallofproperifitconsistsofconsecutivebricksfromeachofconsecutiverowsof.Theexteriorofapropersubwallofawall.WesayapropersubwallifthecompassofisdisjointfromAwallisifitscompassdoesnotcontaintwovertex-disjointpathsconnectingthediago-nallyoppositecorners.Notethatifthecompassofhasaplanarembeddingwhoseinnitefaceisboundedbytheperimeterofisclearlyat.Inordertocharacterizeatwalls,weusetheresultofSeymour[37],Thomassen[41],andothersonthe2disjointpathsproblem.Wenowmentionthecharacterizationofaatwall.Bythecharacterizationofgraphscontaining2disjointpaths(see[37,Theorem4.1]forexample),awallisatifandonlyiftherearepairwisedisjointsetscompcontainingnocornersofsuchthat(1)for1(2)for13,and(3)ifisthegraphobtainedfromcompbydeletingandaddingnewedgesjoiningeverypairofdistinctverticesinforeach,thencanbedrawninaplanesothatallcornersareontheouterfaceboundary.Wecallwiththeseconditionsattachedvertexsets.Ifsuchexist,wesaythatcompcanbeembeddedintoaplaneupto3-separations,andanembeddingasin(3)iscalleda.Itiseasytoseethatanypropersubwallofaatwallmustbebothatanddividing.Furthermore,ifaretwoverticesofaatwallandthereisapathbetweenthemwhichisinternallydisjointfromtheneitherarebothonperorsomebrickcontainsbothofFinally,westatethemainresultinthissection.RobertsonandSeymour(Theorem(9.6)in[33])provedthefollowingalgorithmicresult:Theorem3.1.(SeeRobertsonandSeymour[33]andKapadiaetal.[11].)Foranyxedintegerst,thereisacomputableconstantfsuchthatthefollowingcanbedoneinOtime,wheremisthenumberofedgesofagivengraphG.InputAgraphG,awallHofheightatleastf-minor,orasubsetXoforderatmostandtdisjointpropersubwallsHofheighthsuchthateachHisdividingandatinGXfori.Inaddition,aatembeddingofHisalsogivenfor JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.6(1-12)K.Kawarabayashietal./JournalofCombinatorialTheory,SeriesBThealgorithmin[33]takestimebecauseRobertsonandSeymourusedantimeal-gorithmtotesttheatness(i.e.,giveaatembeddinginthecompassofinthesecondconclusion),andthispartisthemostexpensive.Moreprecisely,RobertsonandSeymourrstprovedthatthereistimealgorithmtogettheconclusionofTheorem3.1,butwithouttheconclusionat(thisstepcorrespondsto(9.4)in[33]thatrunsintime).Thenforeachofdividingsubwalls,testwhetherornotitisat(thisstepcorrespondsto(8.1)in[33]thatrunsintime).ThereisnowtimealgorithmtotesttheatnessbyKapadia,LiandReed[11],whichimprovestheprevi-ousbestknownresultbyTholey[39,40]whichgivesantimealgorithm,wheretheistheinverseoftheAckermannfunction(seetextbyTarjan[38]).Notethatthealgorithmsin[11,39,40]alsondaatembeddingofawall(ifitisat)inthesamerunningtime.Actually,in(nearly)lineartime,thesealgorithmsndattachedvertexsetsandreduceagiveninstanceofthe2disjointpathsproblemtoaninstanceinagraphthathasnoseparationoforderatmostthreesuchthatcontainsalltheterminals(seeProperty(P)in[40]).Afterthisreductionaatembeddingisequivalenttoaplanarembeddingwhichcanbefoundinlineartime.Thusifweusethealgorithmin[11]fortestingtheatness,wecangetantimealgorithm,asclaimedinTheorem3.1.Notethat[11]isapaperundersubmission.Ifweusetheresultin[39,40]insteadofthatin[11],therunningtimeinTheorem3.1becomes,andconsequentlytherunningtimeinTheorem1.1becomes,whichisslightlylargerthanIneithercase,withthehelpofTheorem3.1,wenddesireddisjointpathsoranirrelevantvertexintime.Wedescribetheprocedureinthenextsection.4.IrrelevantverticesLetusrecallthatavertexisirrelevantifthedisjointpathsproblemisfeasibleinifandonlyifitisin.Inthissection,wegivesometheoremsconcerningirrelevantvertices.4.1.WhenthegraphhasalargecliqueminorLetusrstgivetheoremsconcerningagraphwithalargecliqueminor.Theorem4.1.(SeeRobertsonandSeymour[33,Theorem(5.4)].)LetsbeterminalsinagivengraphG.IfthereisacliqueminoroforderatleastkinG,andthereisnoseparationoforderatmostinGsuchthatAcontainsalltheterminalsandBAcontainsatleastonenodeofthecliqueminor,thentherearedisjointpathsPwithtwoendsinsforik.Furthermore,suchpathscanbefoundinOIfthereisaseparationoforderatmost21suchthatcontainsalltheterminalsandcontainsatleastonevertexofthecliqueminor,wecanndavertexofthecliqueminorwhichisirrelevantintime(seeargumentsin[33,Theorem(6.2)]).Inordertoimprovetherunningtimefrom,weneedtheresultbyNagamochiandIbaraki[23].Theygaveanalgorithmtoreducethenumberofedgesfromkeepingtheconnectivityofthegraph.Moreprecisely,foragraphandaninteger,theiralgorithmndsasubgraphsuchthat,wheredenotesthevertexconnectivitybetween.Suchagraphissaidtobeat-certicate.Thisproceduretakestime,soifwenewlyconstructa-certicateeachtimeafterdeletinganirrelevantnode,therunningtimebecomesexpensive.Inordertoavoidthis,weshowthefollowing:Theorem4.2.Letkbeaxedinteger.SupposewearegivenagraphG,terminalssacliqueminorKoforderk,andak-certicateGofGwith.WecanndeitherdesiredkdisjointpathsPwithtwoendsinsforikinOtimeor JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.7(1-12)K.Kawarabayashietal./JournalofCombinatorialTheory,SeriesBagraphGandak-certicateGsuchthatcontainsallterminals,andthekdisjointpathsprobleminGisequivalenttotheoriginalprobleminProof.First,wendinasmallestseparationoforderatmost21suchthatcontainsalltheterminals,containsatleastonenodeofthecliqueminor.Notethatifthesmallestorderofsuchaseparationisatleast2,wecannddesireddisjointpathsinbyTheorem4.1,andtherunningtimeis.Ifthesmallestorderisatmost21,wecanndsuchaseparationintimebyusingasimpleowalgorithmin.Then,weobtainbydeletingallverticesandaddingnewedgesjoiningeverypairofdistinctverticesin.OnecanseethatthisproceduredoesnotaffectthesolutionbyTheorem4.1.Furthermore,byexecutingthesameprocedure,weobtainagraphforany.Sinceatmostedges,wecanapplythealgorithmofNagamochiandIbarakitotime.Thenweobtaina2-certicateInTheorem4.2,weassumedthatacliqueminoroforder3isgiven.Buthowdowendsuchacliqueminorinlineartime?Hereisoneway.Theorem4.3.(SeeReedandWood[28,Theorem2.1].)Foranyxedintegert,ifGhasatleastedges,thenthereisanOtimealgorithmtondaK-minor.ThistheoremimprovesAlgorithm(6.4)in[33].Notethatalthoughthenumberoftheedgesinnotnecessarily,weonlyneedtofocuson2edgestonda-minor.Thus,therunningtimeisnot.OuralgorithmwillkeepapplyingTheorem4.3togetacliqueminoroforder3.AfterapplyingTheorem4.3,wemayassumethathasatmost2edges.Hence,inwhatfollowsinthissection,weassumethatanddescribehowwendanirrelevantvertexinagraphwithno-minor.4.2.WhenthegraphhasnolargecliqueminorNext,wediscussthecasewhenthegraphhasnolargecliqueminor.Inordertostatethetheorem,weneedtodenerealizablepartitions.Letbeagraphandbeavertexset.Apartitionrealizableiftherearedisjointtreessuchthatfor.RobertsonandSeymour[33]showedthefollowingtheorem.Theorem4.4.(SeeRobertsonandSeymour[33,Theorem(4.1)].)LetGbeagraphwithatree-decompositionofwidthatmostwforxedw,andletZbeavertexsetoforderatmostforxedk.ThenthereisantimealgorithmtoenumerateallrealizablepartitionsofZinGforsomefunctionfofkNotethattheproblemofenumeratingallrealizablepartitionscorrespondstotheproblemcalled-folioin[33].Itisgeneralizedtotheproblemcalledl-folioin[33],whichplaysacentralroleintheproofoftheseminalresultofRobertsonandSeymour.Wealsonotethatalthoughtheresultin[33]isstatedintermsofbranch-width,itdoesnotcauseanyproblemsbecausebranch-widthdiffersonlybyaconstantfactorfromtree-width.Nowwearereadytostatetheresultconcerningagraphwithoutalargecliqueminor.Theorem4.5.(SeeRobertsonandSeymour[33,Theorem(10.3)].)Foranyxedintegerk,thereisacomputableconstantfsatisfyingthefollowingifthereisasubsetXoforderatmostsuchthatthereisaatwallWofheightfinGX,thenthereisavertexvinWsuchthatvisirrelevant.Furthermore,ifwehaveaatembeddingofcompwithattachedvertexsetsA JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.8(1-12)K.Kawarabayashietal./JournalofCombinatorialTheory,SeriesBallrealizablepartitionsofZinAforeachi,whereAcompandZcompthenwecanndanirrelevantvertexvinlineartime.WenowgivesomeremarksondifferencesbetweenthistheoremandtheoriginalstatementofTheorem(10.3)in[33].TheoriginalstatementofTheorem(10.3)in[33]isacombinationofTheorem4.5aboveandTheorem(10.1)in[33],andsothecondition(W2)doesnotappearintheoriginalstatementexplicitly.InTheorem(10.3)in[33],theyusearuraldivisioninsteadoftheattachedvertexsetsFor,thecorrespondingruraldivisioncanbeobtainedasfollows.Foreachpairofsetscompcomp,replacethembytheirunion.Fortheresultingsets,letbethesubgraphofinducedbyfor.Then,theruraldivisionconsistsofthegraphsandthegraphseachconsistingofasingleedge(togetherwithitsendvertices)notcontainedinoneofAlthoughtheoriginalstatementofTheorem(10.3)in[33]saysthatitrequiresquadratictimeintheabovestatement,thepreciserunningtimeislinear.Thisisbecausethenumberofiterations(denotedby)intheproofofTheorem(10.3)of[33]isboundedbyaconstantwhichonlydependsWealsonotethattheoriginalstatementrequiresaofeach,whichconsistsof(W2)andthefollowinginformation:(W3)theclockwiseorderingofintheatembeddingofcomp(W4)foreachvertexcomp,avertexthatcanbeanendpointofapathfromsuchthatdoesnothit,exceptforSincetheatembeddingofcompgivesus(W3)and(W4)inlineartime,weomittheminthestatement.Intheoriginalstatementof[33],theyconsideratwallsbutdonotusetheiratembeddings,andsotheymentiontheinformation(W3)and(W4)explicitly.Theorem(10.1)in[33]showsthat(W2)canbecomputedinquadratictimeifallthecomponentsponentsA1],...,G[Al]havetree-widthboundedbyaxedconstant.Byimprovingtherunningtimeofthisstatementtolineartime,weshowthefollowingtheorem.Theorem4.6.LetGX,andWbeasintherstpartofTheorem.IfwehaveaatembeddingofcompwithattachedvertexsetsAsuchthatallthecomponentsGGA1],...,G[Al]havetree-widthboundedbyaxedconstantg,wecanndinOtimeanirrelevantvertexv.Proof.ByTheorem4.5,itsucestoshowthat(W2)canbecomputedinlineartimewhenallthecomponentsponentsA1],...,G[Al]havetree-widthboundedbyaxedconstant.Letbethecom-passofForeach,byTheorems2.1and4.4,intime,wecanenumerateallrealizablepartitions.Ontheotherhand,since3andThus,itcanbedoneintime,andTheorem4.6follows.5.KeytheoremsTheprevioustheorem,Theorem4.6,isourmaintool,buthowdowendasubsetawallsuchthat JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.9(1-12)K.Kawarabayashietal./JournalofCombinatorialTheory,SeriesBisaatwallofheight,and(C3)allthecomponentsponentsA1],...,G[Al]havetree-widthatmost,whereareattachedvertexsetsasintheatembeddingofcompinlineartime?RobertsonandSeymour[33]describedthefollowingalgorithm,whichtakesTheorem5.1.(SeeRobertsonandSeymour[33,Theorem(9.8)].)Foranyxedintegerk,therearecomputableconstantshandgsuchthat,ifagivengraphGhastree-widthatleasth,thenthereisanOalgorithmtondeitheraK-minororapairsatisfyingtheconditionsOurmaincontributioninthispaperisthefollowing:Theorem5.2.Foranyxedintegerk,therearecomputableconstantshandgsuchthat,ifagivengraphGhastree-widthatleasth,thenthereisanOtimealgorithmtondeitheraK-minororapairsatisfyingtheconditionsProof.Weset,whereisasinthecondition(C2),isasinTheorem2.3,isasinTheorem3.1.SettheconstantsuchthatForagivengraphwithtree-widthatleast,werstapplyTheorem4.3.Ifthereisaminor,wearedone.Thuswemayassumethathasatmost2edges.ByapplyingTheorem2.3,wenowhaveawallofheightinhand.WeapplyThe-orem3.1withforthewall.Sincehasatmostedges,thetimecomplexityofTheorem3.1isnow.Ifwegeta-minor,wearedone.Thusbythedenitionof,wemayassumethatthereexistasetdividingandatpropersubwallsofheight.Wetakesuchtwosubwalls,andletbevertexsetsasintheatembeddingofthecompassofthewallfor2.Foreachturn,wetestwhetherornothastree-widthatleast.ThiscanbedoneinlineartimebyTheorem2.1.IfallofofAi,1],G[Ai,2],...,G[Ai,li]havetree-widthatmost,thensatises(C1) (C3).Otherwise,wemayassumethatthatAi,1]hastree-widthatleastfor2.Furthermore,sincearedisjoint,wemayassumealsothat2.Letbeatmostthreeverticesinthecompassthatareadjacenttoavertexin.Then,isacutsetinsuchthatthatA1,1]isoneofthecomponentsof.WerepeatthisalgorithmwiththeinputgraphaphA1,1XX].Weonlytakecareofhowwechoosetwosubwallsofheight.InthegraphaphA1,1XX],byapplyingTheorems2.3and3.1,wecannddividingandatsubwallsofheight.Since2,thereexisttwodividingandatsubwallsofheightthatdonotcontainanyvertexof.Thus,whenweexecutethesameprocedureforinthenextiteration,weonlyneedtolookatthegraphphA1,1].Alltheaboveoperationscanbedoneintime,asdescribed.Letustakeasthetimecomplexityintheaboveoperationswiththeinputgraphvertices.Whenwerepeatthealgo-rithm,wethrowawayhalfoftheverticesofthecurrentgraph.Thus,thetimecomplexitywillbe 2)+T(n +···,whichisstill.ThiscompletestheproofofTheorem5.2.6.AlgorithmLetbeapositiveinteger.Inthissection,wedescribeouralgorithmforthedisjointpathsproblem.AlgorithmforthedisjointpathsproblemInput:Agraphvertices,andterminals JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.10(1-12)K.Kawarabayashietal./JournalofCombinatorialTheory,SeriesBdisjointpathssuchthatfor,iftheyexist.DescriptionStep1.Computea2-certicatetimebythealgorithmof[23],andgotoStep2.Step2.Whilethegraphhasatleast2edges,wedetecta-minorbyTheorem4.3,andremovesomeverticesasinTheorem4.2.Ifthegraphhaslessthan2edges,thengotoStep3.Step3.Testwhetherornotacurrentgraphhastree-widthatmost,whereisasinTheo-rem5.2.Ifithas,thenTheorem2.1givesrisetoatree-decompositionofwidthatmost.WethenuseTheorem4.4tosolvetheproblem.Ifthegraphhastree-widthmorethan,gotoStep4.Step4.ApplyTheorem5.2tothegraph.Ifwegeta-minor,thenapplyTheorem4.2toconstructasmallerinstanceintime.IfwegetawallasinTheorem5.2,thenapplyTheorem4.6tondanirrelevantvertexintime.Then,deletetheirrelevantvertexandgotoStep3.First,thetotalrunningtimeofStep2isbyTheorem4.2.WhenwegotoStep3afterexecutingStep2,thenumberofedgesis,andhenceittakestimeinStep4tondoneirrelevantvertexinthegraph.Sincewedeleteatmostvertices,thetotalrunningtimeofStep4.ThiscompletestheproofofTheorem1.1.7.ConcludingremarksWeconcludethispaperbyobservingthatotherproblemscanalsobesolvedinquadratictime.Corollary7.1(Thekedge-disjointpathsproblem).ThereisanOtimealgorithmfortheedge-disjointpathsproblemwhenkisaxedconstant,i.e.,fortheproblemofconstructingpathsPthatarenotnecessarilyvertex-disjointbutedge-disjoint.edge-disjointpathsproblemcanbereducedtothevertex-disjointpathsproblembycon-structingthelinegraph.However,sincethenumberofverticesofthelinegraphis,byusingthisnaivereduction,therunningtimebecomes.Inordertoimprovetherunningtimeto,werstreducethenumberofedgestobyexecutingthesameproceduresasTheorems4.2and4.3.Withthispreprocessing,wecanreducetheedge-disjointpathsproblemtothevertex-disjointpathsprobleminagraphwithvertices,whichyieldsCorollary7.1.ThesimilarprooftoTheorem1.1alsoworksforthefollowingproblems:Corollary7.2(Thelabeledminortesting).ThereisanOtimealgorithmforthelabeledminorcontainmentproblem.Thatis,givenagraphGandnon-nullsubsetsZ,withk,wherekisaxedconstant,wecantestinOtimewhetherornotthereexistmutuallyvertex-disjointconnectedsubgraphsofG,withZCorollary7.3(Theminortesting).ThereisanOtimealgorithmfortheminorcontainmentproblem.Thatis,foraxedgraphHandagivengraphG,wecantestwhetherornotGhasaminorisomorphictoHinOCorollaries7.2and7.3areobtainedbyfollowingtheproofofTheorem1.1inthesamewayasin[33].Wehavetousetheconceptof-folioinsteadofdisjointpathsandrealizablepartitions,butthesameargumentalsoworks.Finally,wenotethatthetimecomplexityofallthealgorithmswiththemostexpensivepartde-pendingonRobertsonandSeymoursalgorithmcanalsobeimprovedto,forexample,themembershiptestingforaminor-closedclassofgraphs.Therearemany,soweomitthem. JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.11(1-12)K.Kawarabayashietal./JournalofCombinatorialTheory,SeriesBAcknowledgmentsTheauthorsthanktheanonymousrefereesforhelpfulcomments.Inparticular,oneoftherefer-eesgavealotofinsightfulcommentsandsuggestionsthatimprovedanearlierversionofthispaper.TherstauthorissupportedbyJapanSocietyforthePromotionofScience,Grant-in-AidforScien-ticResearch,byC&CFoundation,byKayamoriFoundationandbyInoueResearchAwardforYoungScientists.ThesecondauthorissupportedbyJapanSocietyforthePromotionofScience,Grant-in-AidforScienticResearch,andbyGlobalCOEProgramTheresearchandtrainingcenterfornewdevelopmentinmathematics,MEXT,Japan.References[1]S.Arnborg,A.Proskurowski,LineartimealgorithmsforNP-hardproblemsrestrictedtopartial-trees,DiscreteAppl.Math.23(1989)11 24.[2]H.L.Bodlaender,Alinear-timealgorithmforndingtree-decompositionsofsmalltreewidth,SIAMJ.Comput.25(1996)[3]C.Chekuri,S.Khanna,B.Shepherd,Theall-or-nothingmulticommodityowproblem,in:Proc.36thACMSymposiumonTheoryofComputing(STOC),2004,pp.156 165.[4]C.Chekuri,S.Khanna,B.Shepherd,Edge-disjointpathsinplanargraphs,in:Proc.45thAnnualIEEESymposiumonFoun-dationsofComputerScience(FOCS),2004,pp.71 80.[5]C.Chekuri,S.Khanna,B.Shepherd,Multicommodityow,well-linkedterminals,androutingproblems,in:Proc.37thACMSymposiumonTheoryofComputing(STOC),2005,pp.183 192.[6]C.Chekuri,S.Khanna,B.Shepherd,Edge-disjointpathsinplanargraphswithconstantcongestion,in:Proc.38thACMSymposiumonTheoryofComputing(STOC),2006,pp.757 766.[7]R.Diestel,K.Y.Gorbunov,T.R.Jensen,C.Thomassen,Highlyconnectedsetsandtheexcludedgridtheorem,J.Combin.TheorySer.B75(1999)61 73.[8]Z.Dvorák,D.Král,R.Thomas,Coloringtriangle-freegraphsonsurfaces,in:ACM SIAMSymposiumonDiscreteAlgorithms(SODA),2009,pp.120 129.[9]A.Frank,Packingpaths,cutsandcircuits asurvey,in:B.Korte,L.Lovász,H.J.Prömel,A.Schrijver(Eds.),Paths,Flows,VLSI-Layout,Springer-Verlag,Berlin,1990,pp.49 100.[10]R.Halin,-functionsforgraphs,J.Geom.8(1976)171 186.[11]R.Kapadia,Z.Li,B.Reed,Twodisjointrootedpathsinlineartime,preprint.[12]R.M.Karp,Onthecomputationalcomplexityofcombinatorialproblems,Networks5(1975)45 68.[13]K.Kawarabayashi,B.Reed,Anearlylineartimealgorithmforthehalfintegraldisjointpathspacking,in:ACM SIAMSym-posiumonDiscreteAlgorithms(SODA),2008,pp.446 454.[14]K.Kawarabayashi,P.Wollan,Ashorterproofofthegraphminorsalgorithm theuniquelinkagetheorem,in:Proc.42ndACMSymposiumonTheoryofComputing(STOC),2010,pp.687 694.Adetailedversionofthispaperisavailableathttp://research.nii.ac.jp/~k_keniti/uniquelink.pdf[15]J.Kleinberg,Single-sourceunsplittableow,in:Proc.37thAnnualIEEESymposiumonFoundationsofComputerScience(FOCS),1996,pp.68 77.[16]J.Kleinberg,Decisionalgorithmsforunsplittableowandthehalf-disjointpathsproblem,in:Proc.30thACMSymposiumonTheoryofComputing(STOC),1998,pp.530 539.[17]J.Kleinberg,É.Tardos,Disjointpathsindenselyembeddedgraphs,in:Proc.36thAnnualIEEESymposiumonFoundationsofComputerScience(FOCS),1995,pp.52 61.[18]J.Kleinberg,É.Tardos,Approximationsforthedisjointpathsprobleminhigh-diameterplanarnetworks,J.Comput.SystemSci.57(1998)61 73.[19]Y.Kobayashi,K.Kawarabayashi,Algorithmsforndinganinducedcycleinplanargraphsandboundedgenusgraphs,in:ACM SIAMSymposiumonDiscreteAlgorithms(SODA),2009,pp.1146 1155.[20]S.Kolliopoulos,C.Stein,Improvedapproximationalgorithmsforunsplittableowproblems,in:Proc.38thAnnualIEEESymposiumonFoundationsofComputerScience(FOCS),1997,pp.426 435.[21]J.F.Lynch,Theequivalenceoftheoremprovingandtheinterconnectionproblem,ACMSIGDANewsletter5(1975)31 65.[22]M.Middendorf,F.Pfeiffer,Onthecomplexityofthedisjointpathsproblem,Combinatorica13(1993)97 107.[23]H.Nagamochi,T.Ibaraki,Alinear-timealgorithmforndingasparse-connectedspanningsubgraphofa-connectedgraph,Algorithmica7(1992)583 596.[24]L.Perkovic,B.Reed,Animprovedalgorithmforndingtreedecompositionsofsmallwidth,Internat.J.Found.Comput.Sci.11(2000)365 371.[25]B.Reed,Findingapproximateseparatorsandcomputingtreewidthquickly,in:Proc.24thACMSymposiumonTheoryofComputing(STOC),1992,pp.221 228.[26]B.Reed,Rootedroutingintheplane,DiscreteAppl.Math.57(1995)213 227.[27]B.Reed,Treewidthandtangles:anewconnectivitymeasureandsomeapplications,in:SurveysinCombinatorics,in:LondonMath.Soc.LectureNotesSeries,vol.241,CambridgeUniv.Press,Cambridge,1997,pp.87 162.[28]B.Reed,D.R.Wood,Alinear-timealgorithmtondaseparatorinagraphexcludingaminor,ACMTrans.Algorithms5(39) JID:YJCTBAID:2713/FLA[m1G;v1.58;Prn:27/07/2011;9:20]P.12(1-12)K.Kawarabayashietal./JournalofCombinatorialTheory,SeriesB[29]B.Reed,N.Robertson,A.Schrijver,P.D.Seymour,Findingdisjointtreesinplanargraphsinlineartime,in:Contemp.Math.,vol.147,Amer.Math.Soc.,Providence,RI,1993,pp.295 301.[30]N.Robertson,P.D.Seymour,Graphminors.II.Algorithmicaspectsoftree-width,J.Algorithms7(1986)309 322.[31]N.Robertson,P.D.Seymour,Graphminors.V.Excludingaplanargraph,J.Combin.TheorySer.B41(1986)92 114.[32]N.Robertson,P.D.Seymour,Anoutlineofadisjointpathsalgorithm,in:B.Korte,L.Lovász,H.J.Prömel,A.Schrijver(Eds.),Paths,Flows,andVLSI-Layout,Springer-Verlag,Berlin,1990,pp.267 292.[33]N.Robertson,P.D.Seymour,Graphminors.XIII.Thedisjointpathsproblem,J.Combin.TheorySer.B63(1995)65 110.[34]N.Robertson,P.D.Seymour,Graphminors.XVI.Excludinganon-planargraph,J.Combin.TheorySer.B89(2003)43 76.[35]N.Robertson,P.Seymour,Graphminors.XXI.Graphswithuniquelinkages,J.Combin.TheorySer.B99(2009)583 616.[36]N.Robertson,P.D.Seymour,R.Thomas,Quicklyexcludingaplanargraph,J.Combin.TheorySer.B62(1994)323 348.[37]P.D.Seymour,Disjointpathsingraphs,DiscreteMath.29(1980)293 309.[38]R.E.Tarjan,DataStructuresandNetworkAlgorithms,SIAM,Philadelphia,PA,1983.[39]T.Tholey,Solvingthe2-disjointpathsprobleminnearlylineartime,TheoryComput.Syst.39(2006)51 78.[40]T.Tholey,Improvedalgorithmsforthe2-vertexdisjointpathsproblem,in:Proc.35thConferenceonCurrentTrendsinTheoryandPracticeofComputerScience(SOFSEM),in:LNCS,vol.5404,2009,pp.546 557.[41]C.Thomassen,2-Linkedgraphs,EuropeanJ.Combin.1(1980)371 378.