Skip to content
README.md 1.39 KiB
Newer Older
Johannes Bleher's avatar
Johannes Bleher committed
# Traveling Santa Problem
Johannes Bleher's avatar
Johannes Bleher committed

Johannes Bleher's avatar
Johannes Bleher committed
## Overview
Johannes Bleher's avatar
Johannes Bleher committed
<table>
 <tr>
    <!-- Image Column -->
    <td>
Johannes Bleher's avatar
Johannes Bleher committed
    <img src="00_data/RJ_santa.jpeg"  width="200">
Johannes Bleher's avatar
Johannes Bleher committed
    </td>
    <!-- Text Column -->
    <td>
Johannes Bleher's avatar
Johannes Bleher committed
        In this challenge, you are provided with a list of cities and their coordinates in `cities.csv`. Your task is to create the shortest possible path that visits all the cities.
     </td>
Johannes Bleher's avatar
Johannes Bleher committed
</table>
Johannes Bleher's avatar
Johannes Bleher committed

## Submission File
Your submission should be an ordered list of cities, representing the path in which you visit each city.

## Path Constraints
Johannes Bleher's avatar
Johannes Bleher committed
- Paths must start and end at the North Pole (`ID = 0`).
Johannes Bleher's avatar
Johannes Bleher committed
- You must visit every city exactly once.
- The distance between two cities is calculated as the 2D Euclidean distance.
Johannes Bleher's avatar
Johannes Bleher committed
- Every 10th step (`stepNumber % 10 == 0`) is 10% longer, except when the step is coming from a city with a prime `ID`.
Johannes Bleher's avatar
Johannes Bleher committed

Johannes Bleher's avatar
Johannes Bleher committed

## Evaluation

Johannes Bleher's avatar
Johannes Bleher committed
Your submission is scored on the Euclidean distance of your submitted path, subject to the constraint that every 10th step is 10% more lengthy unless coming from a prime ID.
Johannes Bleher's avatar
Johannes Bleher committed
Submission file

Johannes Bleher's avatar
Johannes Bleher committed
Your submission file contains the ordered Path that Santa should use to visit all the cities. Paths must start and end at the North Pole (ID = 1) and you must visit every city exactly once. Submission files must have a header and should look like:
Johannes Bleher's avatar
Johannes Bleher committed
<code>
Path
1
2
...
0
</code>

Johannes Bleher's avatar
Johannes Bleher committed
## Good Luck!
Ensure your solution adheres to the constraints and optimizes the travel path. Happy coding!