Skip to Content
Dive Into Algorithms
book

Dive Into Algorithms

by Bradford Tuckfield
January 2021
Beginner to intermediate
248 pages
7h 2m
English
No Starch Press
Content preview from Dive Into Algorithms

7 Geometry

We humans have a deep, intuitive grasp of geometry. Every time we maneuver a couch through a hallway, draw a picture in Pictionary, or judge how far away another car on the highway is, we’re engaging in some kind of geometric reasoning, often depending on algorithms that we’ve unconsciously mastered. By now, you won’t be surprised to learn that advanced geometry is a natural fit for algorithmic reasoning.

In this chapter, we’ll use a geometric algorithm to solve the postmaster problem. We’ll begin with a description of the problem and see how we can solve it using Voronoi diagrams. The rest of the chapter explains how to algorithmically ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Algorithms

Learning Algorithms

George Heineman
Grokking Algorithms

Grokking Algorithms

Aditya Bhargava
Graph Algorithms

Graph Algorithms

Mark Needham, Amy E. Hodler
Algorithms in a Nutshell, 2nd Edition

Algorithms in a Nutshell, 2nd Edition

George T. Heineman, Gary Pollice, Stanley Selkow

Publisher Resources

ISBN: 9781098128210Errata Page