Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Competition - "Party Planner"

Name: Anonymous 2009-12-21 19:35

Ripped from A K Dewdney's "Magic Machine".

8 guests, who like or dislike each other to varying amounts, move around a room to achieve equilibrium, always moving to minimise discontent.

The room has a boundary.  It also has a table laden with yummy food, which is attractive to the guests.

You have 600 squares; a 20x30 grid.  (Or bigger, if you wish.)

Each guest takes one single square.  You can allow guests to 'walk over' each other.  Guests cannot walk through walls, or over the table.

Here's a table of optimum distances from each other:


   a   b   d   m   p   s   v   w   T
a  0  15   7   2   6   9   4  12   1
b  8   0   6   4   6   3   2  10   1
d 11   4   0   5  12   2   9   6   1
m  6   9   3   0  10   7  13   6   5
p  3  10   5  14   0  11   7  15   5
s 12   2   4   8   5   0  12   4   1
v  7   8  14  10   4  13   0   3   5
w  6   7  13   6   3   8   9   0   5


I'll allow /prog/ to decide winning conditions for the competition.

Name: Anonymous 2009-12-21 19:46

Distance A-B is 15 but B-A is 8. WTF?

Name: Anonymous 2009-12-21 19:47

b likes a.
a thinks b smells of fish.

Name: Anonymous 2009-12-21 19:49

bonus credit: make a reasoned guess at which party attendee is a nigger. explain your reasoning.

Name: Anonymous 2009-12-21 19:52

how large is the damn table?

Name: Anonymous 2009-12-21 19:53

Forget it, it's NP-complete

Name: Anonymous 2009-12-21 19:56

>>6
Not if I have anything to do with it!

Name: Anonymous 2009-12-21 19:58

>>5
1 square and it flys around lol

Name: Anonymous 2009-12-21 20:02

>>6
Its NP-Complete. But to solve it as best you can, you have to add one person at a time and reorder the guests a predetermined number of times attempting to optimize the distances. Keep track of how close to 'optimum' each permutation is and back track if you need to.

Name: Anonymous 2009-12-21 20:15

I'll allow /prog/ to decide winning conditions for the competition.
Very well, then. I propose a kind of elimination tournament. Every poster that doesn't sage is out of the running and cannot post any longer.

Name: Anonymous 2009-12-21 20:22

In the ook the tale is 6x3.

Name: Anonymous 2009-12-22 4:01

>>4
nope dude only code gets points. this is still a programming competition

Name: Anonymous 2009-12-22 6:35

>>8
lol'd

Name: Anonymous 2009-12-22 8:21

well.  I fully expected twenty console mode apps this morning, with another 3 where original specs had been expanded to 500 guests in a 800x480 room.

Name: Anonymous 2009-12-22 9:09

>>14
Too bad you'll have to do your own homework.

Name: Anonymous 2009-12-22 12:16

>>15

consideriing he gives the answer in the book . . .

Name: Anonymous 2009-12-22 15:10

>>16
I'd rather fail as an innovator than succeed as an imitator...

Name: Anonymous 2009-12-22 15:32

>>17
M Dickie detected.

Name: Anonymous 2009-12-22 15:39

EXTRA CHALLENGE REPLACE THE GUESTS WITH A

Name: Anonymous 2009-12-22 15:40

EXTRA CHALLENGE REPLACE THE SCIENTISTS WITH ARTISTS

Name: Anonymous 2009-12-22 16:24

I'm going to grab this challenge by the throat and drag it kicking and screaming to its apex

Name: Anonymous 2009-12-22 17:10

>>9
This guy got it right. /thread

Name: Anonymous 2009-12-22 18:48

>>22
/thread
Back to the imageboards, please

Name: Anonymous 2009-12-22 19:06

>>22 slaps >>9 around a bit with a large thread.

Name: Anonymous 2009-12-22 19:22

>>26 blushes (*Д*)

Name: Anonymous 2009-12-22 19:34

Oye er ah would loik ah pahty PLATTAH!

Name: Anonymous 2009-12-22 23:40

I read that as "Panty Planner"

Name: Anonymous 2009-12-22 23:57

>>27
Ripped from >>1's "Competition".

8 otaku, who like or dislike each other to varying amounts, move around a room to achieve equilibrium, always moving to minimise discontent.

The room has a boundary.  It also has a table laden with used panties, which is attractive to the otaku.

You have 600 squares; a 20x30 grid.  (Or bigger, if you wish.)

Each otaku takes one single square.  You can allow otaku to 'walk over' each other.  Otaku cannot walk through walls, or over the table.

Here's a table of optimum distances from each other:


   a   b   d   m   p   s   v   w   T
a  0  15   7   2   6   9   4  12   1
b  8   0   6   4   6   3   2  10   1
d 11   4   0   5  12   2   9   6   1
m  6   9   3   0  10   7  13   6   5
p  3  10   5  14   0  11   7  15   5
s 12   2   4   8   5   0  12   4   1
v  7   8  14  10   4  13   0   3   5
w  6   7  13   6   3   8   9   0   5

Name: Anonymous 2009-12-25 19:12

the books (armchair universe and magic machine) have oads of this stuff. true /prague/ denizen will grok thee interesting bits and spit out a paragraph, after which it's just a coding challenge.

invaders from /g/ will stmble with understanding the needed algorithms, and not realse the purity of something already posted.

A few people might enjoy typing code, and pointing out optimisations in other segments.

So far, that's about 3% of /prog/, and the rest is haxen my nounen shits.

Name: Anonymous 2010-12-06 9:43

Back to /b/, ``GNAA Faggot''

Don't change these.
Name: Email:
Entire Thread Thread List