GeologicalSurvey - 38

Geological

Learning Outcomes

Goals

You are a geologist and you want to survey the location of recent earthquake. Find a route through all the earthquake site to minimize total distance travelled.

Description

Tasks

  1. Get location of recent earthquake using Bridges API.

  2. Use an array of boolean to record whether a location has been visited or not.

  3. Assume we start at earthquake 0.

  4. Write a function that returns the earthquake that has not been visited and which is the closest to a location.

  5. Write the code to compute a tour using the greedy principle.

Extensions

Help

For C++

Graph Visualization Documentation Earthquake Documentation

For Java

Graph Visualization Documentation Earthquake Documentation

For Python

Graph Visualization Documentation Earthquake Documentation