ScratchData LogoScratchData
Back to DoctorEm's profile

Minimal Spanning Tree remix remix

DODoctorEm•Created December 17, 2021
Minimal Spanning Tree remix remix
0
0
6 views
View on Scratch

Instructions

NOTE: Just does counts -- doesn't ID minimal tree Muddy City Once upon a time there was a city that had no roads. Getting around the city was particularly difficult after rainstorms because the ground became very muddy—cars got stuck in the mud and people got their boots dirty. The mayor of the city decided that some of the streets must be paved, but didn’t want to spend more money than necessary because the city also wanted to build a swimming pool. The mayor therefore specified two conditions: 1. Enough streets must be paved so that it is possible for everyone to travel from their house to anyone else’s house only along paved roads 2. The paving should cost as little as possible. Here is the layout of the city. The number of paving stones between each house represents the cost of paving that route. Find the best route that connects all the houses, but uses as few counters (paving stones) as possible.

Project Details

Project ID618735242
CreatedDecember 17, 2021
Last ModifiedDecember 18, 2021
SharedDecember 17, 2021
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root