Simple math question...

InlineFive

Diamond Member
Sep 20, 2003
9,599
2
0
Hey all,

I have a math question for you, yes it's a homework problem but I can't figure out the first portion.

There is a person who wants to visit 25 cities but take the shortest route between the cities and only visit each city once. How many possible routes are there?

25x25?

I can't get my brain around this...

Thanks.
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
first choice 1/25
second choice 1/24


etc...until you get to the 25th,

then calculate the possibilities for that entire string, and multiply it by 25.
 

TuxDave

Lifer
Oct 8, 2002
10,571
3
71
Can you give us the name of the math class you're taking? The answer seems easy but the part "but take the shortest route between the cities" makes me cautious.
 

InlineFive

Diamond Member
Sep 20, 2003
9,599
2
0
Are you saying 25^25? Can you explain that please?

Sorry, to clarify, visit all of the cities while keeping the total mileage to a minimum.
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Originally posted by: OOBradm
you need to use permutations....

http://en.wikipedia.org/wiki/Permutation

In your case N=25, and R=25...

so the equation in the article simplifies to 25!, which should be your answer.

aye...I new discrete would come into this.....question is, is he in discrete?


or algebra I or something


The thing I hate about discrete math is crap like 0! = 1
 

InlineFive

Diamond Member
Sep 20, 2003
9,599
2
0
Originally posted by: Goosemaster
Originally posted by: OOBradm
you need to use permutations....

http://en.wikipedia.org/wiki/Permutation

In your case N=25, and R=25...

so the equation in the article simplifies to 25!, which should be your answer.

aye...I new discrete would come into this.....question is, is he in discrete?


or algebra I or something

I'm actually in College Algebra but math has never been my strong point.
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Originally posted by: InlineFive
Originally posted by: Goosemaster
Originally posted by: OOBradm
you need to use permutations....

http://en.wikipedia.org/wiki/Permutation

In your case N=25, and R=25...

so the equation in the article simplifies to 25!, which should be your answer.

aye...I new discrete would come into this.....question is, is he in discrete?


or algebra I or something

I'm actually in College Algebra but math has never been my strong point.



LOFL.....DIDN'T I SAY IT?!


Muwahahahahahah



<--da man


seriously though, n!, where n equals a number is called a factorial



5! for example, euqals 5x4x3x2x1 = 120

4! =4x3x2x1 = 24



Not that hard
 

pinion9

Banned
May 5, 2005
1,201
0
0
25!

The reason: there are 25 ways to pick the first city, 24 ways to pick the next (because 1 has been eliminated), and 23 to pick the next (because 2 have been eliminated) etc.

25*24*23...*2*1 = 25!

For extra credit, come up with a simple way to find the shortest route without actually calculating the distances of all routes.

