Chapter 2. Searching and Sorting


    Section 2.1.  Introduction

    Section 2.2.  Sorting a Dictionary

    Section 2.3.  Processing Selected Pairs of Structured Data Efficiently

    Section 2.4.  Sorting While Guaranteeing Sort Stability

    Section 2.5.  Sorting by One Field, Then by Another

    Section 2.6.  Looking for Items in a Sorted Sequence Using Binary Search

    Section 2.7.  Sorting a List of Objects by an Attribute of the Objects

    Section 2.8.  Sorting by Item or by Attribute

    Section 2.9.  Selecting Random Elements from a List Without Repetition

    Section 2.10.  Performing Frequent Membership Tests on a Sequence

    Section 2.11.  Finding the Deep Index of an Item in an Embedded Sequence

    Section 2.12.  Showing Off Quicksort in Three Lines

    Section 2.13.  Sorting Objects Using SQL's ORDER BY Syntax



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