commit 4e3383ad67d75a58eb4c5f483451c21c25ecbd75
parent 62ff6038924263d14e65c3ded8d3ecd9187cdd00
Author: Agastya Chandrakant <acagastya@outlook.com>
Date: Mon, 16 Apr 2018 22:18:20 +0530
add
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/s4/fafl/report.md b/s4/fafl/report.md
@@ -63,7 +63,7 @@ __Refer figure 2 for TM1 which acts as a transducer to find remainder and quotie
#### For calculation of remainder and quotient
-Since calculation of modulo is subtracion of `v` from `u` until `u` is strictly smaller than `v`, procedure to follow `u - v` is as follows: (__Assumption: Instruction pointer points to index 1__)
+Since calculation of modulo is subtracion of `v` from `u` until `u` is strictly smaller than `v`, procedure to obtain modulo by repeated subtraction, ie `u - v` is as follows: (__Assumption: Instruction pointer points to index 1__)
1. While current cell value is not `0`, move right.
2. If current cell value is `0`, go left. If it is `1`: Go right. Go right. Else, goto step #3