Problem 215

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.

This forum is NOT meant to discuss solution methods for a problem.

In particular don't post any code fragments or results.

Don't start begging others to give partial answers to problems

Don't ask for hints how to solve a problem

Don't start a new topic for a problem if there already exists one


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
Post Reply
3n1gm4
Posts: 34
Joined: Sun Jul 20, 2008 1:46 pm

Problem 215

Post by 3n1gm4 »

Why W(9,3) is just 8?

in the example there is:
3-2-2-2
2-2-3-2
3-3-3

and ok it has a running crack.

Now suppose these:
  • 3-3-3
    2-2-3-2
    3-3-3
  • 1-2-3-3
    2-2-3-2
    3-3-3
  • 1-2-3-2-1
    2-2-3-2
    3-3-3
  • 1-2-3-2-1
    2-2-3-2
    1-2-3-3
  • 1-2-3-2-1
    2-2-3-2
    1-2-3-2-1
  • 1-2-3-3
    2-2-3-2
    1-2-3-2-1
  • 3-3-2-1
    2-2-3-2
    1-2-3-2-1
  • 3-2-3-1
    2-2-3-2
    1-2-3-2-1
  • 1-2-3-2-1
    2-2-3-2
    1-2-3-2-1
and I can go on... what am I missing?

PS: I hope notation is clear... numbers are for the width of the bricks, divided by lines...
btilly
Posts: 44
Joined: Fri Sep 26, 2008 7:45 am

Re: Problem #215

Post by btilly »

There are only 2x1 and 3x1 bricks. There are no 1x1 bricks.
3n1gm4
Posts: 34
Joined: Sun Jul 20, 2008 1:46 pm

Re: Problem #215

Post by 3n1gm4 »

btilly wrote:There are only 2x1 and 3x1 bricks. There are no 1x1 bricks.
Good Point! Thank you :)
thedon
Posts: 2
Joined: Mon Mar 07, 2011 7:47 pm
Location: Germany

Problem 215 - More than 8 ways in the example?

Post by thedon »

Problem 215 (View Problem)

Hello,

the problem #215 contains an example with a 9x3 wall where it says that “There are eight ways of forming a crack-free 93 wall, written W(9,3) = 8”. The weird thing is that I already found 12 possible ways; you can problably show me the 4 invalid ways and tell me why they're invalid.

Here are my walls (the numbers denote the width of each brick):
1.
3, 3, 3
2, 2, 2, 3
2, 2, 3, 2

2.
2, 2, 3, 2
2, 2, 2, 3
3, 3, 3

3.
3, 3, 3
2, 2, 2, 3
2, 3, 2, 2

4.
2, 3, 2, 2
2, 2, 2, 3
3, 3, 3

5.
3, 3, 3
2, 2, 2, 3
3, 2, 2, 2

6.
3, 2, 2, 2
2, 2, 2, 3
3, 3, 3

7.
2, 2, 3, 2
3, 3, 3
2, 3, 2, 2

8.
2, 3, 2, 2
3, 3, 3
2, 2, 3, 2

9.
3, 2, 2, 2
3, 3, 3
2, 2, 3, 2

10.
2, 2, 3, 2
3, 3, 3
3, 2, 2, 2

11.
3, 2, 2, 2
3, 3, 3
2, 3, 2, 2

12.
2, 3, 2, 2
3, 3, 3
3, 2, 2, 2
User avatar
jaap
Posts: 588
Joined: Tue Mar 25, 2008 3:57 pm
Contact:

Re: Problem 215 - More than 8 ways in the example?

Post by jaap »

thedon wrote:1.
3, 3, 3
2, 2, 2, 3
2, 2, 3, 2
#1: The bottom two rows both start with a 2 brick, so their right side form a crack.
#2: The top two rows both start with a 2.
#3: Bottom two rows both start with 2, and top two rows end with 3.
#4: Top two rows both start with 2, and bottom two rows end with 3.
#5: Top two rows end with 3.
#6: Bottom two rows end with 3.
#7: ok
#8: ok.
#9: Top two rows start with 3.
#10: Bottom two rows start with 3.
#11: ok
#12: Bottom two rows start with 3.
thedon
Posts: 2
Joined: Mon Mar 07, 2011 7:47 pm
Location: Germany

Re: Problem 215 - More than 8 ways in the example?

Post by thedon »

Now that's embarassing! After showing what's wrong I see it quite clearly. Thank you for pointing out the mistakes I made.
mcsharma1990
Posts: 8
Joined: Sat Jun 26, 2010 4:08 pm

Re: Problem 215

Post by mcsharma1990 »

Please give hint for this problem.
sivakd
Posts: 217
Joined: Fri Jul 17, 2009 9:37 am
Location: California, USA
Contact:

Re: Problem 215

Post by sivakd »

Image
puzzle is a euphemism for lack of clarity
Post Reply