Don Johnson (@copyleftdev) uses a Rust example in “Biology's Best Algorithms Aren't Just for Scientists Anymore” to show where a language model can help translate a research paper into software. His DEV article pairs that translation with a check against the paper's results. https://dev.to/copyleftdev/biologys-best-algorithms-arent-just-for-scientists-anymore-50al
Check one trail update by hand
In Johnson's Ant System example, the function first multiplies the stored trail strengths by a persistence factor. It then adds a deposit for each tour that used an edge. Each tour's deposit is a fixed numerator divided by that tour's length. The sample updates both directions because it represents a symmetric problem.
Consider an illustrative test with an initial trail strength of 8 and persistence of 0.75. Set the deposit numerator to 12 and let two tours of lengths 6 and 12 use the same edge. The retained trail is 6, the deposits are 2 and 1, and the final trail is 9. If both directions begin at 8, both should finish at 9. An unused edge initialized to 8 should finish at 6. These inputs are a hand-calculated fixture for the update, separate from any experiment in the paper.
A fixture like this gives a reviewer several observable values. If the unused edge ends at 2, the implementation may have used the fraction that evaporates as the multiplier. If the used edge ends at 8, one possible explanation is that the implementation recorded only the first tour's deposit. Looking at both edges helps locate the discrepancy before inspecting a complete simulation.
Compare the full simulation with a published result
Johnson proposes reproducing a result from the paper before applying the algorithm to a new problem. The arithmetic fixture covers a single update. A replication exercise also checks how the implementation constructs tours and repeats the update across iterations. To make that comparison interpretable, record the test instance, the parameter settings and the reported quantity alongside the observed result.
Which published result would you choose for this exercise, and what extra diagnostic would you record if the simulation missed it?