算法设计与分析基础第三ch.ppt

算法设计与分析基础第三PPTch第一页,共43页。

Instancesimplification-PresortingSolveaproblem’sinstancebytransformingitintoanothersimpler/easierinstanceofthesameproblemPresortingManyproblemsinvolvinglistsareeasierwhenlistissorted,e.g.searchingcomputingthemedian(selectionproblem)checkingifallelementsaredistinct(elementuniqueness)

Also:Topologicalsortinghelpssolvingsomeproblemsfordags.Presortingisusedinmanygeometricalgorithms.第二页,共43页。

Howfastcanwesort?Efficiencyofalgorithmsinvolvingsortingdependsonefficiencyofsorting.Theorem(seeSec.11.2):?log2

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档