Updates on the site.
FITT transform, in D and Python:
Algorithm described in "Optimization in Permutation Spaces" by Silvio Turrini, WRL Research Report 96/1:
The D version is also an example of how to write idiomatic D2 code.
D and Python translations of a small Score 4 (Force 4) game player program:
Original C++ code by Dr. Ing. Thanassis Tsiodras:
The Python and D code contains one extra optimization, it doesn't call the computeBoardScore() method for the leaves, because it wasted computing time.
The original author has also created a further optimized C++ version that performs memoization on the performance-critical function computeBoardScore(). But I have not added this optimization to a D version because of some hard to find performance problem in D associative arrays.
|comments: Leave a comment|