1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
/**
Call Triangle ('a', 'm')
R0 ch1 = 'a' ch2 = 'm' spaceCounter = 0
spaceCounter = 1 Triangle ('a', 'l')
R1 ch1 = 'a' ch2 = 'l' spaceCounter = 1
spaceCounter = 2 Triangle ('a', 'k')
R2 ch1 = 'a' ch2 = 'k' spaceCounter = 2
spaceCounter = 3 Triangle ('a', 'j')
R3 ch1 = 'a' ch2 = 'j' spaceCounter = 3
spaceCounter = 4 Triangle ('a', 'i')
R4 ch1 = 'a' ch2 = 'i' spaceCounter = 4
spaceCounter = 5 Triangle ('a', 'h')
R5 ch1 = 'a' ch2 = 'h' spaceCounter = 5
spaceCounter = 6 Triangle ('a', 'g')
R6 ch1 = 'a' ch2 = 'g' spaceCounter = 6
spaceCounter = 7 Triangle ('a', 'f')
R7 ch1 = 'a' ch2 = 'f' spaceCounter = 7
spaceCounter = 8 Triangle ('a', 'e')
R8 ch1 = 'a' ch2 = 'e' spaceCounter = 8
spaceCounter = 9 Triangle ('a', 'd')
R9 ch1 = 'a' ch2 = 'd' spaceCounter = 9
spaceCounter = 10 Triangle ('a', 'c')
R10 ch1 = 'a' ch2 = 'c' spaceCounter = 10
spaceCounter = 11 Triangle ('a', 'b')
R11 ch1 = 'a' ch2 = 'b' spaceCounter = 11
spaceCounter = 12 Triangle ('a', 'a')
R12 ch1 = 'a' ch2 = 'a' spaceCounter = 12
ch1 == ch2 mLine(' ', 12)
MLR0 Display (" ") mLine(' ', 11)
MLR1 Display (" ") mLine(' ', 10)
MLR2 Display (" ") mLine(' ', 9)
MLR3 Display (" ") mLine(' ', 8)
MLR4 Display (" ") mLine(' ', 7)
MLR5 Display (" ") mLine(' ', 6)
MLR6 Display (" ") mLine(' ', 5)
MLR7 Display (" ") mLine(' ', 4)
MLR8 Display (" ") mLine(' ', 3)
MLR9 Display (" ") mLine(' ', 2)
MLR10 Display (" ") mLine(' ', 1)
MLR11 Display (" ") mLine(' ', 0)
MLR12 ch2 == 0 End All MLR Recursions
mLine('a', 'a')
MLR0 ch1 = 'a' ch2 = 'a'
Display (" a") mLine('b', 'a')
MLR1 ch1 = 'b' ch2 = 'a' ch1 > ch2 End All MLR Recursions
spaceCounter = 11
Display (" a")
Display ("") End R12
R11 ch1 = 'a' ch2 = 'b' spaceCounter = 11
mLine(' ', 11)
MLR0 Display (" a")
Display (" ") mLine(' ', 10)
MLR1 Display (" a")
Display (" ") mLine(' ', 9)
MLR2 Display (" a")
Display (" ") mLine(' ', 8)
MLR3 Display (" a")
Display (" ") mLine(' ', 7)
MLR4 Display (" a")
Display (" ") mLine(' ', 6)
MLR5 Display (" a")
Display (" ") mLine(' ', 5)
MLR6 Display (" a")
Display (" ") mLine(' ', 4)
MLR7 Display (" a")
Display (" ") mLine(' ', 3)
MLR8 Display (" a")
Display (" ") mLine(' ', 2)
MLR9 Display (" a")
Display (" ") mLine(' ', 1)
MLR10 Display (" a")
Display (" ") mLine(' ', 0)
MLR11 ch2 == 0 End All MLR Recursions
mLine('a', 'b')
MLR0 ch1 = 'a' ch2 = 'b'
Display (" a")
Display (" a") mLine('b', 'b')
MLR1 ch1 = 'b' ch2 = 'b'
Display (" a")
Display (" ab") mLine('c', 'b')
MLR2 ch1 = 'c' ch2 = 'b' ch1 > ch2 End MLR2
MLR1 ch1 = 'b' ch2 = 'b' ch1 == ch2 End MLR1
MLR0 ch1 = 'a' ch2 = 'b'
Display (" a")
Display (" aba") End MLR0
spaceCounter = 10
Display (" a")
Display (" aba")
Display ("") End R11
R10 ch1 = 'a' ch2 = 'c' spaceCounter = 10
mLine(' ', 10)
MLR0 Display (" a")
Display (" aba")
Display (" ") mLine(' ', 9)
MLR1 Display (" a")
Display (" aba")
Display (" ") mLine(' ', 8)
MLR2 Display (" a")
Display (" aba")
Display (" ") mLine(' ', 7)
MLR3 Display (" a")
Display (" aba")
Display (" ") mLine(' ', 6)
MLR4 Display (" a")
Display (" aba")
Display (" ") mLine(' ', 5)
MLR5 Display (" a")
Display (" aba")
Display (" ") mLine(' ', 4)
MLR6 Display (" a")
Display (" aba")
Display (" ") mLine(' ', 3)
MLR7 Display (" a")
Display (" aba")
Display (" ") mLine(' ', 2)
MLR8 Display (" a")
Display (" aba")
Display (" ") mLine(' ', 1)
MLR9 Display (" a")
Display (" aba")
Display (" ") mLine(' ', 0)
MLR10 ch2 == 0 End All MLR Recursions
mLine('a', 'c')
MLR0 ch1 = 'a' ch2 = 'c'
Display (" a")
Display (" aba")
Display (" a") mLine('b', 'c')
MLR1 ch1 = 'b' ch2 = 'c'
Display (" a")
Display (" aba")
Display (" ab") mLine('c', 'c')
MLR2 ch1 = 'c' ch2 = 'c'
Display (" a")
Display (" aba")
Display (" abc") mLine('d', 'c')
MLR3 ch1 = 'd' ch2 = 'c' ch1 > ch2 End MLR3
MLR2 ch1 = 'c' ch2 = 'c' ch1 == ch2 End MLR2
MLR1 ch1 = 'b' ch2 = 'c'
Display (" a")
Display (" aba")
Display (" abcb") End MLR1
MLR0 ch1 = 'a' ch2 = 'c'
Display (" a")
Display (" aba")
Display (" abcba") End MLR0
spaceCounter = 9
Display (" a")
Display (" aba")
Display (" abcba")
Display ("") End R10
*/
|