I have a problem in formatting an algorithm.
How can I generate an algorithm which have the following two features:
1) A title is in the top of the algorithm, not in the bottom;
2) There is no horizontal lines in the algorithm.
I have tried
algorithmicx, but it either had three horizontal lines or its tile was at the bottom. When I used
pseudocode, it title is in its top and had no such lines, but its title must be a function name with some input parameters, not a title in the form of a sentence.
Could anybody give me some suggestions?