The Village Problem With a VPython Solution



Village problem? Is that even the correct name? Who knows? Here is the puzzle:

There are four villages arranged such that they occupy the 4 corners of a perfect square. What arrangement of roads could you create that would allow access to all the villages but have the shortest total road length?
Instead of drawing a picture of the problem, let me just show you this excellent video with the solution. full article

























Your diagram with 4 nodes can lose one edge and remain connected (wouldn't work with springs as it would deform the shape), you can afford to subtract the length of one side of the inner square from your path length.

Right, but that misses the idea. I want the program to start in some base manner that doesn't need input from me to tell it what to do. Really, I should have had every node connected to every other node by springs. What should happen would be that the system runs and determines that there should only be two nodes (or the 4 nodes should combine to form 4 nodes)

This is cool, though I noticed that watching the video with the sound off makes it look like an infomercial.

Starbucks Uses Snail-Mail Rewards, Too

Chase Ends Test of $5 A.T.M. Fees

New Questions About Prepaid 529 Plans

The Risks of Being Too Risk-Averse in Investing

Getting the Best Rate on a Car Loan

Helping New Grads Find a Good Used Car

Not All Homeowners Policies Are Alike

An Argument for Pet Self-Insurance

The PlayStation Breach: Why You Should Remain Calm

Valentine’s Day Postscript: The Prix Fixe Follies

Fee-Free A.T.M.s, in Exchange for Advertising

Chase to End Debit Card Rewards

Taxpayer Suggestions for Improving the I.R.S.

A New Tool, SplitTheRent.com, for Roommates

Free Software to Protect Your Bank Account

High Court Ruling May Reduce Consumer Clout

Managing Online Accounts After Death

Investing With the Herd

The Risky Sport of Bubble Spotting

Post Your Children’s Reaction to Elmo’s Money Videos

Personal Capital Aims to Be Next-Generation Financial Adviser

Financial Planning: Invasive, Overpriced and Misplaced?

Sites That Answer Your Money Questions

S.E.C. Staff to Brokers: Clients Should Come First

Slice Aims to Organize Your Shopping, Electronically

Does the New Normal Include Private Unemployment Insurance?

Capital One’s New 1.5 Percent Cash-Back Credit Card

AARP’s New Social Security Calculator

When to Collect Social Security? A New Calculator

A New Credit Report Tracks More of Your Financial Life

When You Want to Collect Social Security vs. When You Should

Tools to Negotiate Car Deals in a Tough Market

How to Save Money at the Car Dealership

Resolved: Buy an Electric Car

New Help for Figuring Out a Used Car’s Worth

American Express’s New Service for Its Wealthiest Cardholders

How Would You Shore Up Social Security?

How to Avoid Fried Turkey Infernos

The Risks You Can Control

Caller ID Spoofing and Your Privacy

A Calculator to See if You’ll Be Snared by the A.M.T.

How to Lower Your Heating Bill

When Properties Seem Priced to Spur a Bidding War

Keeping Your Top House Price to Yourself

Why to Know What a Home Seller Paid

The True Value of a Home to a Seller

Where All the Mortgage Documents Go

Airline Fees Worth the Cost

A Tough Year for Market Predictions

New Site Seeks to Analyze Investors Appetite for Risk

Did You Participate in Bank Transfer Day?

Web Sites for Choosing a New Bank

The New American Money Math

A Tool to Weigh Debt Payment Options

Why Most Investors Don’t Measure Returns Correctly

Company Anonymously Challenges Consumer Web Site

Dave Ramsey’s 12% Solution

The Odds of Picking the Next Apple