Improve the display of the uniform cost algorithm.