Problem 395

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
unime
Posts: 17
Joined: Mon Mar 24, 2008 4:11 am

Problem 395

Post by unime »

[pedantic]
The problem states: "It can be shown that there exists at least one rectangle whose sides are parallel to the largest square which encloses the Pythagorean tree completely." I disagree. The existence of a largest square which encloses the tree is contradictory, since an even larger square enclosing the first is trivial to construct.
[/pedantic]

Seriously, I wasted five minutes trying to figure out what could possibly be meant by this sentence. It seems that the rectangle must be the thing that encloses the tree. Someone in charge please move the confusing dependent clause, add commas, or otherwise repair the confusion. Maybe read Eats, Shoots & Leaves http://en.wikipedia.org/wiki/Eats,_Shoots_%26_Leaves while you're at it ;-)
User avatar
kevinsogo
Administrator
Posts: 1204
Joined: Thu Sep 16, 2010 4:39 am
Location: Manila, Philippines

Re: Problem 395

Post by kevinsogo »

Hello, unime!

Indeed, that's misleading...

Is the following sentence better?
It can be shown that there exists at least one rectangle, whose sides are parallel to the largest square of the Pythagorean tree, which encloses the Pythagorean tree completely.
If so, I'll change the wording. Apologies for the confusion and thanks for pointing that out.
unime
Posts: 17
Joined: Mon Mar 24, 2008 4:11 am

Re: Problem 395

Post by unime »

The commas and clarification remove the ambiguity. PE really is an outstanding site - thanks for helping make it that way!
smartie61
Posts: 3
Joined: Sat Feb 13, 2010 8:44 am

Re: Problem 395

Post by smartie61 »

Just to be sure: "give your answer rounded to 10 decimal places" means "10 decimal places after the decimal point"?
User avatar
euler
Administrator
Posts: 5095
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Problem 395

Post by euler »

Decimal places should not be confused with decimal digits. In Mathematics, decimal places is defined as the number of fractional decimal digits; that is, the number of decimal digits after the decimal point.
Image
impudens simia et macrologus profundus fabulae
smartie61
Posts: 3
Joined: Sat Feb 13, 2010 8:44 am

Re: Problem 395

Post by smartie61 »

OK, thank you euler. I wasn't aware of (or maybe forgot over the time) the precise meaning of "decimal places", and many other problems (e.g. Problem 394) use the formulation "decimal places behind the decimal point".

Thank you for all the beautiful problems, I will continue to search for the right algorithm for this problem ...
ulrich
Posts: 2
Joined: Sun Sep 23, 2012 5:48 pm

Re: Problem 395

Post by ulrich »

Hi,

my algorithm takes about 100 fractal iterations to get an area precision of 10 digits after the decimal point.

Is it enough to use vector-calculations with double-precision (as there are hundreds of double-calculations), or do we have to use arbitrary-precision arithmetic this problem?
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 395

Post by hk »

@Ulrich.
The caption of this forum is:
"A place to air possible concerns or difficulties in understanding ProjectEuler problems. "
Your question does not fall in the categories mentioned in this caption. So it is off topic.
Image
War ruins the life and health of untold numbers of innocent children.
thkang
Posts: 8
Joined: Thu Nov 15, 2012 8:34 am

Re: Problem 395

Post by thkang »

what does it mean by 'at least one rectangle which encloses tree completely'?

what does 'bounding' mean in the last sentence?

can you explain both in examples? like for t=3, we have 8 rectangles. is any of them enclosing the tree?
sivakd
Posts: 217
Joined: Fri Jul 17, 2009 9:37 am
Location: California, USA
Contact:

Re: Problem 395

Post by sivakd »

If you have a set of pencils lying on the ground, can you draw a rectangle in a way all the pencils lie inside that rectangle? There are many ways to draw with different orientations right? This problem specifically asks for the rectangle whose sides are parallel to the largest square in the tree.
Image
puzzle is a euphemism for lack of clarity
User avatar
jake223
Posts: 61
Joined: Mon Apr 25, 2011 5:15 am
Location: USA
Contact:

Re: Problem 395

Post by jake223 »

I'm having problems with this problem. I've gotten an answer I'm fairly confident in, except that it's wrong. Here's an image of the rectangle I'm getting, around a tree for n=9. Am I really off? if not, can I PM someone who speaks python my code for some advice? thanks!

Image
Image
User avatar
mpiotte
Administrator
Posts: 1961
Joined: Tue May 08, 2012 5:40 pm
Location: Montréal, Canada

Re: Problem 395

Post by mpiotte »

jake223 wrote:I'm having problems with this problem. I've gotten an answer I'm fairly confident in, except that it's wrong. Here's an image of the rectangle I'm getting, around a tree for n=9. Am I really off? if not, can I PM someone who speaks python my code for some advice? thanks!
Yes, it is really off. It is not a numerical precision problem.
Image
User avatar
jake223
Posts: 61
Joined: Mon Apr 25, 2011 5:15 am
Location: USA
Contact:

Re: Problem 395

Post by jake223 »

Thanks, mpiotte. I figured out the problem and solved it now.
Image
Post Reply