## Welcome to BrainDen.com - Brain Teasers Forum

 Welcome to BrainDen.com - Brain Teasers Forum. Like most online communities you must register to post in our community, but don't worry this is a simple free process. To be a part of BrainDen Forums you may create a new account or sign in if you already have an account. As a member you could start new topics, reply to others, subscribe to topics/forums to get automatic updates, get your own profile and make new friends. Of course, you can also enjoy our collection of amazing optical illusions and cool math games. If you like our site, you may support us by simply clicking Google "+1" or Facebook "Like" buttons at the top. If you have a website, we would appreciate a little link to BrainDen. Thanks and enjoy the Den :-)
Guest Message by DevFuse

# shortest distance

Best Answer bonanova, 21 May 2014 - 06:59 AM

Spoiler for For starters

Go to the full post

3 replies to this topic

### #1 phil1882

phil1882

Senior Member

• Members
• 564 posts

Posted 20 May 2014 - 11:57 PM

you are given a list of 100 coordinates, and asked to use the pathageoran theorm he fewest number of times to determine the shortest distance between any two. is it an n^2 problem, or can you do better? how much better?

• 0

### #2 bonanova

bonanova

bonanova

• Moderator
• 6158 posts
• Gender:Male
• Location:New York

Posted 21 May 2014 - 06:59 AM   Best Answer

Spoiler for For starters

• 1

Vidi vici veni.

### #3 k-man

k-man

Senior Member

• Members
• 536 posts
• Gender:Male

Posted 21 May 2014 - 07:34 PM

Spoiler for For starters

Spoiler for but...

Spoiler for how about

• 0

### #4 bonanova

bonanova

bonanova

• Moderator
• 6158 posts
• Gender:Male
• Location:New York

Posted 22 May 2014 - 12:57 AM

k-man, you're right.

I took the problem as minimizing the number of Pythagorean steps, even if doing O(n2) simpler ones.

I like your approach. You do programming and algorithms better than I do.

• 0

Vidi vici veni.

#### 0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users