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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 7th, 2003, 06:53 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10700 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 46 m 16 sec
Reputation Power: 4
[DNO] Removing tiles

Can we remove tiles of one tiletype more than once? For example on the following board:

11231
12232
22322

//remove 1s
232
2232
22322

//remove 2s
32
32
322

//remove another 2s
3
3
3

//remove 3s => resolved

So here we removed tiles of the tiletype 2 several times. Is this allowed?

Reply With Quote
  #2  
Old March 7th, 2003, 11:18 PM
fractalbit fractalbit is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 108 fractalbit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: [DNO] Removing tiles

Sorry, but this must be the dumpest question ever. Ask yourself, how are you gonna empty the grid if you are not able to remove tiles of one tile type for more than once? Then only one optimal solution exists. Just find the largest block of each tile type and remove it!

Reply With Quote
  #3  
Old March 8th, 2003, 12:12 AM
Matt Matt is offline
Moderator
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: [DNO] Removing tiles


Quote:
So here we removed tiles of the tiletype 2 several times. Is this allowed?


Yes, it is allowed....


Reply With Quote
  #4  
Old March 11th, 2003, 02:07 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: RE: [DNO] Removing tiles

Be cautious before getting insulting.
Your statement concerning the algorithm for an optimal solution is nonsense.

Quote:
Sorry, but this must be the dumpest question ever. Ask yourself, how are you gonna empty the grid if you are not able to remove tiles of one tile type for more than once? Then only one optimal solution exists. Just find the largest block of each tile type and remove it!


Reply With Quote
  #5  
Old March 11th, 2003, 08:34 PM
fractalbit fractalbit is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 108 fractalbit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: [DNO] Removing tiles

The "optimal" solution i am reffering is only about the question asked. I dont consider this an optimal solution, actually it is on of the worst.

Reply With Quote
  #6  
Old March 12th, 2003, 12:51 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
RE: [DNO] Removing tiles

Even in this situation, I don't think the optimal solution is as straight-forward as you'd think.

First, you can remove the tiles in (# tiles) factorial different orders. Second, a greedy algorithm is not necessarily the best since removing a small block for one tile might create a much larger block for another tile.

Reply With Quote
  #7  
Old March 12th, 2003, 01:21 PM
fractalbit fractalbit is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 108 fractalbit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: [DNO] Removing tiles

Quote:
Even in this situation, I don't think the optimal solution is as straight-forward as you'd think.

First, you can remove the tiles in (# tiles) factorial different orders. Second, a greedy algorithm is not necessarily the best since removing a small block for one tile might create a much larger block for another tile.


Guys, please read this thread from the start and realize that you are COMPLETELY off topic! If you want to talk about what a really good strategy could be then we can do it after the contest ends. I am not willing to participate in this discussion any more.

Reply With Quote
  #8  
Old March 12th, 2003, 04:57 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: RE: RE: [DNO] Removing tiles

I think we have read carefully. Look at the following example, on a 1x6 board

112122

Your strategy suggests two times taking out the largest blocks (starting with the 1s or 2s doesn't matter here), giving 2^2 + 2^2 = 8 points.

This strategy will be beaten by the strategy to take out the smallest block in each move, giving 1^2 + 3^2 = 10 points, since the first move will generate a block of size three, no matter if you start with 1s or 2s.

It's not only a thing of reading but of thinking!

Quote:
Guys, please read this thread from the start and realize that you are COMPLETELY off topic! If you want to talk about what a really good strategy could be then we can do it after the contest ends. I am not willing to participate in this discussion any more.


Reply With Quote
  #9  
Old March 12th, 2003, 05:33 PM
-vertigo- -vertigo- is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Louth, Lincolnshire
Posts: 314 -vertigo- User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 24 sec
Reputation Power: 2
RE: [DNO] Removing tiles

I believe it would be best for everyone concerned not to continue this thread. It is degrading enough as it is. It is a pity fractalbait got baited (excuse the pun).

Reply With Quote
  #10  
Old March 13th, 2003, 03:44 AM
fractalbit fractalbit is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 108 fractalbit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: [DNO] Removing tiles

Quote:
I think we have read carefully. Look at the following example, on a 1x6 board

112122

Your strategy suggests two times taking out the largest blocks (starting with the 1s or 2s doesn't matter here), giving 2^2 + 2^2 = 8 points.

This strategy will be beaten by the strategy to take out the smallest block in each move, giving 1^2 + 3^2 = 10 points, since the first move will generate a block of size three, no matter if you start with 1s or 2s.

It's not only a thing of reading but of thinking!


Congratulations, you found an example that proves my "strategy" wrong. God, you are a genius. Sigh.

Reply With Quote
  #11  
Old March 13th, 2003, 07:57 PM
-vertigo- -vertigo- is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Louth, Lincolnshire
Posts: 314 -vertigo- User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 24 sec
Reputation Power: 2
RE: [DNO] Removing tiles

I wonder if Anon has realised by now that if you take the smallest block in each move you get 14 points, not 10? He seems a bit slow.

Reply With Quote
  #12  
Old March 13th, 2003, 08:40 PM
fractalbit fractalbit is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 108 fractalbit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: [DNO] Removing tiles

Ok this has gone too far. I made rushed comment about how stupid that question was and tried to answer the qeustion. I didnt mean to turn this into a flame war. It doesnt deserve to the general attitute of the posters here to communicate this way (me included). I hope if Matt sees this to lock it. It doesnt lead anywhere.

Reply With Quote
  #13  
Old March 13th, 2003, 10:30 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: [DNO] Removing tiles

i don't think this should be locked, but if you like.. here it goes..

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [DNO] Removing tiles


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 6 hosted by Hostway