Re: Problem 086
Posted: Thu Jun 16, 2011 10:32 am
EDIT : removed
No problem.
No problem.
A website dedicated to the puzzling world of mathematics and programming
https://projecteuler.chat/
This forum is:Francky wrote:I got a very simple proof to find the minimum between
...
I'll remove this if it's a spoiler. I don't know. Tell me, thanks.
ThanksFrancky wrote:EDIT : removed
No problem.
I think that's right, from a grammatical standpoint. If the authors were English professors, I'd bother them until they changed it. But this very minor grammatical error doesn't seem to stop people from solving the problem.ScoopyPuppy2 wrote:There are two things that trouble me in the problem statement:
- "integer" is a noun, so I would say (I am not a native) that "shortest route is not always integer" should read "shortest route is not always an integer" or "shortest route is not always integral"
I think anybody who has a chance of solving this problem understands that cuboids are symmetric. Mathematically, there are at most 3 values to check. If you changed it to 6, you'd probably want to draw the other shortest path on the diagram, which would make it harder to visualize. I don't think it would help.ScoopyPuppy2 wrote:
- why does it state that "there are up to three "shortest" path candidates for any given cuboid"? I would say there are six. Granted, they go by pairs, as the formula for the distance shows, still, I count six of them: the spider can choose any of the three faces that "touches" it, but for each of these faces, there are two edges on the other side that the spider can choose. In the case of a cube, those six paths are all "smallest".
I agree. Yet the wording puzzled me. There are definitely up to six shortest path candidates! But since they go by pair, only three need to be checked.thundre wrote:I think anybody who has a chance of solving this problem understands that cuboids are symmetric. Mathematically, there are at most 3 values to check. If you changed it to 6, you'd probably want to draw the other shortest path on the diagram, which would make it harder to visualize. I don't think it would help.ScoopyPuppy2 wrote:
- why does it state that "there are up to three "shortest" path candidates for any given cuboid"? I would say there are six. Granted, they go by pairs, as the formula for the distance shows, still, I count six of them: the spider can choose any of the three faces that "touches" it, but for each of these faces, there are two edges on the other side that the spider can choose. In the case of a cube, those six paths are all "smallest".
I had solved it, thanks!thundre wrote:Good luck with your solution!
Always happy to learn something.thundre wrote:I think that's right, from a grammatical standpoint. If the authors were English professors, I'd bother them until they changed it. But this very minor grammatical error doesn't seem to stop people from solving the problem.ScoopyPuppy2 wrote:There are two things that trouble me in the problem statement:
- "integer" is a noun, so I would say (I am not a native) that "shortest route is not always integer" should read "shortest route is not always an integer" or "shortest route is not always integral"
FWIW, I agree.hk wrote:However, nitpickingwise, shouldn't we talk about the length of the shortest route then?
"A route that is integer" or "an integral route" seem rather pointless to me too.
I'm getting 34 for 15, 66 for 20, and 111 for 25. Can I PM my code to someone so they can take a look at it?DDgeva wrote:Can you please verify that there are 35 solutions for M=15 and 67 solutions for M=20?
If these are correct, are there 113 solutions for M=25?
hk wrote:Always happy to learn something.thundre wrote:I think that's right, from a grammatical standpoint. If the authors were English professors, I'd bother them until they changed it. But this very minor grammatical error doesn't seem to stop people from solving the problem.ScoopyPuppy2 wrote:There are two things that trouble me in the problem statement:
- "integer" is a noun, so I would say (I am not a native) that "shortest route is not always integer" should read "shortest route is not always an integer" or "shortest route is not always integral"
However, nitpickingwise, shouldn't we talk about the length of the shortest route then?
"A route that is integer" or "an integral route" seem rather pointless to me too.
Do your results up to M=9 match what DDgeva and Jaap posted above?frogjg2003 wrote:I'm getting 34 for 15, 66 for 20, and 111 for 25. Can I PM my code to someone so they can take a look at it?
That's all very nice but in the next sentence, that is now three lines long already it reads:Either way, right now it's grammatically incorrect. "...the shortest route is not always integer" should be changed to "...the shortest route is not always an integer" at the very least.
Regarding "integral": One person's pedantic distinction is another person's thorough accuracy. While "integral" is a valid adjective to use here, it's not as widely known as the other obvious definition of "integral," so sometimes it's best to avoid the confusion. While I think a case could be made for either term, I'd rather go with the definition that best renders the problem description as clear as possible for the greatest number of people -- so I think "an integer" is perfectly fine.
Because it's a slightly different usage.hk wrote:That's all very nice but in the next sentence, that is now three lines long already it reads:Either way, right now it's grammatically incorrect. "...the shortest route is not always integer" should be changed to "...the shortest route is not always an integer" at the very least.
Regarding "integral": One person's pedantic distinction is another person's thorough accuracy. While "integral" is a valid adjective to use here, it's not as widely known as the other obvious definition of "integral," so sometimes it's best to avoid the confusion. While I think a case could be made for either term, I'd rather go with the definition that best renders the problem description as clear as possible for the greatest number of people -- so I think "an integer" is perfectly fine.
"By considering all cuboid rooms with integer dimensions, "
So if we abolish "integral" we would have to write something like:
"By considering all cuboid rooms with dimensions that are integers,...."
or
"By considering all cuboid rooms with dimensions being integers,...."
which sounds pretty awkward to me and not very readable.
So why not let a possibly grammatically incorrect but perfectly clear description as it is?
I think this is OK to use.hk wrote:Thanks for your explanation.
So I presume that:
"and the shortest route doesn't always have integer length." is correct?
That one falls victim to the same issue as the previous case, yes. If you wanted to keep the language consistent with the recent edit, you could use "...there are exactly 2060 cuboids for which the shortest distance has an integer length when M=100" or something to that effect.hk wrote:Thanks.
I'm still a bit baffled why:
"there are exactly 2060 cuboids for which the shortest distance is integer when M=100," doesn't raise any thorn.