recently I found LyX is good for writing notes. But I don't know how to add a piece of algorithm pseudocode in Lyx environment. Could you please help give some advice? Thanks!
How could I implement the following algorithmic pseudocode? Could you please give the complete operations on LyX 2.1.1?

