The textbook Deep Learning by Goodfellow, Bengio, and Courville can be viewed in individual html chapters here.
I'm currently reading Chapter 15 on Representation Learning and saw this for algorithm 15.1 on page 530:
There no condition after
end for and similarly no end condition for
end if. Is that intentional? If so, what is the correct way to interpret it? I haven't encountered algorithm syntax like this in the past.