ImageVerifierCode 换一换
格式:PDF , 页数:325 ,大小:2.70MB ,
资源ID:5017    下载:注册后免费下载
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.wenkunet.com/d-5017.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录   微博登录 

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(Python Algorithms- Mastering Basic Algorithms in the Python Language.pdf)为本站会员(刘岱文)主动上传,文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知文库网(发送邮件至13560552955@163.com或直接QQ联系客服),我们立即给予删除!

Python Algorithms- Mastering Basic Algorithms in the Python Language.pdf

1、Python Algorithms Mastering Basic Algorithms in the Python Language Magnus Lie Hetland Python Algorithms: Mastering Basic Algorithms in the Python Language Copyright 2010 by Magnus Lie Hetland All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, ele

2、ctronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. ISBN-13 (pbk): 978-1-4302-3237-7 ISBN-13 (electronic): 978-1-4302-3238-4 Printed and bound in the United States

3、of America 9 8 7 6 5 4 3 2 1 Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with n

4、o intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. President and P

5、ublisher: Paul Manning Lead Editor: Frank Pohlmann Development Editor: Douglas Pundick Technical Reviewer: Alex Martelli Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Jonathan Gennick, Jonathan Hassell, Michelle Lowman, Matthew Moodie, Duncan Parkes, Jeffrey Pepper, Fra

6、nk Pohlmann, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Matt Wade, Tom Welsh Coordinating Editor: Adam Heath Compositor: Mary Sudul Indexer: Brenda Miller Artist: April Milne Cover Designer: Anna Ishchenko Photo Credit: Kai T. Dragland Distributed to the book trade worldwide by Springer

7、Science+Business Media, LLC., 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-nyspringer-, or visit . For information on translations, please e-mail , or visit . Apress and friends of ED books may be purchased in bulk for academic, corporate,

8、 or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk SaleseBook Licensing web page at The information in this book is distributed on an “as is” basis, without warranty. Although every precaution has been taken in the p

9、reparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work. The source code for this book is available to readers at For

10、my students. May your quest for knowledge be richly rewarded. CONTENTS v g38g82g81g87g72g81g87g86g3g68g87g3g68g3g42g79g68g81g70g72g3Contents.vi About the Author .xiii About the Technical Reviewer.xiv Acknowledgments .xv Preface .xvi Chapter 1: Introduction.1g3 Chapter 2: The Basics .9g3 Chapter 3: C

11、ounting 101 .45g3 Chapter 4: Induction and Recursion and Reduction.71g3 Chapter 5: Traversal: The Skeleton Key of Algorithmics .101g3 Chapter 6: Divide, Combine, and Conquer.125g3 Chapter 7: Greed Is Good? Prove It!.151g3 Chapter 8: Tangled Dependencies and Memoization .175g3 Chapter 9: From A to B

12、with Edsger and Friends.199g3 Chapter 10: Matchings, Cuts, and Flows .221g3 Chapter 11: Hard Problems and (Limited) Sloppiness .241g3 Appendix A: Pedal to the Metal: Accelerating Python .271g3 Appendix B: List of Problems and Algorithms .275g3 Appendix C: Graph Terminology.285g3 Appendix D: Hints fo

13、r Exercises.291g3 Index .307g3 CONTENTS vi g38g82g81g87g72g81g87g86g3Contents at a Glance.v About the Author .xiii About the Technical Reviewer.xiv Acknowledgments .xv Preface .xvi Chapter 1: Introduction.1g3Whats All This, Then? .2g3Why Are You Here? .3g3Some Prerequisites .4g3Whats in This Book .5

14、g3Summary .6g3If Youre Curious .6g3Exercises .7g3References.7g3 Chapter 2: The Basics .9g3Some Core Ideas in Computing .9g3Asymptotic Notation .10g3Its Greek to Me! .12g3Rules of the Road .14g3Taking the Asymptotics for a Spin.16g3Three Important Cases .19g3Empirical Evaluation of Algorithms.20g3 CO

15、NTENTS vii Implementing Graphs and Trees.23g3Adjacency Lists and the Like.25g3Adjacency Matrices .29g3Implementing Trees.32g3A Multitude of Representations .35g3Beware of Black Boxes.36g3Hidden Squares .37g3The Trouble with Floats .38g3Summary .40g3If Youre Curious .41g3Exercises .42g3References.43g

16、3 Chapter 3: Counting 101 .45g3The Skinny on Sums .45g3More Greek .46g3Working with Sums .46g3A Tale of Two Tournaments.47g3Shaking Hands.47g3The Hare and the Tortoise .49g3Subsets, Permutations, and Combinations.53g3Recursion and Recurrences.56g3Doing It by Hand .57g3A Few Important Examples.58g3Gu

17、essing and Checking .62g3The Master Theorem: A Cookie-Cutter Solution .64g3So What Was All That About? .67g3Summary .68g3If Youre Curious .69g3Exercises .69g3 CONTENTS viii References.70g3 Chapter 4: Induction and Recursion and Reduction.71g3Oh, Thats Easy!.72g3One, Two, Many.74g3Mirror, Mirror .76g

18、3Designing with Induction (and Recursion).81g3Finding a Maximum Permutation .81g3The Celebrity Problem .85g3Topological Sorting.87g3Stronger Assumptions .91g3Invariants and Correctness.92g3Relaxation and Gradual Improvement.93g3Reduction + Contraposition = Hardness Proof .94g3Problem Solving Advice .95g3Summary .96g3If Youre Curious .97g3Exercises .97g3References.99g3 Chapter 5: Traversal: The Skeleton Key of Algorithmics .101g3A Walk in the Park .107g3No Cycles Allowed .108g3How to Stop Walking in Circles .109g3Go Deep! .110g3Depth-First Times

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:文库网官方知乎号:文库网

经营许可证编号: 粤ICP备2021046453号世界地图

文库网官网©版权所有2025营业执照举报