laziness, impatience, and hubris PerlMonks

### Re^2: One for the weekend: challenge

by BrowserUk (Pope)
 on Jun 01, 2008 at 12:13 UTC ( #689549=note: print w/replies, xml ) Need Help??

in reply to Re: One for the weekend: challenge
in thread One for the weekend: challenge

I would suggest that all ambiguities are resolved by example. In this case, the following would seem to apply:

4824: 4 Ort, because in place of the first digit the words Torf, fort, Tor could be used

I read that to say, that as 'aaa' can be applied at the first step, inserting a digit at that point is illegal. Therefore your example has no solutions.

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^3: One for the weekend: challenge
by ysth (Canon) on Jun 01, 2008 at 15:07 UTC
Nope, that doesn't do it, because using Torf ,fort, or Tor 4 produces a solution. My doubt is whether a digit can be inserted where there could be a word, but not one that produces a solution.

I haven't rigorously examined the sample solutions for lack of one that would establish the point, nor do I really care to.

My doubt is whether a digit can be inserted where there could be a word, but not one that produces a solution.

Well. I think it is perfectly clear. You cannot use a digit at any point where a word is available. (*)

(*) I was about to add 'regardless of whether a solution can be achieved', but it is unnecessary. If there is a word available, you cannot ignore that word and use a digit. For any reason, including achieving a solution that would otherwise be complient.

For the record, without that rule, there would be many more solutions that are presented in the official results.

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
Well, you've rewritten the requirement to avoid the problematic "can", but that you did so, rather than argue that "can" is not ambiguous, just shows that "can" is unambiguously ambiguous :)

Would the sample provided in the spec have any additional solutions? If not, this falls into the category of ambiguities remaining after "all ambiguities" are resolved by the sample.

Re^3: One for the weekend: challenge
by Limbic~Region (Chancellor) on Jun 01, 2008 at 13:34 UTC
BrowserUk,
I also read the rules incorrectly because of the following example:
```04824: 0 Torf
04824: 0 fort
04824: 0 Tor 4

As you work left to right, if at any point a word can be inserted - using a digit is illegal and at no point can two digits be adjacent

I would have understood much better. In any event, my solution is buggy and produces incorrect results. Since it seems like you were after approaches, I believe mine is interesting because of the unrestricted integer partitions. I have no interest at this point in making it a correct solution.

Cheers - L~R

Create A New User
Node Status?
node history
Node Type: note [id://689549]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2017-09-20 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
During the recent solar eclipse, I:

Results (237 votes). Check out past polls.

Notices?