Search-Trajectory Optimization: Part II, Algorithms and Computations