Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old August 7th, 2002, 04:36 AM
Àngel Àngel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 11 Àngel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Mathematicians in the forum?

My maths are bad. I are not capable to compute maximal posible score in the crossword puzzle contest

If the 20x20 grid is fit with 40 words of 20 letters each:

40 words * 5 points = 200 points
400 connectors * 3 points = 1200 points
400 filled in spaces = 400 points
Total score: 1800 points

But scores can be better... If one of these 400 letters in the center of grid is reemplaced with a space, then:

42 words * 5 points = 210 points
399 connectors * 3 points = 1197 points
399 filled in spaces = 399 points
total 1806 points

With more spaces, they are more words, and then the score can be better... Just for curiosity, can anyone calculate the theorical best posible score?

Àngel

Reply With Quote
  #2  
Old August 7th, 2002, 08:22 AM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
RE: Mathematicians in the forum?

I think this is correct:
242 words = 1210
260 connectors = 780
280 filled spaces = 280
total = 2270
If that's not it, it's very close.

B

Reply With Quote
  #3  
Old August 8th, 2002, 06:15 AM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
RE: Mathematicians in the forum?

on further review I believe the answer to be this:

244 words = 1220
267 connectors = 801
280 filled = 280
total = 2301

Reply With Quote
  #4  
Old August 8th, 2002, 06:23 AM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
RE: Mathematicians in the forum?

This is what it would look like:
O = letter
X = blank

OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OXOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OOOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OOOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OOOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OOOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OOOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
OOOXOOXOOXOOXOOXOOOO





Reply With Quote
  #5  
Old August 8th, 2002, 09:05 AM
gatopeich gatopeich is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Madrid, Spain / Boston, MA
Posts: 96 gatopeich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 54 sec
Reputation Power: 2
Send a message via Yahoo to gatopeich
RE: Mathematicians in the forum?

This makes me think that the score schema was not very good.
The best crossword should have the least unfilled squares, so the 40 20 letter words should have the best possible score.
The '5 points per word' schema gives more points to the more words, thus leading to a 'word-ladder' solution more than a crossword.

Reply With Quote
  #6  
Old August 8th, 2002, 12:35 PM
Àngel Àngel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 11 Àngel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: RE: Mathematicians in the forum?

Quote:
on further review I believe the answer to be this:

244 words = 1220
267 connectors = 801
280 filled = 280
total = 2301

This is what it would look like:
O = letter
X = blank

OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OXOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OOOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OOOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OOOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OOOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
XOOXOOXOOXOOXOOXOOOO
OOOOXOOXOOXOOXOOXOOX
OOXOOXOOXOOXOOXOOXOO
OOOXOOXOOXOOXOOXOOOO


Thanks bakertrg. Really looks optimal. I know i myself had been able to solve this problem with a little patience and plotting paper, but I am not able to verify if the solution is really optimal, for that, a maths knowledge is need.

And also, if all the rules of original Matt's contest must be applyed, this is a much more hard problem... Remember: a max of 200 words in wordlist.txt is in the rules...

With 200 max words, this can be the a solution:

0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 .
. 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0
0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0
0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0
0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 .
. 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0
0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0
0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0
0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 .
. 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0
0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0
0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0
0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 .
. 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0
0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0
0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0
0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 .
. 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0
0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0
0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0

200 words * 5 = 400
284 connectors * 3 = 852
300 filleds *1 = 300
total 2152 points

but again, i am not able to verify if this is optimal...

quoting gatopeich
Quote:
This makes me think that the score schema was not very good.
The best crossword should have the least unfilled squares, so the 40 20 letter words should have the best possible score.
The '5 points per word' schema gives more points to the more words, thus leading to a 'word-ladder' solution more than a crossword.


I agree.

Àngel

Reply With Quote
  #7  
Old August 8th, 2002, 03:32 PM
happylight happylight is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 11 happylight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to happylight
RE: Mathematicians in the forum?

bakertrg:
all the words have to be connected. your example doesnt qualify.

Reply With Quote
  #8  
Old August 13th, 2002, 09:24 PM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
RE: Mathematicians in the forum?

All the words are connected. If you look close you'll see that there is one missing X in every row of blanks (X's)running NW to SE. The code I wrote to figure this out verified that every NON X square can be reached from every other NON X in a contiguous path.

Reply With Quote
  #9  
Old August 13th, 2002, 09:41 PM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
RE: Mathematicians in the forum?

Incidently I don't have the math skill to figure this out either but I intuitively knew what the layout would look like based upon the scoring so it was easy to write some code to maximize the outcome. The first time I didn't tell the code to look for a maximal value when removing 1 X from each row so it came upa little short. It still could be off by a small margin because I didn't do this mathmatically I just told the script to draw a grid based upon OOX, phase shift every row one space, then go back and remove an X from every angular row and compute the total score.

To verify all words are connected I told the script to compare the vertical and horizontal neighbors of every O and trace a path back to the top left square stopping as soon as it found a square that had already been verified.

B

Reply With Quote
  #10  
Old August 14th, 2002, 12:17 AM
happylight happylight is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 11 happylight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to happylight
RE: Mathematicians in the forum?

oops.. didnt see that
my sincere apologies

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > Mathematicians in the forum?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT