Python算法(含源代码下载)

 关键字:Python Algorithms Python算法  Mastering Basic Algorithms in the Python Language 使用Python语言掌握基本算法

Python Algorithms

副标题: Mastering Basic Algorithms in the Python Language
作者: Magnus Lie Hetland 
出版社: Apress
出版年: 2010-11-24
页数: 336
定价: USD 49.99
装帧: Paperback
ISBN: 9781430232377

关于本书 

Python Algorithms explains the Python approach to algorithm analysis and design. Written by Magnus Lie Hetland, author of Beginning Python, this book is sharply focused on classical algorithms, but it also gives a solid understanding of fundamental algorithmic problem-solving techniques.  

  • The book deals with some of the most important and challenging areas of programming and computer science, but in a highly pedagogic and readable manner.
  • The book covers both algorithmic theory and programming practice, demonstrating how theory is reflected in real Python programs.
  • Well-known algorithms and data structures that are built into the Python language are explained, and the user is shown how to implement and evaluate others himself.

 

你将学到

  • Transform new problems to well-known algorithmic problems with efficient solutions, or show that the problems belong to classes of problems thought not to be efficiently solvable.
  • Analyze algorithms and Python programs both using mathematical tools and basic experiments and benchmarks.
  • Prove correctness, optimality, or bounds on approximation error for Python programs and their underlying algorithms.
  • Understand several classical algorithms and data structures in depth, and be able to implement these efficiently in Python.
  • Design and implement new algorithms for new problems, using time-tested design principles and techniques.
  • Speed up implementations, using a plethora of tools for high-performance computing in Python.

本书适合

The book is intended for Python programmers who need to learn about algorithmic problem-solving, or who need a refresher. Students of computer science, or similar programming-related topics, such as bioinformatics, may also find the book to be quite useful.

目录

  1. Introduction
  2. The Basics
  3. Counting 101
  4. Induction and Recursion ... and Reduction
  5. Traversal: The Skeleton Key of Algorithmics
  6. Divide, Combine, and Conquer
  7. Greed Is Good? Prove It!
  8. Tangled Dependencies and Memoization
  9. From A to B with Edsger and Friends
  10. Matchings, Cuts, and Flows
  11. Hard Problems and (Limited) Sloppiness

源代码

Downloads are available to accompany this book.

Download Now

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

 

时间: 2024-07-28 23:55:29

Python算法(含源代码下载)的相关文章

《深入理解Android:Telephony原理剖析与最佳实践》一2.2 Android源代码下载及编译过程

2.2 Android源代码下载及编译过程 前面完成了Ubuntu.JDK.Android SDK的安装和配置,接着开始下载和编译Android 4.0源代码,这个过程简单但花费的时间比较长,请读者先有个心理准备. Android 4.0的代号为Ice Cream Sandwich,简称ICS,中文名称冰淇淋三明治. 2.2.1 工作目录设置 本书采用ICS名称的文件夹作为Android 4.0源代码的根目录,在用户根目录下新建代码根目录ICS文件夹,并设置此目录为工作目录,在.bashrc中增

Python解析网页源代码中的115网盘链接实例_python

本文实例讲述了python解析网页源代码中的115网盘链接的方法.分享给大家供大家参考.具体方法分析如下: 其中的1.txt,是网页http://bbs.pediy.com/showthread.php?t=144788另存为1.txt 具体代码如下: import re if __name__ == "__main__": fp = open("c:\\1.txt") https = re.compile(r"(http://u.*)") fo

谁有注册表垃圾和Windows垃圾文件清理的算法或源代码?

问题描述 谁有注册表垃圾和Windows垃圾文件清理的算法或源代码?想研究一下这方面,高分求 解决方案 解决方案二:遍历文件,查看失效的.lnk文件,删除.log文件,删除temp文件等遍历注册表,查找无效的注册表键值解决方案三:网上有一个广为流传的清除"垃圾文件"的批处理,你可以参考.解决方案四:引用2楼caozhy的回复: 网上有一个广为流传的清除"垃圾文件"的批处理,你可以参考. 要做一个桌面软件,请问怎么实现才能达到批处理的效果,例如,查找文件,得到文件的大

谷歌大规模机器学习:模型训练、特征工程和算法选择 (32PPT下载)

  本文转自:http://mp.weixin.qq.com/s/Xe3g2OSkE3BpIC2wdt5J-A   谷歌大规模机器学习:模型训练.特征工程和算法选择 (32PPT下载) 2017-01-26 新智元 1新智元编译    来源:ThingsExpo.Medium 作者:Natalia Ponomareva.Gokula Krishnan Santhanam 整理&编译:刘小芹.李静怡.胡祥杰 新智元日前宣布,获6家顶级机构总额达数千万元的PreA轮融资,蓝驰创投领投,红杉资本中国基

做个人站长难,做源代码下载站的站长更难

站长之声-讲述站长自己的故事 今天看了阻击者写的<往昔源码站今何在-谈源码下载的细分>,心里有很多的感触,文中他提到了yuanma8以前做会员代码吸引人,另外也提到了很多当年和源码吧一样做源码下载的站,阻击者我很熟悉,好像是03年我做源码吧不久,我QQ上就有他了,聊过很多次,后来因为我以前那QQ被盗,一直没和他联系过. 看了那文章,心里确实有几许伤感,当年的那些老站,到现在能够存活下来的没几个了,那个时候最火的是K666,到现在也已经是完全的死了,还有很多源码站,比如aspsun等都消失了,能

Python实现股市信息下载的方法

       本文实例讲述了Python实现股市信息下载的方法.分享给大家供大家参考.具体如下:        该程序下载来自yahoo财经的股市信息. ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 import urllib def getURL(url): socket = urllib.urlopen(url) readSocket = socket.read() socket.close() return readS

Python实现豆瓣图片下载的方法

  本文实例讲述了Python实现豆瓣图片下载的方法.分享给大家供大家参考.具体分析如下: 1 用 tk 封装一下 2 用户可以自己输入图片url ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 download_douban_album # -*-coding:UTF-8 -*- import re import urllib def

python实现从网络下载文件并获得文件大小及类型的方法

  这篇文章主要介绍了python实现从网络下载文件并获得文件大小及类型的方法,涉及Python操作网络文件的相关技巧,需要的朋友可以参考下 本文实例讲述了python实现从网络下载文件并获得文件大小及类型的方法.分享给大家供大家参考.具体实现方法如下: ? 1 2 3 4 5 6 7 8 9 10 11 import urllib2 from settings import COOKIES opener = urllib2.build_opener() cookies = ";".j

jena是否是开源的?如果是,请提供一下源代码下载地址,谢谢!

问题描述 jena是否是开源的?如果是,请提供一下源代码下载地址,谢谢! 请问jena是开源的吗?是否提供源代码?提供一下源代码下载地址,谢谢 解决方案 是开源的.可以去官网https://jena.apache.org/