Hacker News new | ask | show | jobs
by Jtsummers 3671 days ago
Practice, and read about similar puzzles/problems. Track down reprints/scans of Martin Gardner's Mathematical Games and similar publications.

In general, for identifying if something is a graph problem:

1) Through some mapping, (almost?) everything can be transformed into a graph problem of some sort. Now, that's a bit too big a set and ignores the real question.

2) How do I identify that a problem is practically solved with graphs?

Some heuristics (note, these are heuristics, particularly useful for getting started, but not at all absolutes):

Is it discrete? In the given problem from the link we have a finite number of extreme points (ends of each line segment), but an infinite number of points between. Fortunately, thanks to the problem constraint, there are only a few non-endpoints that we are concerned with. So we can safely ignore the infinity of possibilities by only examining this finite set.

Are there transitions between these states that are easily modeled as edges? In the given puzzle, absolutely. And its symmetric so an undirected graph is suitable (sometimes directed graphs would be more suitable or the only applicable solution).

After this, proving various things (like that the generalized statement that all properly constructed puzzles have a solution) will require learning some of the basic properties of graphs, and how to restate the premises (such as constraints on altitude and movement) in a graph-theoretic form. It's easy to intuit the proof now that you have a simplified, but complete, model of the problem, but harder to state it with mathematical certitude. That part really will just require more practice and exposure.

At some point you'll develop sufficient vocabulary in the field that you may not be able to prove it straight off, but you'll know what and where to look for the elements you need to construct a proof like they have.

1 comments

> Practice, and read about similar puzzles/problems. Track down reprints/scans of Martin Gardner's Mathematical Games and similar publications.

The entire set of the 15 books that collected his "Mathematical Games" columns from Scientific American are available in PDF form on a CD-ROM:

http://www.amazon.com/Martin-Gardners-Mathematical-Games-Gar...