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 July 18th, 2002, 09:01 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
progress

Hey, does anyone mind sharing their progress?

How many words (maximum) have you been able to display from the given list? And how long is your script execution time? Mine just zips by in less then a second, and I have yet to add in the code to find the execution time. I'm on an amd 1800+, 512mb ddr266, win2k pro, apache1.3.26+php4.2.1.

I'm trying to sort it in a special way so that the words with the most possible connections will be added to my matrix first...

I still have to experiment with different sorting algorithms since in my program choosing the ideal sorting program will display a LOT more words than crappy ones (at one point i only got 6 words to display !@#!).

Oh and Matt, I assume you are the jugde? How do you plan to calculate the # of words displayed and the connections? Would it be easier if we made our programs calculate this? Of course there is always the "cheating" involved if we had our program print out # of words and connections :-). Oh yeah: and what computer will you be using to run our programs? Is it the crappy computer you mentioned in the contest rules (266mhz, 128 ram)?

-sridhar

Reply With Quote
  #2  
Old July 19th, 2002, 09:29 AM
numbah numbah is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 numbah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: progress

Add that total number of squares used to you score. I am able to score avarage of 30 words, total score of about 700 with the given wordlist. Random and a 200MHz linux is used with total running time of 10 seconds.

Reply With Quote
  #3  
Old July 19th, 2002, 04:43 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: progress

Hi,

I got 38 words when I optimized my starting word position. I used a different sorting algorithm, which I believe works quite when.

I tried not sorting it and I get about 10 words less.

Here are my details:
# of words: 38 * 5 = 190
# of spaces taken: 197 * 1 = 197
# of connector: 45 * 3 = 135
My total score: 522
Total processing time: 1.63 seconds (on average).
I'm on a amd1800+, 512 ddr266, apache1.3.26+php4.2.1, windows 2k pro with latest service packs and all updates (which i doubt should really make a difference :-)

I've only worked on this script yesterday (you probably saw all those crazy posts!). I also did a leftovers collection to collect all the words not added and then rerun the algorithm to see if they'll fit anywhere... unfortunately all this did was take up twice the time (and more memory for the array).

numbah, how were you able to get 700 with just 30 words? Did you get all the really long words on there? Or you probably had tons of connectors :-)

I'm in the process of putting up my script. I used a firewall on my home system (where i'm running this), so I can't give you the URL. My web server is getting a new HD, so my web host has taken it down for about 2 days. I'll certainly put up my script then.

Also, have any of you tried increasing the grid size (just for the heck of it)? I got all 154 words to display with a grid size of 53x52 (min) :-)

good luck to all those who're entering,
-sridhar

Reply With Quote
  #4  
Old July 19th, 2002, 04:46 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: progress

Hehe, made a mistake:

change "I believe it works quite when" to "... quite well".

-sridhar

Reply With Quote
  #5  
Old July 19th, 2002, 08:42 PM
DevlshOne DevlshOne is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Missouri, USA
Posts: 30 DevlshOne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: progress

How can you optimize the first word position without knowing all the words that will be attached to it?
I iterate the "place a word if it isn't used yet" loop 4 times. If I try any more, it will go beyond the 30s time limit.
I gotta try that grid size increase and see how it works!
BTW.. I switched to Apache 2.0.3.9 from IIS and my proctime is now 3x better.. good advert for the Apache folks.

Reply With Quote
  #6  
Old July 19th, 2002, 11:20 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: progress

I was wondering if anyone would be kind enough to maybe explain the steps their algorythms are doing?
I'm not enterin the contest, I just think it's cool too learn more php by the codewalkers site in general.
Regards.

Reply With Quote
  #7  
Old July 19th, 2002, 11:25 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: progress

I'd ask that no one answer the previous question. The scripts submitted will all be available after the contest is over...

Reply With Quote
  #8  
Old July 19th, 2002, 11:35 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: progress

Devlsh: I optimize it according to how long the word is, the # of connectors it has, and depending on how long the second word is....

as matt suggested, i don't want to delve deeper into explaining my code until the contest is over :-)....

but i doubt I'll even come to close to winning seeing numbah has claimed a score of 700 while the most I get is 522 (average around 460).


OH: have any of your tried using different word lists? How about someone create a word list and we all use the same one to see how well we do. That way we can get a sense of who has the highest score and what we need to meet up to.

-sridhar

Reply With Quote
  #9  
Old July 19th, 2002, 11:42 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: progress

I would urge people not to pay attention to the scores posted here.

Last contest some people didn't enter because of scores posted here and come to find out, they would have done better than the scores posted here with the input I used to judge.

I am close to not allowing people to post scores here because of that reason. I don't mind general discussion or rule clarification, but when posts dicourage others from even submitting it is a bad thing.

Remember, it's not whether you win or lose, coding in PHP is just fun. And that is what this is all about!


Reply With Quote
  #10  
Old July 19th, 2002, 11:46 PM
DevlshOne DevlshOne is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Missouri, USA
Posts: 30 DevlshOne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: progress

I'm done (unless it turns out that the wordlist.txt file is in a different format than the one I downloaded from here). I've got my runtime down to 13 seconds on an 1800+ XP running WinXP with 768M DDR. Since I am running a pseudo-random algorithm, my words used, etc. change on each execution. I average 25 words and 30 connections. I'm not using Apache, I'm running PHP 4.2.1 under IIS. Which brings up a good question, would I be better off running Apache when testing execution times? If you want to see my output, check out this link:

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Link removed to avoid negtive effects on the contest.

Reply With Quote
  #11  
Old July 19th, 2002, 11:53 PM
DevlshOne DevlshOne is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Missouri, USA
Posts: 30 DevlshOne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: progress

Maybe Matt could supply us with one more wordlist.txt file for further testing?

Reply With Quote
  #12  
Old July 20th, 2002, 01:34 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: progress

Okay, sorry if I discouraged anyone...

yes, one more wordfile.txt will be really helpful.

Also Matt: you DO mean 30 seconds for each run right? Not all three runs combined.

-sridhar

Reply With Quote
  #13  
Old July 21st, 2002, 07:32 PM
Kuulest Kuulest is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Istanbul, Turkey
Posts: 6 Kuulest User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: RE: progress


Quote:
Add that total number of squares used to you score. I am able to score avarage of 30 words, total score of about 700 with the given wordlist. Random and a 200MHz linux is used with total running time of 10 seconds.

Hey buddy!!
Believe me if you show the same performance you would win the contest...
Yesterday I started developing my algorithm and
(around 5 o'clock a.m) it was working (however
unoptimized)..Today I was able to get not more then
519 pts. I didn't apply any particular sorting yet..
nevertheless 700 seems to be quite a large score to
me.

Yours Kuulest.

Reply With Quote
  #14  
Old July 21st, 2002, 07:40 PM
numbah numbah is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 numbah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: progress

Sorry 'bout that 700 mess.... I had a little misunderstanding with the problems scoring specifications and after fixing the code avarage score dropped to ~500... darn

Reply With Quote
  #15  
Old July 21st, 2002, 07:43 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: progress

numbah, sorry to use you as an example here

This is exactly why you shouldn't pay attention to scores posted here...

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > progress


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