1 / 16
文档名称:

CPS 196.2.ppt

格式:ppt   大小:162KB   页数:16页
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

CPS 196.2.ppt

上传人:陈潇睡不醒 2020/1/8 文件大小:162 KB

下载得到文件列表

CPS 196.2.ppt

相关文档

文档介绍

文档介绍:,algorithms,runtime,hardness(puterscience)VincentConitzerSetCover(acomputationalproblem)Wearegiven:AfinitesetS={1,…,n}AcollectionofsubsetsofS:S1,S2,…,SmWeareasked:FindasubsetTof{1,…,m}suchthatUjinTSj=SMinimize|T|Decisionvariantoftheproblem:weareadditionallygivenatargetsizek,andaskedwhetheraTofsizeatmostkwillsufficeOneinstanceofthesetcoverproblem: S={1,…,6},S1={1,2,4},S2={3,4,5},S3={1,3,6},S4={2,3,5},S5={4,5,6},S6={1,3}VisualizingSetCoverS={1,…,6},S1={1,2,4},S2={3,4,5},S3={1,3,6},S4={2,3,5},S5={4,5,6},S6={1,3}136542AlgorithmsandruntimeWesaw:theruntimeofglpsolonsetcoverinstancesincreasesrapidlyastheinstances’sizesincreaseifwedroptheintegralityconstraint,canscaletolargerinstancesQuestions:Usingglpsolonourintegerprogramformulationisbutonealgorithm–maybeotheralgorithmsarefaster?differentformulation;differentoptimizationpackage();binationsonebyone;…Whatis“fastenough”?Do(mixed)integerprogramsalwaystakemoretimetosolvethanlinearprograms?Dosetcoverinstancesfundamentallytakealongtimetosolve?PolynomialtimeLet|x|bethesizeofprobleminstancex()LetabeanalgorithmfortheproblemSupposethatforanyx,runtime(a,x)<cf(|x|)forsomeconstantcandfunctionf Thenwesayalgorithma’sruntimeisO(f|x|)aisapolynomial-timealgorithmifitisO(f(|x|))forsomepolynomialfunctionfPistheclassofallproblemsthathaveatleastonepolynomial-timealgorithmManypeopleconsideranalgorithmefficientifandonlyifitispolynomial-timeTwoalgorithmsforaproblemn=|x|runtime2n22nrunofalgorithm1runofalgorithm2Algorithm1isO(n2)(apolynomial-timealgorithm)Algorithm2isnotO(nk)foranyconstantk(notapolynomial-timealgorithm)TheproblemisinPLinearprogrammingand(mixed)integerprogrammingLPand(M)putationalproblemsLPisinPIronically,monlyusedLPalgorithmsarenotpolynomial-time(but“usually”polynomialtime)(M)IPisnotknowntobeinPMostpeopleconsiderthisunlikelyReductionsSometimesyoucanreformulateproblemAintermsofproblemB()