Problem: are two points in the same polygon?
Solution: a line drawn between those two points has an odd number of intersections with the polygon if they are both in it (or outside of it), and even number if they are not.
That's under-informative, we only know that both points are in the same polygon or outside of it. The underlying elegant algorithm is that of knowing whether a point is inside a polygon: a ray from that point out to infinity intersects the polygon an odd number of times if the point is in it, even otherwise.
I judge the quality of books on software project management from references. I look at references section, and if I don't find any Gerald M. Weinberg I flat out discard the whole book because the author obviously didn't do his homework.
Pretty much the wisest author of all. Most of the time I feel like I owe everything I know to him.