Actually, your algorithm is quite simple, which is to have Yuchiko's horses sorted according to their speed in order from smallest to largest, take the first 1/3 in order from smallest to largest, and then the remaining 2/3 in order from largest to smallest.
Let your opponent's horses be sorted from largest to smallest.
This way you are guaranteed a Fuchiko win.