Problem 213

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.
User avatar
Tommy137
Posts: 238
Joined: Sun Feb 24, 2008 6:02 pm
Location: Cologne, Germany
Contact:

Re: Could anyone confirm a value for problem 213?

Post by Tommy137 »

4 1 4.778
This is correct.
4 2 5.338
4 3 5.639
These two are not :(
Image
LarryC

Re: Could anyone confirm a value for problem 213?

Post by LarryC »

Thanks for the reply! :)

Would you mind giving me those case values? I have more values I wish to check...
User avatar
Tommy137
Posts: 238
Joined: Sun Feb 24, 2008 6:02 pm
Location: Cologne, Germany
Contact:

Re: Could anyone confirm a value for problem 213?

Post by Tommy137 »

lster wrote:Thanks for the reply! :)

Would you mind giving me those case values? I have more values I wish to check...
PM'ed you.
Image
LarryC

Re: Could anyone confirm a value for problem 213?

Post by LarryC »

Thanks Tommy! As it happens, though, I've already completed it. :D

I think that is probably the second hardest Project Euler (for me). The hardest not being 198, however! ;)
User avatar
Tommy137
Posts: 238
Joined: Sun Feb 24, 2008 6:02 pm
Location: Cologne, Germany
Contact:

Re: Could anyone confirm a value for problem 213?

Post by Tommy137 »

lster wrote:Thanks Tommy! As it happens, though, I've already completed it. :D
I saw it a few minutes after I send you the values :D

lster wrote:I think that is probably the second hardest Project Euler (for me). The hardest not being 198, however! ;)
I agree with 198 not being the hardest... I still have no idea how to even approach Problem 208 (View Problem) :?
Last edited by Tommy137 on Wed Nov 19, 2008 2:51 pm, edited 1 time in total.
Image
quilan
Posts: 182
Joined: Fri Aug 03, 2007 11:08 pm

Re: Could anyone confirm a value for problem 213?

Post by quilan »

Unrelated, but am I one of the only ones that thought 198 really wasn't all that difficult? Especially considering we've had another earlier problem that practically gave away one method of solving it?
ex ~100%'er... until the gf came along.
Image
User avatar
hk
Administrator
Posts: 12831
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Could anyone confirm a value for problem 213?

Post by hk »

Yes but many did not solve that earlier problem in one of the intended ways. That's no problem if one studies afterwards how it should have been solved to be prepared for a follow up. Obviously they failed to do so.
Image
War ruins the life and health of untold numbers of innocent children.
LarryC

Re: Could anyone confirm a value for problem 213?

Post by LarryC »

Yay! I'm a 100%-er again after a long gap! :D

Anyway, 198 definitely was a tough one but this one I just failed to wrap my brain around so to speak. Most of the other probability questions have been fine but this one was extremely tough for me! :o
Ikcelaks
Posts: 28
Joined: Wed Oct 15, 2008 9:08 pm

Re: Could anyone confirm a value for problem 213?

Post by Ikcelaks »

Most of the other probability questions have been fine but this one was extremely tough for me!
I loved this problem in part because, while it didn't require any sort of advanced knowledge, it really tested your understanding of the fundamentals of probabilites and expected values.
Unrelated, but am I one of the only ones that thought 198 really wasn't all that difficult? Especially considering we've had another earlier problem that practically gave away one method of solving it?
For that very reason, 198 was essentially trivial for me. Meanwhile, 202, which many have solved, was extraordinarily elusive. Clearly, there is no such thing as a toughest problem on any remotely absolute scale.
quilan
Posts: 182
Joined: Fri Aug 03, 2007 11:08 pm

Re: Could anyone confirm a value for problem 213?

Post by quilan »

I don't know... 177 & 184 seem to me the hardest problems that have been on this site bar none.
ex ~100%'er... until the gf came along.
Image
axelbrz
Posts: 51
Joined: Mon Sep 08, 2008 5:34 am

Re: fleas

Post by axelbrz »

Hi, are these expected values correct for a 4x4 matrix?:

Bell 1: 4.777778
Bell 2: 1.941406
Bell 3: 3.505002
Bell 4: 2.589931
Bell 5: 3.114868

Thanks!
"think(O(n))+O(n) sometimes is better than think(O(1))+O(1)"

Image
User avatar
Tommy137
Posts: 238
Joined: Sun Feb 24, 2008 6:02 pm
Location: Cologne, Germany
Contact:

Re: fleas

Post by Tommy137 »

axelbrz wrote:Hi, are these expected values correct for a 4x4 matrix?:

Bell 1: 4.777778
Bell 2: 1.941406
Bell 3: 3.505002
Bell 4: 2.589931
Bell 5: 3.114868

Thanks!
Only the first value is correct.
Image
viv_ban
Posts: 23
Joined: Mon May 26, 2008 3:09 pm

Re: Problem 213

Post by viv_ban »

As pointed earlier, the expected number of empty square after one toll is equal to 1 in case of 2X2 grid. Will it remain the same forever(i.e. remains 1 irrespective of number of tolls).
User avatar
daniel.is.fischer
Posts: 2400
Joined: Sun Sep 02, 2007 11:15 pm
Location: Bremen, Germany

Re: Problem 213

Post by daniel.is.fischer »

Yes.
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
viv_ban
Posts: 23
Joined: Mon May 26, 2008 3:09 pm

Re: Problem 213

Post by viv_ban »

I am sure that my algorithm is correct but I am still not getting the right answer.
Can anybody please tell me if I am correct for the following values:
expected empty cells for 4X4 after 2 tolls are 4.86548889746 and after 50 tolls are 4.93827160494
in case of 20X20 after 50 tolls expected empty cells are 126.37819102.

thanks.
User avatar
daniel.is.fischer
Posts: 2400
Joined: Sun Sep 02, 2007 11:15 pm
Location: Bremen, Germany

Re: Problem 213

Post by daniel.is.fischer »

No, all those are wrong.
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
User avatar
Assato
Posts: 13
Joined: Sun Apr 19, 2009 4:21 pm

Re: Problem 213

Post by Assato »

Wow, I must be doing something seriously wrong then... my simulations give:

<deleted - ed_r>
User avatar
ed_r
Posts: 1009
Joined: Sun Jul 29, 2007 10:57 am

Re: Problem 213

Post by ed_r »

I've deleted your simulation results, which are potential spoilers. Seems your simulation works just fine.
!647 = &8FDF4C
User avatar
Assato
Posts: 13
Joined: Sun Apr 19, 2009 4:21 pm

Re: Problem 213

Post by Assato »

Oh, sorry, I posted because I was about sure they were wrong... I read in the last page it was close to 147, but didn't realize that was a 20x20 simulation!
quilan
Posts: 182
Joined: Fri Aug 03, 2007 11:08 pm

Re: Problem 213

Post by quilan »

Assato wrote:Oh, sorry, I posted because I was about sure they were wrong... I read in the last page it was close to 147, but didn't realize that was a 20x20 simulation!
Yeah, I was being particularly tricky...
ex ~100%'er... until the gf came along.
Image
Post Reply