need help on this problem.
- From: Edward.Huerta@xxxxxxxxx
- Date: 8 Dec 2005 06:37:00 -0800
Hello,
I have an assignment for school. I'm looking for help and advise on how
to solve this. My professor is bad, meaning that she
can't explain correctly, her english is bad, and it's one of those
people that expect students to know everything.
well, this is the problem:
On a floor, parallel lines separated of a length L are drawn. When you
launch a pen of length L on this floor, the probability that it crosses
a line is 2/Pi. Suppose that you have a computer that has 64
processors. Write a program to compute Pi in java for that computer.
But run it on your computer.
I went to her to explain me certain things I didn't understand. For
example, the lines are drawn parallel like this:
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
and L is the distance between each line. The pen's width (not the
length like she wrote it) is L as well. For the rest, the pen is thrown
at random. So for example, the pen can fall diagonally or vertically or
horizontally.
Does anyone else understand this problem? I don't, that's why I'm
asking for help from anyone that might have a clue. Even after I
visited her her
explainations are bad and don't help at all. I was hoping that someone
can help me guess what I need to do, since I have no clue. I already
spent 2 days on this and I can't come up with anything. I appreciate
anyone reading this.
Thanks.
p.s. and please, i'm not looking for solutions, so please don't start
b.s.ing or bashing the post.
.
- Follow-Ups:
- Re: need help on this problem.
- From: "."
- Re: need help on this problem.
- From: Ingo R. Homann
- Re: need help on this problem.
- From: Rhino
- Re: need help on this problem.
- From: Gordon Beaton
- Re: need help on this problem.
- Prev by Date: Re: java.net.ConnectException: Connection refused
- Next by Date: Re: need help on this problem.
- Previous by thread: java.net.ConnectException: Connection refused
- Next by thread: Re: need help on this problem.
- Index(es):
Relevant Pages
|