[SOLVED] CS293 Lab 11

25.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)

– Given the source station and the set of destination stations the passenger wants to visit over a month, you are required to use the idea of a minimum spanning tree (but with appropriate modifications) find the minimum-cost travel plan for the passenger, where the cost of a

You must also print the total cost of the monthly plan, i.e. the sum of all the monthly train journey costs and the monthly transit costs at all stations where a change of trains happens for some journey.
In case there are multiple monthly plans with the same minimum cost, you can print any one of them.
To compile the planner, please use g++ -g -o planner main.cpp
To debug, please use gdb ./planner on Linux or lldb ./planner on Mac

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.