Chapter 17. Algorithms


    Section 17.1.  Introduction

    Section 17.2.  Testing if a Variable Is Defined

    Section 17.3.  Evaluating Predicate Tests Across Sequences

    Section 17.4.  Removing Duplicates from a Sequence

    Section 17.5.  Removing Duplicates from a Sequence While Maintaining Sequence Order

    Section 17.6.  Simulating the Ternary Operator in Python

    Section 17.7.  Counting Items and Sorting by Incidence (Histograms)

    Section 17.8.  Memoizing (Caching) the Return Values of Functions

    Section 17.9.  Looking Up Words by Sound Similarity

    Section 17.10.  Computing Factorials with lambda

    Section 17.11.  Generating the Fibonacci Sequence

    Section 17.12.  Wrapping an Unbounded Iterator to Restrict Its Output

    Section 17.13.  Operating on Iterators

    Section 17.14.  Rolling Dice

    Section 17.15.  Implementing a First-In First-Out Container

    Section 17.16.  Modeling a Priority Queue

    Section 17.17.  Converting Numbers to Rationals via Farey Fractions

    Section 17.18.  Evaluating a Polynomial

    Section 17.19.  Module: Finding the Convex Hull of a Set of 2D Points

    Section 17.20.  Module: Parsing a String into a Date/Time Object Portably



Python Cookbook
Python Cookbook
ISBN: 0596007973
EAN: 2147483647
Year: 2005
Pages: 346

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net