Al­go­rith­m2e is an en­vi­ron­ment for writ­ing al­go­rithms. An
al­go­rithm be­comes a float­ing ob­ject (like fig­ure, ta­ble, etc.).
The pack­age pro­vides macros that al­low you to cre­ate dif­fer­ent
key­words, and a set of pre­de­fined key words is pro­vided; you can
change the ty­pog­ra­phy of the key­words. The pack­age al­lows
ver­ti­cal lines de­lim­it­ing a block of in­struc­tions in an al­go­rithm,
and de­fines dif­fer­ent sorts of al­go­rithms such as Pro­ce­dure or
Func­tion; the name of these func­tions may be reused in the text or
in other al­go­rithms.