A route planner

The problem

Build a program that plans routes on a map: fewest moves through a maze, cheapest travel cost on a weighted road network, and the cheapest cabling that connects every town.

Requirements

Technologies

Step by step

  1. Read the maze and run BFS from the start to the exit.
  2. Read the road network and run Dijkstra from one town.
  3. Sort the possible cables and add them with union-find to get the cheapest connection.
  4. Report the connected groups, then test unreachable towns and single-town inputs.

Expected result

A single C++ program with four small commands that prints correct routes, costs and groups on the sample maps and on large random ones.

How it is evaluated

Ways to improve it