Monday, November 21, 2022

Rust pop-quiz: efficacy, ... IMPROVED!

RUST POP-QUIZ!

The PROBLEM:

This trade-path-walker has a 'double-thump': I'm transferring paths and their weights (ratios) to the graph, and back out, when the marketplace library already manages ratios.

Since we already have the marketplace, all we need, then, is the unweighted paths, as the solution will extract rations from the marketplace.

Unweighted paths

WRITE a Rust program that reads in the marketplace, reads in these paths, and computes efficacy from those sources.


No comments:

Post a Comment