aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-121/mark-anderson/raku/ch-2.raku12
1 files changed, 4 insertions, 8 deletions
diff --git a/challenge-121/mark-anderson/raku/ch-2.raku b/challenge-121/mark-anderson/raku/ch-2.raku
index 8aeff99fa7..0a824cad53 100644
--- a/challenge-121/mark-anderson/raku/ch-2.raku
+++ b/challenge-121/mark-anderson/raku/ch-2.raku
@@ -6,28 +6,24 @@ plan 4;
is branch-and-bound([ ∞, 5, 2, 7 ],
[ 5, ∞, 5, 3 ],
[ 3, 1, ∞, 6 ],
- [ 4, 5, 4, ∞ ]), 10,
- 'Example 1';
+ [ 4, 5, 4, ∞ ]), 10, 'Example 1';
is branch-and-bound([ ∞, 15, 30, 4 ],
[ 6, ∞, 4, 1 ],
[ 10, 15, ∞, 16 ],
- [ 7, 18, 13, ∞ ]), 36,
- 'https://www.youtube.com/watch?v=cSY82XtVqYg&t=761s';
+ [ 7, 18, 13, ∞ ]), 36, 'https://www.youtube.com/watch?v=cSY82XtVqYg&t=761s';
is branch-and-bound([ ∞, 20, 30, 10, 11 ],
[ 15, ∞, 16, 4, 2 ],
[ 3, 5, ∞, 2, 4 ],
[ 19, 6, 18, ∞, 3 ],
- [ 16, 4, 7, 16, ∞ ]), 28,
- 'https://www.youtube.com/watch?v=1FEP_sNb62k';
+ [ 16, 4, 7, 16, ∞ ]), 28, 'https://www.youtube.com/watch?v=1FEP_sNb62k';
is branch-and-bound([ ∞, 14, 4, 10, 20 ],
[ 14, ∞, 7, 8, 7 ],
[ 4, 5, ∞, 4, 16 ],
[ 11, 7, 9, ∞, 2 ],
- [ 18, 7, 17, 4, ∞ ]), 30,
- 'https://www.youtube.com/watch?v=HjSbaKF8Gi0';
+ [ 18, 7, 17, 4, ∞ ]), 30, 'https://www.youtube.com/watch?v=HjSbaKF8Gi0';
say branch-and-bound(random-matrix(15));
say branch-and-bound(random-matrix(20));