资源描述:
《Algorithms 4th Edition》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、AlgorithmsFOURTHEDITIONThispageintentionallyleftblankAlgorithmsFOURTHEDITIONRobertSedgewickandKevinWaynePrincetonUniversityUpperSaddleRiver,NJBostonIndianapolisSanFranciscoNewYorkTorontoMontrealLondonMunichParisMadridCapetownSydneyTokyoSingaporeMexicoCityManyofthedesignationsus
2、edbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andthepublisherwasawareofatrademarkclaim,thedesignationshavebeenprintedwithinitialcapitallettersorinallcapitals.Theauthorsandpublisherhavetakencareinthepreparation
3、ofthisbook,butmakenoexpressedorim-pliedwarrantyofanykindandassumenoresponsibilityforerrorsoromissions.Noliabilityisassumedforincidentalorconsequentialdamagesinconnectionwithorarisingoutoftheuseoftheinformationorprogramscontainedherein.Thepublisheroffersexcellentdiscountsonthisb
4、ookwhenorderedinquantityforbulkpurchasesorspecialsales,whichmayincludeelectronicversionsand/orcustomcoversandcontentparticulartoyourbusiness,traininggoals,marketingfocus,andbrandinginterests.Formoreinformation,pleasecontact:U.S.CorporateandGovernmentSales(800)382-3419corpsales@
5、pearsontechgroup.comForsalesoutsidetheUnitedStates,pleasecontact:InternationalSalesinternational@pearson.comVisitusontheWeb:informit.com/awCataloging-in-PublicationDataisonÞlewiththeLibraryofCongress.Copyright©2011PearsonEducation,Inc.Allrightsreserved.PrintedintheUnitedStateso
6、fAmerica.Thispublicationisprotectedbycopyright,andpermissionmustbeobtainedfromthepublisherpriortoanyprohibitedreproduction,storageinaretrievalsystem,ortransmissioninanyformorbyanymeans,electronic,mechanical,photocopying,recording,orlikewise.Forinformationregardingpermissions,wr
7、iteto:PearsonEducation,Inc.RightsandContractsDepartment501BoylstonStreet,Suite900Boston,MA02116Fax:(617)671-3447ISBN-13:978-0-321-57351-3ISBN-10:0-321-57351-XTextprintedintheUnitedStatesonrecycledpaperatCourierinWestford,Massachusetts.Firstprinting,March2011____________________
8、__________ToAdam,Andrew,Brett,RobbieandespeciallyLinda