Re: I need help with some algorithm
- From: "Pawel_Iks" <pawel.labedzki@xxxxxxxxx>
- Date: 26 Dec 2006 11:46:53 -0800
I don't think I understand the question. What answer would you want
given the following values for f and g?
No, I'll show you this on a simple example, but before it I'll coment
your letter
In range [0,0.5] f(t) = 10t and g(t) = -10t.
In range (0.5,1] f(t) = 9-8t and g(t) = 12t-11.
I haven't written, but f, g have values in square [0,1]x[0,1].
1) And now I'll show you example ... Let's consider a functions f given
by points: (,0,0)->(0.4,0.8)->(1,1) and g:
(0,0)->(0.2,0)->(0.6,0.9)->(1,1)
2) I plot both functions given by this sequences of points.
3) Let's imagine that both function are a mountain and we have two
walkers w1 and w2. We draw empty cords system to draw walkers' way ...
4)
- both walkers start in (0,0) so it's a firs point of their way (first
coord indicate argument f for w1 and second argument of g for w2).
- In range x in [0,0.2] w2 have to go on the ground to (0.2,0) and w1
wait for w2 to go on mountain, so second point is (0,0.2)
- In range [0.2,0.4] both walkers have to go on the mountain and third
point is aproxximately (0.4,0.56) (for second coord I have to invert g
in this range, and I do it not accurate)
- In range x in [0.4,0.6] walkers go to (0.8,0.6)
- at [0.6,1] walkers go to (1,1)
5) draw lines by this sequence of points give a searching walker's way.
.
- References:
- I need help with some algorithm
- From: Pawel_Iks
- Re: I need help with some algorithm
- From: Patricia Shanahan
- I need help with some algorithm
- Prev by Date: Which Algorithm is Faster?
- Next by Date: pumping lemma question
- Previous by thread: Re: I need help with some algorithm
- Next by thread: Which Algorithm is Faster?
- Index(es):
Relevant Pages
|