Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > [SPOILER] Re: m...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 22 Topic 4048 of 4136
Post > Topic >>

[SPOILER] Re: more euler problems

by anton@[EMAIL PROTECTED] (Anton Ertl) May 12, 2008 at 06:43 PM

Albert van der Horst <albert@[EMAIL PROTECTED]
> writes:
>I have other things to do, but cannot help to tackle the colored
>triangle

I guess you mean Problem 189.  I looked at this for half an hour or
so, and I think I have an approach to solve it, but am too lazy to
program it.  Here's my approach:

Divide the triange into 4 equally sized subtriangles; each of the
subtriangles has 4 element triangles on each edge.  There's a central
subtriangle and 3 corner subtriangles; they interface with the center
triangle along one edge, and not at all with each other.

Now, enumerate the possible colourings of one subtriangle, and for
each of the 81 colour combinations on one edge, remember how many
colourings have that edge.

Next, look at the interface of two subtriangles: for all compatible
combinations of edges, multiply the number of colourings represented
by the combinations and add up the products.  That gives you the
number of colourings for the combination of two subtriangles.

Ideally, the three edges of the central subtriangle would be
independent enough that we can just apply the factor we determined
from adding the first corner triangle two times more to get the number
for the combination of all subtriangles.

But I suspect it won't be so easy.  Then we have to deal with all the
egdes of the central subtriangle at once, i.e., 19683 potential
combinations.  Should not be too bad, either.

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2008:
http://www.complang.tuwien.ac.at/anton/euroforth/ef08.html
 




 22 Posts in Topic:
[SPOILER] Re: Euler problem #187
anton@[EMAIL PROTECTED]   2008-05-09 20:27:46 
Re: [SPOILER] Re: Euler problem #187
mhx@[EMAIL PROTECTED] (M  2008-05-10 00:42:26 
Re: [SPOILER] Re: Euler problem #187
cac <cac@[EMAIL PROTEC  2008-05-09 16:23:19 
Re: [SPOILER] Re: Euler problem #187
anton@[EMAIL PROTECTED]   2008-05-10 09:43:00 
Re: [SPOILER] Re: Euler problem #187
mhx@[EMAIL PROTECTED] (M  2008-05-10 12:45:19 
Re: [SPOILER] Re: Euler problem #187
anton@[EMAIL PROTECTED]   2008-05-10 13:11:43 
Re: [SPOILER] Re: Euler problem #187
mhx@[EMAIL PROTECTED] (M  2008-05-10 19:29:58 
Counted loops (was: [SPOILER] Re: Euler problem #187)
anton@[EMAIL PROTECTED]   2008-05-10 17:34:43 
Re: [SPOILER] Re: Euler problem #187
mhx@[EMAIL PROTECTED] (M  2008-05-10 20:10:28 
Re: [SPOILER] Re: Euler problem #187
Luca Masini <lmasini@[  2008-05-10 23:54:21 
Re: [SPOILER] Re: Euler problem #187
mhx@[EMAIL PROTECTED] (M  2008-05-11 00:58:55 
more euler problems, was Re: Euler problem #187
Albert van der Horst <  2008-05-12 14:21:47 
[SPOILER] Re: more euler problems
anton@[EMAIL PROTECTED]   2008-05-12 18:43:32 
Re: [SPOILER] Re: more euler problems
cac <cac@[EMAIL PROTEC  2008-05-12 13:26:55 
Re: [SPOILER] Re: more euler problems
anton@[EMAIL PROTECTED]   2008-05-13 10:14:55 
Re: [SPOILER] Re: more euler problems
cac <cac@[EMAIL PROTEC  2008-05-13 10:16:55 
Re: [SPOILER] Re: more euler problems
anton@[EMAIL PROTECTED]   2008-05-13 18:22:29 
Re: [SPOILER] Re: more euler problems
cac <cac@[EMAIL PROTEC  2008-05-13 12:25:24 
Re: more euler problems, was Re: Euler problem #187
William James <w_a_x_m  2008-05-17 16:40:44 
Re: [SPOILER] Re: Euler problem #187
William James <w_a_x_m  2008-05-17 17:01:57 
Re: Euler problem #187
William James <w_a_x_m  2008-05-17 15:18:54 
Re: Euler problem #187
Bernd Paysan <bernd.pa  2008-05-18 01:24:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 6:03:19 CDT 2008.