News for hackers. Stuff that matters.
Re:Planarity - a game with planar graphs by jurjenhaitsma on Monday March 30, 2009 @05:03AM (#538330)
This is pretty choice - reminds me of untangling a circuit layout... Never really looked into it that much, but I'd imagine there must be a mathematical technique that can be applied. My first instinct has always been to put the point with the most connections in the centre, then map out from that.
Re:Planarity - a game with planar graphs by boblol123 on Monday March 30, 2009 @10:22AM (#538530)
Take the vertex whose vertices cross the biggest number of other vertices and move it. Repeat until nothing crosses. I remember this problem in maths ages ago, there is a way to know if you can't untangle something- look up the water gas electricity problem
Re:Planarity - a game with planar graphs by gjm11 on Monday March 30, 2009 @12:52PM (#538735)
A graph is nonplanar if and only if it has a subgraph that looks like either (1) five vertices all connected to one another or (2) two sets of three vertices, with every vertex in one set connected to every vertex in the other.

"Looks like" means: can be turned into by repeatedly replacing -o- (a vertex with two edges coming out of it) with -- (a single edge between the vertex's two old neighbours).

See http://en.wikipedia.org/wiki/Planar_graph for details.

Re:Planarity - a game with planar graphs by eru on Monday March 30, 2009 @08:13AM (#538420)
Good luck. The problem may be NP complete in general.
Re:Planarity - a game with planar graphs by shrughes on Monday March 30, 2009 @09:02AM (#538449)
Well, for the cases on planarity.net, it seems O(n) to me. Or maybe something like O(n log n)
Re:Planarity - a game with planar graphs by gjm11 on Monday March 30, 2009 @12:53PM (#538736)
It's O(n) in the general case, so certainly also for the special cases on planarity.net.
Re:Planarity - a game with planar graphs by eru on Tuesday March 31, 2009 @04:46AM (#539824)
Could you give me a source or the name of the algorithm, that allows this running time?
Re:Planarity - a game with planar graphs by gjm11 on Tuesday March 31, 2009 @03:42PM (#540672)
The Wikipedia article on planarity testing cites, for instance, this paper: http://jgaa.info/accepted/2004/BoyerMyrvold2004.8.3.pdf which describes a not-insanely-complicated algorithm that constructs planar embeddings (or proves they don't exist) in linear time.
Re:Planarity - a game with planar graphs by eru on Tuesday March 31, 2009 @07:04AM (#539913)
P.S. I found a O(n) running time for planarity testing - but not embedding.
Re:Planarity - a game with planar graphs by madair on Monday March 30, 2009 @11:11AM (#538599)
It would be interesting to couple this game with user profiles that include questions related to mysteries and observations in cognitive science. Thinks like left/right handed, formal education, would be interesting too.
Re:Planarity - a game with planar graphs by barrettcolin on Monday March 30, 2009 @05:27AM (#538336)
Spooky: there is an almost identical iPhone game called 'The Plateau'. Screens here: http://www.tuaw.com/photos/the-plateau/1270610/
Re:Planarity - a game with planar graphs by smanek on Monday March 30, 2009 @05:55AM (#538352)
I remember playing playing Planarity well before the iPhone came out, so 'The Plateau' is just a copy.

In fact, the "Way Back Machine" shows Planarity, basically unchanged, in 2005: http://web.archive.org/web/20050731231914/http://www.planari...

Re:Planarity - a game with planar graphs by derwiki on Monday March 30, 2009 @09:40AM (#538485)
I think this game won John "One of the Most Interesting People In Cleveland" when he wrote this sophomore year at CWRU. I'm happy to see that his project is still being enjoyed!
Re:Planarity - a game with planar graphs by gord on Monday March 30, 2009 @09:58AM (#538505)
Highly addictive... Got to 1500 odd, had a sneak peak at level 30 then gracefully bowed out.

Used a combination of heuristics - move a vertex to the centroid of its neighbors, and move randomly to reduce edge intersections.

eyes burning.