We show that computing iterated multiplication of word matrices over {
0, 1}, using the operations maximum and concatenation, is complete fo
r the class optL of logspace optimization functions. The same problem
for word matrices over {1} is complete for the class FNL of nondeterm
inistic logspace functions. Improving previously obtained results, we
furthermore place the class optL in AC(1), and characterize FNL by res
tricted logspace optimization functions.