divide it into two. If you use one of the packages that allows you to number the lines, tell the other half to start with the line number, which is one plus the number of the last line.
You can probably get better answers if you tell us which package you use to format your algorithm (or ask for suggestions, I had good results with listings ").
source
share