Skip to main content
  • Book
  • © 2014

Python Algorithms

Mastering Basic Algorithms in the Python Language

Apress
  • Python Algorithms, Second Edition shows you how to implement classic algorithms and design new problem-solving algorithms using Python.

Buy it now

Buying options

eBook USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (15 chapters)

  1. Front Matter

    Pages i-xxi
  2. Introduction

    • Magnus Lie Hetland
    Pages 1-7
  3. The Basics

    • Magnus Lie Hetland
    Pages 9-41
  4. Counting 101

    • Magnus Lie Hetland
    Pages 43-66
  5. Induction and Recursion ... and Reduction

    • Magnus Lie Hetland
    Pages 67-92
  6. Traversal: The Skeleton Key of Algorithmics

    • Magnus Lie Hetland
    Pages 93-113
  7. Divide, Combine, and Conquer

    • Magnus Lie Hetland
    Pages 115-138
  8. Greed Is Good? Prove It!

    • Magnus Lie Hetland
    Pages 139-161
  9. Tangled Dependencies and Memoization

    • Magnus Lie Hetland
    Pages 163-185
  10. From A to B with Edsger and Friends

    • Magnus Lie Hetland
    Pages 187-208
  11. Matchings, Cuts, and Flows

    • Magnus Lie Hetland
    Pages 209-225
  12. Hard Problems and (Limited) Sloppiness

    • Magnus Lie Hetland
    Pages 227-253
  13. Pedal to the Metal: Accelerating Python

    • Magnus Lie Hetland
    Pages 255-258
  14. List of Problems and Algorithms

    • Magnus Lie Hetland
    Pages 259-265
  15. Graph Terminology

    • Magnus Lie Hetland
    Pages 267-271
  16. Hints for Exercises

    • Magnus Lie Hetland
    Pages 273-287
  17. Back Matter

    Pages 289-295

About this book

Python Algorithms, Second Edition 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 in a highly readable manner. It 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.

Reviews

“The book is structured as probably any book or course for programming. Starting from the basics with the Asymptotic Notation and the complexity of algorithms and going to various structures and cases. After each chapter you have problems with hints for their resolution at the end of the book. … If you know Python already to some good working level and you need to understand algorithms for a reason, the book would bring you there.” (Vitosh Academy, vitoshacademy.com, October, 2015)

About the author

Magnus Lie Hetland is an experienced Python programmer, having used the language since the late 1990s. He is also an associate professor of algorithms at the Norwegian University of Science and Technology, having taught algorithms for the better part of a decade. Hetland is the author of Practical Python and Beginning Python, first and second editions, as well as several scientific papers.

Bibliographic Information

Buy it now

Buying options

eBook USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access