I wonder whether it is necessary to use third-person singulars for the verbs in the step-form algorithm description, which I explain now.
The first version is without third-person singulars.
The algorithm A has the following steps:
- Compute B=f(A).
- Check whether g(B)=1.
- Output h(B).
The second version uses third-person singulars.
The algorithm A has the following steps:
- Computes B=f(A).
- Checks whether g(B)=1.
- Outputs h(B).
Which one is more grammatically correct?