(shhhh...don't tell him the secret)
 

So

Lifer
Jul 2, 2001
25,923
17
81
It's a simple question, doctor....would you eat the moon if it was made of ribs?
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Originally posted by: pinion9
25!

The reason: there are 25 ways to pick the first city, 24 ways to pick the next (because 1 has been eliminated), and 23 to pick the next (because 2 have been eliminated) etc.

25*24*23...*2*1 = 25!

For extra credit, come up with a simple way to find the shortest route without actually calculating the distances of all routes.

(shhhh...don't tell him the secret)

I have to

:evil:
 

pinion9

Banned
May 5, 2005
1,201
0
0
Originally posted by: Goosemaster
first choice 1/25
second choice 1/24


etc...until you get to the 25th,

then calculate the possibilities for that entire string, and multiply it by 25.

What exactly are you talking about? What does possibility have anything to do with the original question?

If randomly choosing a path, the probablity of picking the shortest path (assuming that all paths have different length) is simply 1/25!
 

pinion9

Banned
May 5, 2005
1,201
0
0
Originally posted by: Goosemaster
I have to

:evil:

No, I've seen this on TV before. We give him a question that hasn't been answered by the world's best mathematicians, tell him to solve it for homework, and he does. Then we are rich and he can quit mopping the floors.

 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Originally posted by: pinion9
Originally posted by: Goosemaster
first choice 1/25
second choice 1/24


etc...until you get to the 25th,

then calculate the possibilities for that entire string, and multiply it by 25.

What exactly are you talking about? What does possibility have anything to do with the original question?

If randomly choosing a path, the probablity of picking the shortest path (assuming that all paths have different length) is simply 1/25!

I was simply describing a route in terms of the entire possibility of rotues to perhaps, maybe, by chance, get him to udnerstand what is going on and not simply give him the answer


by 1 of 25 I meant that there are 25 possible choices for the first city, and then 24 possible choices for the nest city sicne you can't visit one twice.
 

InlineFive

Diamond Member
Sep 20, 2003
9,599
2
0
Originally posted by: pinion9
Originally posted by: Goosemaster
I have to

:evil:

No, I've seen this on TV before. We give him a question that hasn't been answered by the world's best mathematicians, tell him to solve it for homework, and he does. Then we are rich and he can quit mopping the floors.


LOL

Darn you guys...
 

pinion9

Banned
May 5, 2005
1,201
0
0
Originally posted by: Chryso
Originally posted by: CombatChuk
25! (Factorial) maybe?

Something like that.

Yes, exactly that. But the real question is, do you understand why it is like that?

If you are given 25 cities to travel to, simply pick a city. How many cities can you possibly pick?

25

Okay, now you have picked a city (any city, it doesn't matter.) Now, how many cities can you pick from? There are only 24 left...

24

Now you have picked two cities. How many cities are left to pick from? 23...and so on.

You will eventually come down to a point where there is only one city left to choose from...

The reason you multiply them is because you can pick ANY of the cities for the first 25, and any of the remaining cities for the next 24, etc.

25*24*23....*2*1, which is commonly notated as 25! (pronounced 25 factorial)
 

CombatChuk

Platinum Member
Jul 19, 2000
2,008
3
81
Originally posted by: pinion9
Originally posted by: Chryso
Originally posted by: CombatChuk
25! (Factorial) maybe?

Something like that.

Yes, exactly that. But the real question is, do you understand why it is like that?

If you are given 25 cities to travel to, simply pick a city. How many cities can you possibly pick?

25

Okay, now you have picked a city (any city, it doesn't matter.) Now, how many cities can you pick from? There are only 24 left...

24

Now you have picked two cities. How many cities are left to pick from? 23...and so on.

You will eventually come down to a point where there is only one city left to choose from...

The reason you multiply them is because you can pick ANY of the cities for the first 25, and any of the remaining cities for the next 24, etc.

25*24*23....*2*1, which is commonly notated as 25! (pronounced 25 factorial)


I'm glad I still remember my math skills!
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Originally posted by: pinion9
Originally posted by: Goosemaster
I have to

:evil:

No, I've seen this on TV before. We give him a question that hasn't been answered by the world's best mathematicians, tell him to solve it for homework, and he does. Then we are rich and he can quit mopping the floors.

Since the probability of choosing the shortest path, mathematically, is not dependant on the characteristics of each individual path, since we assume to have none, it is simply based on the probability of choosing a certain path based on criterea that we do not have, do not know, and in this case, do not matter sicne thye will not influence our guess.


whatever the hell that means
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Originally posted by: InlineFive
Originally posted by: pinion9
Originally posted by: Goosemaster
I have to

:evil:

No, I've seen this on TV before. We give him a question that hasn't been answered by the world's best mathematicians, tell him to solve it for homework, and he does. Then we are rich and he can quit mopping the floors.


LOL

Darn you guys...

HEY!:| MONEYTICKET! GET THE HELL BACK TO WORK BOI:|



*continues counting his accumulating stacks of $100s*
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Originally posted by: ta8689
the answer is 25!
am i yelling or is it 25x24x23...etc ?

It is, but the method of reaching that conclusion is a little more ellaborate than that.

edit: I see pinion9 acutally wrote it out
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |