Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2013-12-31 03:53:19

atran
Member
Registered: 2013-07-12
Posts: 91

Is it possible to solve this without guessing?

Hi;

A, B, C can walk at 5 km/hr. They have a car that can accomodate any two of them which travels at 50 km/hr. Can they reach a point 62km away in less than 3 hrs?

How can I solve this without guessing?
Thanks for help.

Last edited by atran (2013-12-31 04:26:33)

Offline

#2 2013-12-31 05:40:58

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is it possible to solve this without guessing?

Hi;

Happy New Year soon.

What is wrong with guessing and then refining?
Guesstimating is done all the time in numerical work. An ansatz is a useful thing.

So far I wish I was getting that answer by any means!


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#3 2013-12-31 09:46:49

atran
Member
Registered: 2013-07-12
Posts: 91

Re: Is it possible to solve this without guessing?

Hi bobbym; Happy New Year to you too!

Offline

#4 2013-12-31 09:48:37

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is it possible to solve this without guessing?

I have hidden your answer because I would like to continue to work on it myself and see if I can solve it.

Also, I would like to prove that is the smallest possible answer.

Here is an obvious point that I overlooked in my solution, one person must remain in the car!


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#5 2013-12-31 18:00:02

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?

Hi,

Last edited by gAr (2013-12-31 18:38:40)


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#6 2013-12-31 19:32:59

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#7 2013-12-31 22:48:29

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is it possible to solve this without guessing?

Hi gAr;


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#8 2014-01-01 15:55:10

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?

Hi bobbym,


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#9 2014-01-01 22:56:34

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is it possible to solve this without guessing?

Hi gAr;

I will post my solution so you can check. I might be making some mistake in interpreting the problem.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#10 2014-01-01 23:18:48

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?

Okay.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#11 2014-01-01 23:21:03

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is it possible to solve this without guessing?

It will take some time to make it readable.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#12 2014-01-01 23:23:38

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?

That's fine.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#13 2014-01-01 23:27:41

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is it possible to solve this without guessing?

I worked it in the form of a program so that I could try different f's easily.

(b is the position of b in km, c is the position of c in km, car is the position of car in km, time is the amount of time used so far in hrs ) a always drives the car. Everyone starts at 0 and tries to get to 62.

b = 0;
c = 0;
car = 0;
time = 0;

Drop b, f of the way, meanwhile c is walking.

f = 1/2;
d = f*(62);
time = time + d/50;
b = d;
c = c + 5 (d/50);
car = d;

Output {b, c, car, time} = {31, 3.1, 31, .62}

I go back to get c, in the meantime b is walking.

Solve 50 t + 5 t = Abs[car - c] for t.

t = .62

b = (b + 5 t)
c = b;
car = b;
time = time + t

Output
{b, c, car, time} = {36.63, 36.63,36.63,1.74}

I take b home ( the 62km point), meanwhile c is walking.

time = time + (62 - b)/50;
b = 62;
car = 62;
c = c + 5 ((62 - b)/50);

Output {b, c, car, time} = {62, 36.63, 62, 2.25}

Go back and get c.

Solve 50 t + 5 t  =  car - c for t
c = (c + 5 t)
car = c;

Take c home ( both b and c are at the 62km mark with a)

time = time + (62 - c)/50

( both b and c are at the 62km mark with a)

Output time = 2.71570


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#14 2014-01-02 00:24:05

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?

Thanks, I did not think of going to and fro, maybe we can minimize it some more, let me see.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#15 2014-01-02 00:37:08

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is it possible to solve this without guessing?

Hmmm, it suggests that the minimum with this idea is 651/275.

Feels like there is something wrong?!


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#16 2014-01-02 00:46:37

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?

Can't say for now, working it out!


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#17 2014-01-02 18:50:03

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?

Wait, I was solving the problem for everybody to reach the destination at an exact same time.

You solved for one of them to reach at the earliest?

I used your idea dropping midway and going back to pick the other person. I did it as an infinite series,
going to and fro.

d=62 
a=0
b=d/2                       # one person is dropped here
a+=(b-a)/10                 # other person here when the car goes to b
st=a                        # keeps a checkpoint of every iteration
car=b                       # car's location
dist=d/2                    # total distance traveled by the car
while (d-b)>0.000000000001: # loop till it converges
    a+=(b-st)/11            # the lagging person meets the car at this point
    dist += (b-st)*10/11    # car travels this distance to meet at 'a'
    b+=(b-st)/11            # in the meantime, the other person also travels the same distance
    car=a                   # car goes back
    a=b                     # 'b' is always located after a
    b+=(d-b)/2              # 'b' is moved by half of the remaining distance
    a+=(b-car)/10           # car takes the person at 'a' to 'b'
    dist+=(b-car)           # add the distance and loop
    st=a
    car=b

print dist/50  # 2.95692307692302 hours, the same answer!

Instead of keeping track of time, keep track of the distance traveled by the car.

'b' and 'a' are two points to keep track of the persons, they don't indicate the identity.

And I believe the lowest attainable answer for one of them to reach the earliest under the constraints is still 2.937777 hours.

The earlier LPP holds good no matter where the persons are dropped or picked.
All it indicates is the time for the distance traveled by walking and by car, it doesn't matter where on the path they are in the car or not.

Last edited by gAr (2014-01-02 19:13:47)


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#18 2014-01-02 22:53:01

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is it possible to solve this without guessing?

Hi gAr;

I said it did not feel right. My mistake appears to be right here:

Go back and get c.

Solve 50 t + 5 t  =  car - c for t
c = (c + 5 t)
car = c;

Take c home ( both b and c are at the 62km mark with a)

time = time + (62 - c)/50

( both b and c are at the 62km mark with a)

Although the car makes two trips I only added to time for one of them! That is why it is below the correct minimum.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#19 2014-01-02 23:02:57

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?

I too was thinking you might have missed adding,
What's your answer now?


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#20 2014-01-02 23:14:04

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is it possible to solve this without guessing?

I stared at my work for hours yesterday and did not see the error. As soon as you posted post #17 I found the error in 5 minutes or less. I just got disgusted and deleted the whole notebook. I am sorry.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#21 2014-01-02 23:21:10

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?

Okay, never mind.

I too worked for hours to set that code right for that idea. Only after seeing the output it struck me that it's not an issue whether they walk at a stretch or not!

Anyway, thanks for your idea, we are now doubly sure about the answer.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#22 2014-01-02 23:27:09

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is it possible to solve this without guessing?

How did you get the idea for the linear programming solution?

Save that for a little later, I need to get some sleep. See you then.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#23 2014-01-02 23:35:41

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?

There were constraints, so I think it was natural.

We wanted to make the car's time dependent on A and B's times. Rest is easy!

Okay, see you later.

Last edited by gAr (2014-01-02 23:43:33)


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#24 2014-01-03 04:49:25

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is it possible to solve this without guessing?

Hi gAr;

Thanks, I did not think about using it.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#25 2014-01-03 04:57:03

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is it possible to solve this without guessing?

You're welcome.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

Board footer

Powered by FluxBB