[identity profile] zaph.livejournal.com 2005-07-12 08:52 pm (UTC)(link)
lunch break? now I'm wasting my whole afternoon on it. not that I mind, as work has been kinda hectic the last few days. :)

[identity profile] ef2p.livejournal.com 2005-07-12 09:21 pm (UTC)(link)
My god that is addictive.

[identity profile] bk2w.livejournal.com 2005-07-12 09:22 pm (UTC)(link)
Gah! Way too entrancing and distracting.

[identity profile] bhudson.livejournal.com 2005-07-12 11:28 pm (UTC)(link)
luckily it has a few redraw issues under firefox on my laptop, or I'd be DOOMED
(past level 4 I gave up)

[identity profile] crackoon.livejournal.com 2005-07-12 11:52 pm (UTC)(link)
God damn I just spend nearly 12 minutes doing level 6, and I don't want to click to the next level. It should be 45 points D=

[identity profile] cynic573.livejournal.com 2005-07-13 01:08 am (UTC)(link)
6:11 on lv.5
4:34 on lv.6
Image

I don't know if I want to do 8 :/

[identity profile] msde.livejournal.com 2005-07-13 01:14 am (UTC)(link)
argh, so addictive.

[identity profile] ka3ytl.livejournal.com 2005-07-13 03:54 am (UTC)(link)
oh my goodness... that's um.... addictive.

very addictive. I think I need to spread the addiction :)

[identity profile] booklegger.livejournal.com 2005-07-13 04:22 am (UTC)(link)
I made it to level 11 before my survival instinct kicked in.

I'll be playing it again, I can tell....



[identity profile] markozeta.livejournal.com 2005-07-13 04:53 am (UTC)(link)
Comp died at level 12. :-(

On the plus side, I have absolutely nothing to do on Friday...

[identity profile] chamois.livejournal.com 2005-07-13 02:15 pm (UTC)(link)
It slowed down to the point where my web browser decided to kill it on level 11. I took that as a sign to stop playing.
blk: (delirium)

[personal profile] blk 2005-07-13 03:17 pm (UTC)(link)
Same here. My computer decided to reboot while I was one 12, and lost my progress. I had done the previous three levels in < 15 mins each, though. I think I've got the knack.

[identity profile] combinator.livejournal.com 2005-07-13 05:15 am (UTC)(link)
Best game ever.

I'm intrigued by the graph generation algorithm. Note: Detecting planarity, as well as "planarizing" a planar graph, can be done in polynomial time, though the algorithm is supposed to be quite complicated. See, e.g. this paper.

[identity profile] attesmythe.livejournal.com 2005-07-13 06:04 am (UTC)(link)
The simplest way would be to create a known-planar graph, then arrange the vertices in random order in the initial circle, preserving edges. If you assume a simple two-dimensional array, each vertex could have 8 edges, and you're guaranteed not to intersect. Just connect each one together in a chain, then add however many other connections you like at random.

Of course, the cynic in me isn't convinced that anything except the initial placement of the vertices is random - but I'm not curious enough to do the work required to test that theory.

(Disclaimer: at a glance)

[identity profile] combinator.livejournal.com 2005-07-14 06:09 am (UTC)(link)
How is the known planar graph created? That's what I was confused about. It appears you assume he just has a database, which is trivial.

I'm not sure what you mean about the vertex-8-edges condition. This isn't a sufficient condition for planarity?

[identity profile] attesmythe.livejournal.com 2005-07-14 06:46 am (UTC)(link)
I just meant that the engine only needs to be able to create planar graphs - it doesn't need to be able to create all planar graphs.

Defining points on a two-dimensional grid makes checks for intersections trivial (though you're right - you can't go up to 8 edges/vertex - that was the early hour speaking).
._._._._._.
|         |
._._._._._.
|         |
._._._._._.
|         |
._._._._._.

There's your planar graph. Add enough other edges to make the game interesting, shuffle, and display. I played through level 15 today, and while I wasn't specifically looking for it, I don't remember finding any vertices which had more than 4 edges, which implies the grid. (I played through L6 just now to confirm).

I'm not positive that this is what the author's doing - just trying to point out that creating a planar graph is much easier than testing a given graph for planarity. You can make assumptions when building that you can't when analyzing.

[identity profile] markozeta.livejournal.com 2005-07-14 10:50 am (UTC)(link)
Actually, while rearranging, I sorta saw a gridish loking thing.

My strat has been to toss out four vertices to the four corners, and begin rearanging until I form a loop of 4 vertices somewhere in the middle. Toss those 4 to the corners, put everything in one center point, and just start unraveling. It's pretty straight forward from there.

Your idea seems to imply that all I was doing was finding one of the rectangles in the grid, made it the outer rectangle, and unraveling. And, as I look back on the screenshots, your right, it does look like that. There seems to be diagonal "bands" in the final graph that imply the graph started as a grid. I'll have to look at it closer after midterms.

[identity profile] bhudson.livejournal.com 2005-07-13 01:21 pm (UTC)(link)
Linear time, to be precise. But, as you say, complicated -- the LEDA folks at least initially decided to write up two planarity tests and if they gave different answers, use a much more expensive but simple algorithm.

Time n^(3/2) is easy using springs (each edge is a spring, then you solve the system using conjugate gradiant). Newer linear solvers run in O(n log n) time """in practice."""

[identity profile] combinator.livejournal.com 2005-07-14 06:12 am (UTC)(link)
Hmm, I hadn't heard of LEDA before, or these other algorithms (after finding the "most efficient" algorithm fairly quickly, I considered my search complete). Actually, though, after reading your description of their "solution" to the planarity problem, I'm not sure if I can trust them.

[identity profile] wandelrust.livejournal.com 2005-07-13 01:07 pm (UTC)(link)
Dammit, I had work to do today.

[identity profile] tadzilla.livejournal.com 2005-07-14 04:44 am (UTC)(link)
I can't get past level 5... *feels stupid*