262d79d77402a789a3ab36380dad29427e8ee98e
haas/spring2026/sysprog/README.md
| ... | ... | @@ -5,14 +5,14 @@ |
| 5 | 5 | ## Syllabus / Course Homepage |
| 6 | 6 | |
| 7 | 7 | | Instructor: | Matthew Haas (haas@corning-cc.edu) | |
| 8 | -| Office: | CHM123 | |
|
| 9 | -| Office Hours: | T 10:00a-10:50a, W 1:30p-2:20p, R 10:00a-12:50p | |
|
| 8 | +| Office: | `CHM123` | |
|
| 9 | +| Office Hours: | `T 10:00a-10:50a`, `W 1:30p-2:20p`, `R 10:00a-12:50p` | |
|
| 10 | 10 | | Class Meeting: | Online/Async, CHM123 W 2:30p-3:20p | |
| 11 | 11 | | Class DESIG: | `sysprog` | |
| 12 | 12 | | Class Chat: | `#sysprog` on discord | |
| 13 | 13 | | Public Directory: | `/var/public/fall2025/SYSPROG` | |
| 14 | 14 | | CRN: | `30189` | |
| 15 | -| 'W' Drop Date: | April 6, 2026 | |
|
| 15 | +| '`W`' Drop Date: | April 6, 2026 | |
|
| 16 | 16 | | ----------------- | -------------------------------------------------------------- | |
| 17 | 17 | | DISCORD invite: | [https://discord.gg/8eu3nKjUXX](https://discord.gg/8eu3nKjUXX) | |
| 18 | 18 | | Projects page: | [https://lab46.g7n.org/haas/spring2026/sysprog/projects.md](https://lab46.g7n.org/haas/spring2026/sysprog/projects.md) | |
| ... | ... | @@ -25,7 +25,7 @@ and Device I/O, timers, process management, sockets, threads, file |
| 25 | 25 | systems, terminals, signals, pipes, semaphores. Focus on concurrency and |
| 26 | 26 | effective resource utilization. |
| 27 | 27 | |
| 28 | -(3 cr. hrs.) (Fall). Prerequisites: CSCS1320, CSCS1730, or Instructor |
|
| 28 | +(3 cr. hrs.) (Fall). Prerequisites: `CSCS1320`, `CSCS1730`, or Instructor |
|
| 29 | 29 | consent. |
| 30 | 30 | |
| 31 | 31 | ## Course Objectives |
haas/spring2026/sysprog/projects/ntr0.md
| ... | ... | @@ -1,4 +1,5 @@ |
| 1 | 1 | # CSCS2730 Systems Programing |
| 2 | + |
|
| 2 | 3 | # PROJECT: ntr0 |
| 3 | 4 | |
| 4 | 5 | ## OBJECTIVE |
| ... | ... | @@ -9,28 +10,27 @@ To get started in your journey in the course this semester |
| 9 | 10 | |
| 10 | 11 | By the deadline, please do the following: |
| 11 | 12 | |
| 12 | -* download a gemini 'smolweb' client and access the course homepage |
|
| 13 | -* sign onto the class Discord server with your preferred account |
|
| 14 | -* identify yourself and indicate what class(es) you are in |
|
| 15 | -* provide the instructor (haas@corning-cc.edu) with your github username |
|
| 16 | -* provide the instructor (haas@corning-cc.edu) with your SSH public key |
|
| 13 | + * sign onto the class Discord server with your preferred account |
|
| 14 | + * on Discord, identify yourself and indicate what class(es) you are in |
|
| 15 | + * provide the instructor (haas@corning-cc.edu) with your github username |
|
| 16 | + * provide the instructor (haas@corning-cc.edu) with your SSH public key |
|
| 17 | 17 | |
| 18 | -NOTE: if desired, your SSH public key may be the same one you use to access github. |
|
| 18 | +NOTE: if desired, your SSH public key may be the same one you use to |
|
| 19 | +access github. |
|
| 19 | 20 | |
| 20 | 21 | ## SUBMISSION |
| 21 | 22 | |
| 22 | 23 | ``` |
| 23 | 24 | 26:ntr0:final tally of results (26/26) |
| 24 | -*:ntr0:used gemini client to access the COURSE HOMEPAGE [5/5] |
|
| 25 | 25 | *:ntr0:signed into and are active on the class DISCORD [6/6] |
| 26 | -*:ntr0:identified self and state classes on DISCORD [5/5] |
|
| 27 | -*:ntr0:provided instructor preferred GITHUB USERNAME [5/5] |
|
| 28 | -*:ntr0:provided instructor preferred SSH PUBLIC KEY [5/5] |
|
| 26 | +*:ntr0:identified self and state classes on DISCORD [7/7] |
|
| 27 | +*:ntr0:provided instructor preferred GITHUB USERNAME [6/6] |
|
| 28 | +*:ntr0:provided instructor preferred SSH PUBLIC KEY [7/7] |
|
| 29 | 29 | *:ntr0: |
| 30 | 30 | ``` |
| 31 | 31 | |
| 32 | 32 | Additionally: |
| 33 | -* Solutions not abiding by spirit of project will be subject to a 25% overall deduction |
|
| 34 | -* Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction |
|
| 35 | -* Solutions not utilizing indentation to promote scope and clarity will be subject to a 25% overall deduction |
|
| 36 | -* Solutions not organized and easy to read (assume a terminal at least 90 characters wide, 40 characters tall) are subject to a 25% overall deduction |
|
| 33 | + * Solutions not abiding by spirit of project will be subject to a 25% overall deduction |
|
| 34 | + * Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction |
|
| 35 | + * Solutions not utilizing indentation to promote scope and clarity will be subject to a 25% overall deduction |
|
| 36 | + * Solutions not organized and easy to read (assume a terminal at least 90 characters wide, 40 characters tall) are subject to a 25% overall deduction |
haas/spring2026/sysprog/projects/pctX.md
| ... | ... | @@ -0,0 +1,1756 @@ |
| 1 | +# CSCS2730 Systems Programing |
|
| 2 | +# PROJECT: PRACTICING CRITICAL THINKING (pctX) |
|
| 3 | + |
|
| 4 | +## OBJECTIVE |
|
| 5 | + |
|
| 6 | +To cultivate your problem solving, critical thinking, analytical, and |
|
| 7 | +observation skills. |
|
| 8 | + |
|
| 9 | +The aim here is on observation, analysis, and documentation. You are |
|
| 10 | +solving and documenting a problem by hand, thinking your way through to |
|
| 11 | +solution, NOT copying something, NOR writing any sort of program. |
|
| 12 | + |
|
| 13 | +## BACKGROUND |
|
| 14 | + |
|
| 15 | +The true nature of problem solving frequently involves critical thinking, |
|
| 16 | +analytical, and observation skills. Where problems are not solved by |
|
| 17 | +memorizing some pre-defined set of answers and regurgitating them |
|
| 18 | +mindlessly, but in crafting an elaborate solution from subtle cues and |
|
| 19 | +tested, experimental realizations. |
|
| 20 | + |
|
| 21 | +This project puts you in contact with such endeavours. The better |
|
| 22 | +acquainted you become with these skills, the more adept you will become |
|
| 23 | +at a wide-array of tasks and activities. |
|
| 24 | + |
|
| 25 | +### INVESTIGATION/LOGIC METHODS |
|
| 26 | + |
|
| 27 | +These problems will make use of investigative and logical processes to |
|
| 28 | +allow us to experiment and ascertain the identity of the various letters. |
|
| 29 | +This is often done through: |
|
| 30 | + |
|
| 31 | + * observation |
|
| 32 | + * seeing patterns |
|
| 33 | + * analysis |
|
| 34 | + * investigation |
|
| 35 | + * [abduction](https://en.wikipedia.org/wiki/Abductive_reasoning) |
|
| 36 | + * [induction](https://www.analyzemath.com/math_induction/mathematical_induction.html) |
|
| 37 | + * [deduction](http://mathcentral.uregina.ca/QQ/database/QQ.09.99/pax1.html) |
|
| 38 | + |
|
| 39 | +### MATH PREPARATION |
|
| 40 | + |
|
| 41 | +If you find yourself struggling with the concepts of the underlying math: |
|
| 42 | + |
|
| 43 | + * [Basic Math](https://www.ipracticemath.com/learn/basicmath) |
|
| 44 | + * [Long Division](https://www.mathsisfun.com/long_division.html) |
|
| 45 | + |
|
| 46 | +The pctX problems are just your standard “long division with |
|
| 47 | +remainder” style problems, only given to you worked out, with the |
|
| 48 | +numbers replaced with letters, so instead of going at it beginning to |
|
| 49 | +end, we investigate it end to start. |
|
| 50 | + |
|
| 51 | +### LONG DIVISION |
|
| 52 | + |
|
| 53 | +A letter division is a category of logic problem where you would take an |
|
| 54 | +ordinary math equation (in long form), and substitute all the numbers for |
|
| 55 | +letters, thereby in a direct sense masking the numeric values present |
|
| 56 | +that correctly enable the problem to work from start to completion. It is |
|
| 57 | +your task, through exploring, experimenting, and playing, to ascertain |
|
| 58 | +the numeric value of each letter (as many as 10, one for each numeric |
|
| 59 | +value 0-9). |
|
| 60 | + |
|
| 61 | +We will be focusing on long division, something you learned (and perhaps |
|
| 62 | +last experienced, before becoming mindlessly addicted to pressing buttons |
|
| 63 | +on a calculator), in grade school. It entails a whole number (integer) |
|
| 64 | +division, involving aspects addition (through borrowing), and subtraction |
|
| 65 | +(primarily) to arrive at a quotient and a remainder, and if applicable: |
|
| 66 | +multiplication. |
|
| 67 | + |
|
| 68 | +There is also a logical/relational aspect to these puzzles, which may |
|
| 69 | +well be less familiar territory to some. But so incredibly important when |
|
| 70 | +exploring a process and communicating such notions to the computer. |
|
| 71 | + |
|
| 72 | +Division is unique in that it produces two 'answers', each serving |
|
| 73 | +particular uses in various applications. |
|
| 74 | + |
|
| 75 | +Here is an example (using numbers): |
|
| 76 | + |
|
| 77 | +First up, we're going to divide 87654321 (the dividend) by 1224 (the |
|
| 78 | +divisor). Commonly, especially if punching into a calculator, we might |
|
| 79 | +express that equation as: |
|
| 80 | + |
|
| 81 | +``` |
|
| 82 | +87654321/1224 |
|
| 83 | +``` |
|
| 84 | + |
|
| 85 | +Or in a language like C, assigning the quotient to the variable **x** (an |
|
| 86 | +**int**eger): |
|
| 87 | + |
|
| 88 | +``` |
|
| 89 | + x = 87654321 / 1224; |
|
| 90 | +``` |
|
| 91 | + |
|
| 92 | +But, we're not specifically interested in the 'answer' (quotient or |
|
| 93 | +remainder); we are interested in the PROCESS. You know, the stuff the |
|
| 94 | +calculator does for you, which in order to perform this project and |
|
| 95 | +better explore the aspects of critical thinking, we need to take and |
|
| 96 | +encounter every step of the way: |
|
| 97 | + |
|
| 98 | +``` |
|
| 99 | + 71613 |
|
| 100 | + +--------- |
|
| 101 | +1224 | 87654321 |
|
| 102 | + -8568 |
|
| 103 | + ==== |
|
| 104 | + 1974 |
|
| 105 | + -1224 |
|
| 106 | + ==== |
|
| 107 | + 7503 |
|
| 108 | + -7344 |
|
| 109 | + ==== |
|
| 110 | + 1592 |
|
| 111 | + -1224 |
|
| 112 | + ==== |
|
| 113 | + 3681 |
|
| 114 | + -3672 |
|
| 115 | + ==== |
|
| 116 | + 9 |
|
| 117 | +``` |
|
| 118 | + |
|
| 119 | +Here we obtain the results (focusing on the quotient up top; as the |
|
| 120 | +remainder quite literally is what remains once we're done- we're |
|
| 121 | +specifically NOT delving into decimal points, but instead doing integer |
|
| 122 | +division, which as previously stated has MANY important applications in |
|
| 123 | +computing) through a step by step process of seeing how many times our |
|
| 124 | +divisor (1224) best and in the smallest fashion fits into some current |
|
| 125 | +value of the dividend (or intermediate result thereof). |
|
| 126 | + |
|
| 127 | +For instance, seeking the smallest "best fit" of 1224 into 87654321, we |
|
| 128 | +find that 1224 fits best SEVEN times (1224 * 7 = 8568, which is the |
|
| 129 | +CLOSEST we can get to 8765... 1224 * 8 = 9792, which would be too big |
|
| 130 | +(and way too small for 87654). Clearly, we are seeking those values that |
|
| 131 | +best fit within a multiple of 0-9, staying away from double digits of |
|
| 132 | +multiplication (although, we COULD do it that way and still arrive at the |
|
| 133 | +same end result). |
|
| 134 | + |
|
| 135 | +So: 8765-8568 = 197. |
|
| 136 | + |
|
| 137 | +We have our first result, yet: there's still values in the dividend |
|
| 138 | +(87654321) remaining to process, specifically the 4321, so we take them |
|
| 139 | +one digit at a time. |
|
| 140 | + |
|
| 141 | +The next available, unprocessed digit in 4321 is '4', so we 'drop that |
|
| 142 | +down' and append it to our previous result (197), giving us: 1974. |
|
| 143 | + |
|
| 144 | +We now see how many times (via single digit multiplication), our divisor |
|
| 145 | +(1224) can fit into 1974. As it turns out, just once. |
|
| 146 | + |
|
| 147 | +So: 1974-1224 = 750. |
|
| 148 | + |
|
| 149 | +And we keep repeating the process until there are no more digits from the |
|
| 150 | +dividend to drop down; at which point, we are left with a remainder (in |
|
| 151 | +the above problem, the lone '9' at the very bottom; THAT is the |
|
| 152 | +remainder). |
|
| 153 | + |
|
| 154 | +Clearly it is important to have a handle on and understanding of the |
|
| 155 | +basic long division process before attempting a letter division problem. |
|
| 156 | +So, be sure to try your hand at a few practice problems before |
|
| 157 | +proceeding. |
|
| 158 | + |
|
| 159 | +## LETTER DIVISION: an example |
|
| 160 | + |
|
| 161 | +Following will be a sample letter division problem, and a documented |
|
| 162 | +solution of it, much as you will be doing for this project (and to be |
|
| 163 | +sure: the aim here is not merely to solve it, but to DOCUMENT HOW YOU |
|
| 164 | +SOLVED IT. You might want to keep notes as you go along to save you time |
|
| 165 | +and sanity). |
|
| 166 | + |
|
| 167 | +Here goes: |
|
| 168 | + |
|
| 169 | +``` |
|
| 170 | + GLJK |
|
| 171 | + +--------- |
|
| 172 | + KJKK | GLMBRVLR |
|
| 173 | + -VKOKL |
|
| 174 | + ===== |
|
| 175 | + LJBGV |
|
| 176 | + -OKVKG |
|
| 177 | + ===== |
|
| 178 | + JJGKL |
|
| 179 | + -LKBKV |
|
| 180 | + ===== |
|
| 181 | + KVRMR |
|
| 182 | + -JKRKB |
|
| 183 | + ===== |
|
| 184 | + VKMK |
|
| 185 | + |
|
| 186 | +letters: BGJKLMOPRV |
|
| 187 | +``` |
|
| 188 | + |
|
| 189 | +First off, note how this is NO DIFFERENT from the numeric problem above: |
|
| 190 | +just instead of numbers, which we've associated some concepts with, here |
|
| 191 | +we have letters (each letter maps to a unique number, 0-9). The trick |
|
| 192 | +will be to figure out which letter maps to which number. |
|
| 193 | + |
|
| 194 | +So, let us begin. |
|
| 195 | + |
|
| 196 | +One aim is to obtain the key to the puzzle, the mapping of the letters to |
|
| 197 | +numbers, so I will typically set up an answer key as follows: |
|
| 198 | + |
|
| 199 | +``` |
|
| 200 | +| 0 | | |
|
| 201 | +| 1 | | |
|
| 202 | +| 2 | | |
|
| 203 | +| 3 | | |
|
| 204 | +| 4 | | |
|
| 205 | +| 5 | | |
|
| 206 | +| 6 | | |
|
| 207 | +| 7 | | |
|
| 208 | +| 8 | | |
|
| 209 | +| 9 | | |
|
| 210 | +``` |
|
| 211 | + |
|
| 212 | +Another thing I like to do is set up a more visual representation of what |
|
| 213 | +each letter COULD be. I do so in the following form (I call this a "Range |
|
| 214 | +Table"): |
|
| 215 | + |
|
| 216 | +``` |
|
| 217 | +B = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 218 | +G = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 219 | +J = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 220 | +K = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 221 | +L = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 222 | +M = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 223 | +O = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 224 | +P = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 225 | +R = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 226 | +V = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 227 | +``` |
|
| 228 | + |
|
| 229 | +Then, as I figure things out (either what certain are, but mostly, which |
|
| 230 | +ones they are NOT), I can mark it up accordingly. |
|
| 231 | + |
|
| 232 | +Right from the start, we can already make some important connections; |
|
| 233 | +looking at EACH of the subtractions taking place, in the left-most |
|
| 234 | +position, we see an interesting phenomenon taking place- G-V=0, L-O=0, |
|
| 235 | +J-L=0, and K-J=0. |
|
| 236 | + |
|
| 237 | +Now, since EACH letter is its own unique numeric value, subtracting one |
|
| 238 | +letter from another on its own won't result in a value of 0, but being |
|
| 239 | +borrowed from will. |
|
| 240 | + |
|
| 241 | +That is: 7-6=1, but (7-1)-6=0. THAT is what is going on here. |
|
| 242 | + |
|
| 243 | +So what we can infer from this, is some very important connections: |
|
| 244 | + |
|
| 245 | + * V is one less than G (I'll write it as: V < G) |
|
| 246 | + * O is one less than L (O < L) |
|
| 247 | + * L is one less than J (L < J) |
|
| 248 | + * J is one less than K (J < K) |
|
| 249 | + |
|
| 250 | +Does that make sense? From looking at the puzzle, those four relations |
|
| 251 | +can be made. |
|
| 252 | + |
|
| 253 | +Now, FURTHERMORE, some of those connections are thereby connected. Look |
|
| 254 | +at the 'L' and 'J' connections: |
|
| 255 | + |
|
| 256 | + * O < L, but also: L < J |
|
| 257 | + * L < J, but also: J < K |
|
| 258 | + |
|
| 259 | +That implies a further connection, so we can chain them together: |
|
| 260 | + |
|
| 261 | + * O < L < J < K |
|
| 262 | + |
|
| 263 | +So from that initial observation and connection, we now have two |
|
| 264 | +disconnected relationships: |
|
| 265 | + |
|
| 266 | + * V < G |
|
| 267 | + * O < L < J < K |
|
| 268 | + |
|
| 269 | +From what we've done so far, we do not know where V,G fall in respect to |
|
| 270 | +O,L,J,K. They might be less than, OR greater than. We won't know without |
|
| 271 | +further information. |
|
| 272 | + |
|
| 273 | +Yet, even WITH this information, we can update our letter ranges: |
|
| 274 | + |
|
| 275 | + * since V is less than G, we know V can NOT be 9. |
|
| 276 | + * similarly, G can NOT be 0. |
|
| 277 | + * O cannot be 9, 8, 7, because we know O is 3 less than K. So even though we don't know what K actually is, because K COULD be 9, we know what O, L, and J can NOT be. |
|
| 278 | + * L cannot be 9 or 8 |
|
| 279 | + * J cannot be 9 |
|
| 280 | + * on the other side, K cannot be 0, 1, or 2 |
|
| 281 | + * J cannot be 0 or 1 |
|
| 282 | + * L cannot be 0. |
|
| 283 | + |
|
| 284 | +So, if we update our range chart accordingly: |
|
| 285 | + |
|
| 286 | +``` |
|
| 287 | +B = { 0, 1, 2, 3, 4, 5, 6, 7, 8 } |
|
| 288 | +G = { 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 289 | +J = { 2, 3, 4, 5, 6, 7, 8, } |
|
| 290 | +K = { 3, 4, 5, 6, 7, 8, 9 } |
|
| 291 | +L = { 1, 2, 3, 4, 5, 6, 7, } |
|
| 292 | +M = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 293 | +O = { 0, 1, 2, 3, 4, 5, 6, } |
|
| 294 | +P = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 295 | +R = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 296 | +V = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 297 | +``` |
|
| 298 | + |
|
| 299 | +Moving on, dealing with details of discovering those one-off relations, |
|
| 300 | +that tells us something about the NEXT subtractions: that they borrow |
|
| 301 | +(which means they are LESS THAN the thing being subtracted from them): |
|
| 302 | + |
|
| 303 | + * L is less than K (which we actually know to be 2 less than K), so L - K needs to BORROW |
|
| 304 | + * J is less than K (which we know is 1 less than K), so J - K needs to BORROW |
|
| 305 | + * V is apparently also less than K (which we didn't previously know), so V - K needs to BORROW |
|
| 306 | + * now knowing than V << K, we can connect our other relational fragment in (I use the double '<<' to denote "less than" by an unknown amount, because while we know V is less than K, we don't know by how much). |
|
| 307 | + |
|
| 308 | +So: V < G << O < L < J < K |
|
| 309 | + |
|
| 310 | +This allows us some further whittling of our ranges: |
|
| 311 | + |
|
| 312 | + * V cannot be 9, 8, 7, 6, or 5 |
|
| 313 | + * G cannot be 9, 8, 7, or 6 |
|
| 314 | + * O cannot be 0, or 1 |
|
| 315 | + * L cannot be 0, 1, or 2 |
|
| 316 | + * J cannot be 0, 1, 2, or 3 |
|
| 317 | + * K cannot be 0, 1, 2, 3, or 4 |
|
| 318 | + |
|
| 319 | +``` |
|
| 320 | +B = { 0, 1, 2, 3, 4, 5, 6, 7, 8 } |
|
| 321 | +G = { 1, 2, 3, 4, 5, } |
|
| 322 | +J = { 4, 5, 6, 7, 8, } |
|
| 323 | +K = { 5, 6, 7, 8, 9 } |
|
| 324 | +L = { 3, 4, 5, 6, 7, } |
|
| 325 | +M = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 326 | +O = { 2, 3, 4, 5, 6, } |
|
| 327 | +P = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 328 | +R = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 329 | +V = { 0, 1, 2, 3, 4, } |
|
| 330 | +``` |
|
| 331 | + |
|
| 332 | +Already we can see that V and G are likely lower numbers, and O, L, J, |
|
| 333 | +and K are likely higher numbers. |
|
| 334 | + |
|
| 335 | +What else do we have? Let's keep going: |
|
| 336 | + |
|
| 337 | +We cannot instantly proceed to the next subtraction in as obvious a |
|
| 338 | +progression, as we'll need more information on the various letters |
|
| 339 | +involved. |
|
| 340 | + |
|
| 341 | +### Finding K (and J and L and O as well) |
|
| 342 | + |
|
| 343 | +However, looking at the puzzle, I'm interested in seeing if we can find |
|
| 344 | +any obvious examples of 0. You know, letter minus same letter sort of |
|
| 345 | +things. Because they will typically end up equalling 0 (or 9). |
|
| 346 | + |
|
| 347 | +Why 9? Because of a borrow! |
|
| 348 | + |
|
| 349 | +``` |
|
| 350 | +((5-1)+10)-5 = (4+10)-5 = 14 - 5 = 9 |
|
| 351 | +``` |
|
| 352 | + |
|
| 353 | +... that can be quite revealing too! |
|
| 354 | + |
|
| 355 | +And it would appear we have one wonderful candidate in the bottom-most |
|
| 356 | +subtraction: |
|
| 357 | + |
|
| 358 | +``` |
|
| 359 | + KVRMR |
|
| 360 | + -JKRKB |
|
| 361 | + ===== |
|
| 362 | + VKMK |
|
| 363 | +``` |
|
| 364 | + |
|
| 365 | +Lookie there: R-R = K. |
|
| 366 | + |
|
| 367 | +Usually, that would result in a 0. BUT, we also know that K can NOT be 0 |
|
| 368 | +(looking at our range table above). |
|
| 369 | + |
|
| 370 | +So, that means it is being borrowed from, and it itself has to borrow, so |
|
| 371 | +we now also know that M is less than K: M << K |
|
| 372 | + |
|
| 373 | +And, as indicated above: |
|
| 374 | + |
|
| 375 | +``` |
|
| 376 | +((R-1)+10)-R = 9! |
|
| 377 | +``` |
|
| 378 | + |
|
| 379 | +We now know that K = 9! |
|
| 380 | + |
|
| 381 | +That suddenly reveals a whole lot to us, due to our relational chains |
|
| 382 | +we've built. Let's update: |
|
| 383 | + |
|
| 384 | +``` |
|
| 385 | +| 0 | | |
|
| 386 | +| 1 | | |
|
| 387 | +| 2 | | |
|
| 388 | +| 3 | | |
|
| 389 | +| 4 | | |
|
| 390 | +| 5 | | |
|
| 391 | +| 6 | O | |
|
| 392 | +| 7 | L | |
|
| 393 | +| 8 | J | |
|
| 394 | +| 9 | K | |
|
| 395 | +``` |
|
| 396 | + |
|
| 397 | +Also, with the new introduction of M being less than K: |
|
| 398 | + |
|
| 399 | +``` |
|
| 400 | +B = { 0, 1, 2, 3, 4, 5, } |
|
| 401 | +G = { 1, 2, 3, 4, 5, } |
|
| 402 | +J = { 8 } |
|
| 403 | +K = { 9 } |
|
| 404 | +L = { 7 } |
|
| 405 | +M = { 0, 1, 2, 3, 4, 5, } |
|
| 406 | +O = { 6 } |
|
| 407 | +P = { 0, 1, 2, 3, 4, 5, } |
|
| 408 | +R = { 0, 1, 2, 3, 4, 5, } |
|
| 409 | +V = { 0, 1, 2, 3, 4, } |
|
| 410 | +``` |
|
| 411 | + |
|
| 412 | +And, our relational chains: |
|
| 413 | + |
|
| 414 | + * V < G << O < L < J < K |
|
| 415 | + * M << O < L < J < K |
|
| 416 | + |
|
| 417 | +Because we don't yet know any relation of M compared to V or G, we have |
|
| 418 | +to keep them separate for now. |
|
| 419 | + |
|
| 420 | +We also have a second disqualifier for K being 0... the ones place |
|
| 421 | +subtraction in that bottom-most subtraction: |
|
| 422 | + |
|
| 423 | +``` |
|
| 424 | +R - B = K |
|
| 425 | +``` |
|
| 426 | + |
|
| 427 | +There's nothing further to the right that could borrow from this problem, |
|
| 428 | +so it can only exist in two states: |
|
| 429 | + |
|
| 430 | + * R is greater than B |
|
| 431 | + * R is less than B |
|
| 432 | + |
|
| 433 | +Since we know that K is 9, there's NO OTHER pair of single digit numbers |
|
| 434 | +we can subtract to get 9, which tells us that: |
|
| 435 | + |
|
| 436 | + * R is less than B (R << B) |
|
| 437 | + |
|
| 438 | +Currently both R and B can be 0-5 (although now, B is 1-5, and R is 0-4). |
|
| 439 | +We'd need to find a combination where (R+10)-B is 9: |
|
| 440 | + |
|
| 441 | +``` |
|
| 442 | +| R: 0 | R: 1 | R: 2 | R: 3 | R: 4 | |
|
| 443 | +| (0+10) | (1+10) | (2+10) | (3+10) | (4+10) | |
|
| 444 | +| 10 | 11 | 12 | 13 | 14 | |
|
| 445 | +``` |
|
| 446 | + |
|
| 447 | +And from that, we're subtracting B, which is 1, 2, 3, 4, or 5. The answer |
|
| 448 | +has to be 9. |
|
| 449 | + |
|
| 450 | +So: |
|
| 451 | + |
|
| 452 | +10-1=9, 11-2=9, 12-3=9, 13-4=9, and 14-5=9 |
|
| 453 | + |
|
| 454 | +Hey, look at that... B is one greater than R (not just R << B, BUT: R < |
|
| 455 | +B) |
|
| 456 | + |
|
| 457 | +Our relational chains: |
|
| 458 | + |
|
| 459 | + * V < G << O < L < J < K |
|
| 460 | + * M << O < L < J < K |
|
| 461 | + * R < B << O < L < J < K |
|
| 462 | + |
|
| 463 | +And our range table: |
|
| 464 | + |
|
| 465 | +``` |
|
| 466 | +B = { 1, 2, 3, 4, 5, } |
|
| 467 | +G = { 1, 2, 3, 4, 5, } |
|
| 468 | +J = { 8 } |
|
| 469 | +K = { 9 } |
|
| 470 | +L = { 7 } |
|
| 471 | +M = { 0, 1, 2, 3, 4, 5, } |
|
| 472 | +O = { 6 } |
|
| 473 | +P = { 0, 1, 2, 3, 4, 5, } |
|
| 474 | +R = { 0, 1, 2, 3, 4, } |
|
| 475 | +V = { 0, 1, 2, 3, 4, } |
|
| 476 | +``` |
|
| 477 | + |
|
| 478 | +If you look, the only letter we've not yet directly interacted with yet |
|
| 479 | +is 'P', although we already know enough about it (that it is 0-5, less |
|
| 480 | +than O, L, J, and K). And if you look closely, you'll notice that 'P' |
|
| 481 | +isn't even present in the letter division problem! So its identity will |
|
| 482 | +rely entirely on the proving of the other values. |
|
| 483 | + |
|
| 484 | +Let's continue on: |
|
| 485 | + |
|
| 486 | +M-K=M, BECAUSE we know M << K, AND BECAUSE we know the subtraction to the |
|
| 487 | +right is borrowing from it (because R < B), we have something like this: |
|
| 488 | +(M-1+10)-K=M |
|
| 489 | + |
|
| 490 | +Can't really do much more with it at this point, but it is important to |
|
| 491 | +know to help us identify the borrows needing to happen. |
|
| 492 | + |
|
| 493 | +### Finding our zero value (R and B) |
|
| 494 | + |
|
| 495 | +Why don't we go ahead and find 0? If you look in the subtraction above |
|
| 496 | +the bottom one, we have another "letter minus same letter" scenario, and |
|
| 497 | +it doesn't equal K! |
|
| 498 | + |
|
| 499 | +``` |
|
| 500 | + JJGKL |
|
| 501 | + -LKBKV |
|
| 502 | + ===== |
|
| 503 | + KVRM |
|
| 504 | +``` |
|
| 505 | + |
|
| 506 | +We KNOW that V << L, so no borrow is happening there. |
|
| 507 | + |
|
| 508 | +Therefore, K-K, or 9-9, equals 0. So R is 0! |
|
| 509 | + |
|
| 510 | +... and B is 1! Because of our identified relationship. |
|
| 511 | + |
|
| 512 | +Updating things! |
|
| 513 | + |
|
| 514 | +``` |
|
| 515 | +| 0 | R | |
|
| 516 | +| 1 | B | |
|
| 517 | +| 2 | | |
|
| 518 | +| 3 | | |
|
| 519 | +| 4 | | |
|
| 520 | +| 5 | | |
|
| 521 | +| 6 | O | |
|
| 522 | +| 7 | L | |
|
| 523 | +| 8 | J | |
|
| 524 | +| 9 | K | |
|
| 525 | +``` |
|
| 526 | + |
|
| 527 | +Also, with the new introduction of M being less than K: |
|
| 528 | + |
|
| 529 | +``` |
|
| 530 | +B = { 1 } |
|
| 531 | +G = { 3, 4, 5, } |
|
| 532 | +J = { 8 } |
|
| 533 | +K = { 9 } |
|
| 534 | +L = { 7 } |
|
| 535 | +M = { 2, 3, 4, 5, } |
|
| 536 | +O = { 6 } |
|
| 537 | +P = { 2, 3, 4, 5, } |
|
| 538 | +R = { 0 } |
|
| 539 | +V = { 2, 3, 4, } |
|
| 540 | +``` |
|
| 541 | + |
|
| 542 | +NOTE: G is NOT 2, because G is greater than V (one greater, in fact), so |
|
| 543 | +we can similarly whittle that off. |
|
| 544 | + |
|
| 545 | +Relational chains can look as follows now: |
|
| 546 | + |
|
| 547 | + * R < B << V < G << O < L < J < K |
|
| 548 | + * R < B << M << O < L < J < K |
|
| 549 | + * R < B << P << O < L < J < K |
|
| 550 | + |
|
| 551 | +Basically just down to V, G, P, and M. |
|
| 552 | + |
|
| 553 | +### Finding V and G |
|
| 554 | + |
|
| 555 | +And I think we have the means to find V: notice the second to last |
|
| 556 | +subtraction, the "LKBKV". You know where we get that from? Multiplying |
|
| 557 | +the divisor (KJKK) by J (since it is the third subtraction taking place). |
|
| 558 | + |
|
| 559 | +We KNOW the numeric values of K and J, in fact we know the values of L, |
|
| 560 | +K, and B. The only thing we don't know is 'V', and since V is in the |
|
| 561 | +one's place, that makes things super easy for us. |
|
| 562 | + |
|
| 563 | +KJKK = 9899 |
|
| 564 | +J = 8 |
|
| 565 | + |
|
| 566 | +So: 9899 x 8 = 79192 = LKBKV! |
|
| 567 | + |
|
| 568 | +V is 2! |
|
| 569 | + |
|
| 570 | +Which means, because V < G, that G is 3! |
|
| 571 | + |
|
| 572 | +Updating our records: |
|
| 573 | + |
|
| 574 | +``` |
|
| 575 | +| 0 | R | |
|
| 576 | +| 1 | B | |
|
| 577 | +| 2 | V | |
|
| 578 | +| 3 | G | |
|
| 579 | +| 4 | | |
|
| 580 | +| 5 | | |
|
| 581 | +| 6 | O | |
|
| 582 | +| 7 | L | |
|
| 583 | +| 8 | J | |
|
| 584 | +| 9 | K | |
|
| 585 | +``` |
|
| 586 | + |
|
| 587 | +Also, with the new introduction of M being less than K: |
|
| 588 | + |
|
| 589 | +``` |
|
| 590 | +B = { 1 } |
|
| 591 | +G = { 3 } |
|
| 592 | +J = { 8 } |
|
| 593 | +K = { 9 } |
|
| 594 | +L = { 7 } |
|
| 595 | +M = { 4, 5, } |
|
| 596 | +O = { 6 } |
|
| 597 | +P = { 4, 5, } |
|
| 598 | +R = { 0 } |
|
| 599 | +V = { 2 } |
|
| 600 | +``` |
|
| 601 | + |
|
| 602 | +Relational chains can look as follows now: |
|
| 603 | + |
|
| 604 | + * R < B < V < G << M << O < L < J < K |
|
| 605 | + * R < B < V < G << P << O < L < J < K |
|
| 606 | + |
|
| 607 | +### Finding M and discovering P |
|
| 608 | + |
|
| 609 | +And then there were 2. We really just need to find M, or P, and we're |
|
| 610 | +done. And since there are no 'P' values in the puzzle, we need to target |
|
| 611 | +M. So let's look for some candidates: |
|
| 612 | + |
|
| 613 | +Hey, how about this: |
|
| 614 | + |
|
| 615 | +``` |
|
| 616 | + JJGKL |
|
| 617 | + -LKBKV |
|
| 618 | + ===== |
|
| 619 | + KVRM |
|
| 620 | +``` |
|
| 621 | + |
|
| 622 | +One's place subtraction: L - V = M. |
|
| 623 | + |
|
| 624 | +We KNOW L (7) is greater than V (2), so no borrow is happening. |
|
| 625 | + |
|
| 626 | +L-V=M |
|
| 627 | +7-2=5 |
|
| 628 | + |
|
| 629 | +M is 5. That means P is 4 by process of elimination. |
|
| 630 | + |
|
| 631 | +Puzzle completed: |
|
| 632 | + |
|
| 633 | +``` |
|
| 634 | +| 0 | R | |
|
| 635 | +| 1 | B | |
|
| 636 | +| 2 | V | |
|
| 637 | +| 3 | G | |
|
| 638 | +| 4 | P | |
|
| 639 | +| 5 | M | |
|
| 640 | +| 6 | O | |
|
| 641 | +| 7 | L | |
|
| 642 | +| 8 | J | |
|
| 643 | +| 9 | K | |
|
| 644 | +``` |
|
| 645 | + |
|
| 646 | +Also, with the new introduction of M being less than K: |
|
| 647 | + |
|
| 648 | +``` |
|
| 649 | +B = { 1 } |
|
| 650 | +G = { 3 } |
|
| 651 | +J = { 8 } |
|
| 652 | +K = { 9 } |
|
| 653 | +L = { 7 } |
|
| 654 | +M = { 5 } |
|
| 655 | +O = { 6 } |
|
| 656 | +P = { 4 } |
|
| 657 | +R = { 0 } |
|
| 658 | +V = { 2 } |
|
| 659 | +``` |
|
| 660 | + |
|
| 661 | +Relational chains can look as follows now: |
|
| 662 | + |
|
| 663 | + * R < B < V < G < P < M < O < L < J < K |
|
| 664 | + |
|
| 665 | +I wasn't able to show it as well in text on the wiki, but I also made a |
|
| 666 | +point to mark up each subtraction to show whether a borrow occurred or |
|
| 667 | +not: |
|
| 668 | + |
|
| 669 | +{{ :undefined:borrows.jpg?400 |}} |
|
| 670 | + |
|
| 671 | +To be sure, there are likely MANY, MANY ways to arrive at these |
|
| 672 | +conclusions. What is important is being observant, performing little |
|
| 673 | +experiments, seeing if there can be any insights to have, even if |
|
| 674 | +whittling away knowing what things can NOT be. |
|
| 675 | + |
|
| 676 | +Your performance on this project will be directly tied to being able to |
|
| 677 | +document your process through the puzzle; I have provided this writeup in |
|
| 678 | +order to show you an example of what that process may look like. |
|
| 679 | + |
|
| 680 | +## GETTING STARTED |
|
| 681 | + |
|
| 682 | +In the **pctX/** sub-directory of your class Public Directory, under a |
|
| 683 | +directory by the name of your username, you will find the following |
|
| 684 | +file(s): |
|
| 685 | + |
|
| 686 | + * **puzzle** |
|
| 687 | + * possibly also a file called **table** |
|
| 688 | + * if desired, you can use **worksheet** as a base for your solution file, or for generating text-based representations for using on discord when asking for help. |
|
| 689 | + |
|
| 690 | +Copy this file into your local project directory. For most classes, a |
|
| 691 | +**grabit** is available. For others, you'll have to manually copy the |
|
| 692 | +file on your own. |
|
| 693 | + |
|
| 694 | +There is also a **MANIFEST** file in the parent directory (the **pctX/** |
|
| 695 | +sub-directory), which will contain MD5sums of the various puzzle keys, |
|
| 696 | +provided to help you in verifying your puzzle key. |
|
| 697 | + |
|
| 698 | +For this project, you have to solve, DOCUMENT, AND VERIFY the provided |
|
| 699 | +puzzle in order to be eligible for full credit will be the one contained |
|
| 700 | +in the **puzzle** file. |
|
| 701 | + |
|
| 702 | +To obtain your puzzle, you can utilize the 'grabit' tool on lab46. |
|
| 703 | + |
|
| 704 | +## PROCESS |
|
| 705 | + |
|
| 706 | +Solve, document, and verify the puzzle. |
|
| 707 | + |
|
| 708 | +On your own. |
|
| 709 | + |
|
| 710 | +Seek to discover and explore and understand, NOT to just come up with an |
|
| 711 | +answer. |
|
| 712 | + |
|
| 713 | +It is recommended you do this by hand, ON PAPER. Furthermore, using graph |
|
| 714 | +paper may help in greatly reducing mistakes, as is using two different |
|
| 715 | +coloured writing implements (green, purple; or blue, black)... write up |
|
| 716 | +the puzzle in one colour, then use the other to mark up borrows and the |
|
| 717 | +like. |
|
| 718 | + |
|
| 719 | +## A NOTE ON NUMBER BASES |
|
| 720 | + |
|
| 721 | +Some of the puzzles you may be presented with may be in different number |
|
| 722 | +bases. |
|
| 723 | + |
|
| 724 | +You are likely acclimated to the **base 10** number system, where we have |
|
| 725 | +ten unique counting digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) |
|
| 726 | + |
|
| 727 | +Different number bases simply have less or more digits. |
|
| 728 | + |
|
| 729 | +For example, base 8 and 9 both have fewer than ten counting values: |
|
| 730 | + |
|
| 731 | +| base | numbers | |
|
| 732 | +| ---- | ------------------------- | |
|
| 733 | +| 8 | 0, 1, 2, 3, 4, 5, 6, 7 | |
|
| 734 | +| 9 | 0, 1, 2, 3, 4, 5, 6, 7, 8 | |
|
| 735 | + |
|
| 736 | +And then we have bases with MORE counting values than in base 10: |
|
| 737 | + |
|
| 738 | +| base | numbers | |
|
| 739 | +| ---- | ---------------------------------- | |
|
| 740 | +| 11 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A | |
|
| 741 | +| 12 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B | |
|
| 742 | + |
|
| 743 | +Notice the presence of 'A' and 'B'... these are not variables or |
|
| 744 | +algebraic values. These are bonafide **NUMBERS**, just like 1, 2, 3. |
|
| 745 | + |
|
| 746 | +Differences manifest once you exceed the maximum counting value for the base: |
|
| 747 | + |
|
| 748 | + * base 8: 7 + 1 = 10 (pronounced "one-zero", the quantity we know of in base 10 as "eight") |
|
| 749 | + * base 9: 8 + 1 = 10 (pronounced "one-zero", the quantity we know of in base 10 as "nine") |
|
| 750 | + * base 10: 9 + 1 = 10 (pronounced "one-zero", the quantity we know of in base 10 as "ten") |
|
| 751 | + * base 11: A + 1 = 10 (pronounced "one-zero", the quantity we know of in base 10 as "eleven") |
|
| 752 | + * base 12: B + 1 = 10 (pronounced "one-zero", the quantity we know of in base 10 as "twelve") |
|
| 753 | + |
|
| 754 | +You likely have extensively memorized a table of single-digit base 10 |
|
| 755 | +values, which at first glance makes this other base stuff unfamiliar. But |
|
| 756 | +it works according to the same properties as base 10 (just, different |
|
| 757 | +symbols representing the quantities involved). |
|
| 758 | + |
|
| 759 | +For any strategies involving the "9" value (in base 10), you will find |
|
| 760 | +that the same strategy works in other bases (so it isn't so much a "9 |
|
| 761 | +trick" as it is a "highest counting digit trick"). |
|
| 762 | + |
|
| 763 | +Similarly, any of the relational or logical tricks will "just work", it |
|
| 764 | +is only the appearance of mathematical end results that really differs. |
|
| 765 | +So, if you are adept at the logical/relational methods for investigating |
|
| 766 | +a puzzle, you could perhaps minimize the amount of base-related math you |
|
| 767 | +may have to do (certainly on lower difficulty levels of puzzle). |
|
| 768 | + |
|
| 769 | +## YOUR SUBMISSION |
|
| 770 | + |
|
| 771 | +### SUBMISSION FOR STANDARD-STYLE LETTER DIVISION |
|
| 772 | + |
|
| 773 | +If your puzzle was provided with a quotient and remainder (and contains |
|
| 774 | +no question marks in the puzzle proper), you have a regular puzzle. |
|
| 775 | + |
|
| 776 | +The files you will want to submit include: |
|
| 777 | + |
|
| 778 | + * your puzzle key, in a textfile called 'pctX.puzzle.key' containing ONLY the capital letters corresponding in order to the 0-9 values (and a trailing newline). |
|
| 779 | + * your documentation of your solving and exploration of the puzzle. If you did this on paper, will need to transcribe it out into clearly readable, organized, and followable text directions. The file, in text form, should be called 'pctX.puzzle.solution'. Images of your notes will NOT be accepted for submission. |
|
| 780 | + * your verification in a file called 'pctX.puzzle.verify': this is after you've completed the puzzle, and you are resolving parts of the puzzle to ensure that the letter to number mappings are valid. |
|
| 781 | + |
|
| 782 | +Your solution MUST be of a form so that, if given to another person, they |
|
| 783 | +can follow your steps and have an understanding of the decisions made. |
|
| 784 | + |
|
| 785 | +### SUBMISSION FOR SOLVE4-STYLE LETTER DIVISION |
|
| 786 | + |
|
| 787 | +The point behind a "solve4" puzzle is to also determine the `QUOTIENT` and `REMAINDER`, in addition to the key. |
|
| 788 | + |
|
| 789 | + * your puzzle key, in a textfile called 'pctX.puzzle.key' containing ONLY the capital letters corresponding in order to the 0-9 values (and a trailing newline). |
|
| 790 | + * your documentation of your solving and exploration of the puzzle. If you did this on paper, will need to transcribe it out into clearly readable, organized, and followable text directions. The file, in text form, should be called 'pctX.puzzle.solution'. Images of your notes will NOT be accepted for submission. |
|
| 791 | + * your quotient:remainder (in letterized/obfuscated form), in a text file called 'pctX.puzzle.verify' |
|
| 792 | + |
|
| 793 | +Your solution MUST be of a form so that, if given to another person, they |
|
| 794 | +can follow your steps and have an understanding of the decisions made to |
|
| 795 | +get them from start to solution. |
|
| 796 | + |
|
| 797 | +## PUZZLE KEY |
|
| 798 | + |
|
| 799 | +As indicated, you are to place the determined key to your puzzle in a |
|
| 800 | +regular text file called 'pctX.puzzle.key', and will contain ONLY the |
|
| 801 | +capital letters, in order from 0 to the highest counting symbol of the |
|
| 802 | +base, of your puzzle (and a trailing newline). |
|
| 803 | + |
|
| 804 | +For example, using the example puzzle above: |
|
| 805 | + |
|
| 806 | +| 0 | R | |
|
| 807 | +| 1 | B | |
|
| 808 | +| 2 | V | |
|
| 809 | +| 3 | G | |
|
| 810 | +| 4 | P | |
|
| 811 | +| 5 | M | |
|
| 812 | +| 6 | O | |
|
| 813 | +| 7 | L | |
|
| 814 | +| 8 | J | |
|
| 815 | +| 9 | K | |
|
| 816 | + |
|
| 817 | +We'll want to put them, in order, in our key file: |
|
| 818 | + |
|
| 819 | +``` |
|
| 820 | +$ echo "RBVGPMOLJK" > pctX.puzzle.key |
|
| 821 | +``` |
|
| 822 | + |
|
| 823 | +Want to know what a proper 'key' file should look like? This: |
|
| 824 | + |
|
| 825 | +``` |
|
| 826 | +$ cat pctX.puzzle.key |
|
| 827 | +RBVGPMOLJK |
|
| 828 | +``` |
|
| 829 | + |
|
| 830 | +JUST the letters (and a trailing newline). |
|
| 831 | + |
|
| 832 | +## PUZZLE SOLUTION |
|
| 833 | + |
|
| 834 | +As stated, a very large part of this project's evaluation will be based |
|
| 835 | +on your clear and detailed documentation of how you determined each |
|
| 836 | +letter's mapping in the solution key of your puzzle. |
|
| 837 | + |
|
| 838 | +Just providing the 'key' will not result in success. |
|
| 839 | + |
|
| 840 | +Your documentation should, while there may be supporting information, |
|
| 841 | +provide some identified path that showed the steps you went through to |
|
| 842 | +identify each letter, be it directly or indirectly. |
|
| 843 | + |
|
| 844 | +You are free to write out your solution with pen on paper (that is how I |
|
| 845 | +usually do these puzzles); but to submit, you MUST transcribe it to text |
|
| 846 | +and submit it in that format. Images will NOT be accepted. Do not look on |
|
| 847 | +this as a reason to avoid doing it by hand: the manual work of the |
|
| 848 | +process is inherently beneficial, you simply need to commit to doing it. |
|
| 849 | + |
|
| 850 | +The aim here is not to dump a bunch of data on me, but instead present me |
|
| 851 | +with connected and pertinent information that documents your process of |
|
| 852 | +progression through the puzzle from start to finish. This is in the same |
|
| 853 | +vein as programming in a language on a computer. A computer program is a |
|
| 854 | +detailed description of a process to solving some problem in a format the |
|
| 855 | +receiver can understand. |
|
| 856 | + |
|
| 857 | +## VERIFICATION |
|
| 858 | + |
|
| 859 | +Depending on the type of puzzle you have (regular or "solve for" |
|
| 860 | +variety), the contents of your verification file will differ. |
|
| 861 | + |
|
| 862 | +What is the difference between a regular puzzle and a solve4 puzzle? |
|
| 863 | +Basically: |
|
| 864 | + |
|
| 865 | + * a regular puzzle comes with quotient and remainder included in your puzzle |
|
| 866 | + * a solve4 puzzle omits the quotient and remainder, and instead replaces them with a series of question marks, indicating that as part of your task in solving the puzzle, you must also figure out the quotient and remainder (this is why the verify for solve4 puzzles is shorter and simpler: you've already done so much of the verification work in solving it). |
|
| 867 | + |
|
| 868 | +### REGULAR PUZZLE |
|
| 869 | + |
|
| 870 | +In this form, your 'pctX.puzzle.verify' file will be similar format to |
|
| 871 | +your writeup (a description of what aspects of the puzzle you are testing |
|
| 872 | +to ensure things work out). |
|
| 873 | + |
|
| 874 | +You are to manually verify your solution by taking the numeric identities |
|
| 875 | +of each letter, plugging them back into the original puzzle, solving it, |
|
| 876 | +and converting the obtained quotient and remainder back into letter form |
|
| 877 | +to compare with those in the puzzle provided to you. If they match, you |
|
| 878 | +have successfully solved the puzzle. If they do not match, some error |
|
| 879 | +exists that should be addressed and corrected. |
|
| 880 | + |
|
| 881 | +An example of a verification text can be found below. |
|
| 882 | + |
|
| 883 | +### EXAMPLE FOR REGULAR PUZZLE |
|
| 884 | + |
|
| 885 | +The best way to verify the puzzle with our key is to convert the dividend |
|
| 886 | +and divisor to its numeric equivalent, perform the division, and |
|
| 887 | +compare the resulting quotient and remainder against those found in the |
|
| 888 | +letterified puzzle: |
|
| 889 | + |
|
| 890 | + * divisor: KJKK --> 9899 |
|
| 891 | + * dividend: GLMBRVLR --> 37510270 |
|
| 892 | + |
|
| 893 | +And let's do some long division! |
|
| 894 | + |
|
| 895 | +``` |
|
| 896 | + +--------- |
|
| 897 | + 9899 | 37510270 |
|
| 898 | +``` |
|
| 899 | + |
|
| 900 | +9899 goes into 37510 three times: |
|
| 901 | + |
|
| 902 | +``` |
|
| 903 | + 3 |
|
| 904 | + +--------- |
|
| 905 | + 9899 | 37510270 |
|
| 906 | + -29697 |
|
| 907 | + ===== |
|
| 908 | + 78132 |
|
| 909 | +``` |
|
| 910 | + |
|
| 911 | +It might be convenient to have a quick factor reference for 9899 handy: |
|
| 912 | + |
|
| 913 | + * 9899 * 0 = 0 |
|
| 914 | + * 9899 * 1 = 9899 |
|
| 915 | + * 9899 * 2 = 19798 |
|
| 916 | + * 9899 * 3 = 29697 |
|
| 917 | + * 9899 * 4 = 39596 |
|
| 918 | + * 9899 * 5 = 49495 |
|
| 919 | + * 9899 * 6 = 59394 |
|
| 920 | + * 9899 * 7 = 69293 |
|
| 921 | + * 9899 * 8 = 79192 |
|
| 922 | + * 9899 * 9 = 89091 |
|
| 923 | + |
|
| 924 | +9899 fits into 78132 seven times (69293): |
|
| 925 | + |
|
| 926 | +``` |
|
| 927 | + 37 |
|
| 928 | + +--------- |
|
| 929 | + 9899 | 37510270 |
|
| 930 | + -29697 |
|
| 931 | + ===== |
|
| 932 | + 78132 |
|
| 933 | + -69293 |
|
| 934 | + ===== |
|
| 935 | + 88397 |
|
| 936 | +``` |
|
| 937 | + |
|
| 938 | +Once again, looking at the list of factors, we see that the best fit for 9899 into 88397 is 79192 (a factor of 8): |
|
| 939 | + |
|
| 940 | +``` |
|
| 941 | + 378 |
|
| 942 | + +--------- |
|
| 943 | + 9899 | 37510270 |
|
| 944 | + -29697 |
|
| 945 | + ===== |
|
| 946 | + 78132 |
|
| 947 | + -69293 |
|
| 948 | + ===== |
|
| 949 | + 88397 |
|
| 950 | + -79192 |
|
| 951 | + ===== |
|
| 952 | + 92050 |
|
| 953 | +``` |
|
| 954 | + |
|
| 955 | +Finally, a factor of 9 (89091) fits in best: |
|
| 956 | + |
|
| 957 | +``` |
|
| 958 | + 3789 <-- quotient |
|
| 959 | + +--------- |
|
| 960 | + 9899 | 37510270 |
|
| 961 | + -29697 |
|
| 962 | + ===== |
|
| 963 | + 78132 |
|
| 964 | + -69293 |
|
| 965 | + ===== |
|
| 966 | + 88397 |
|
| 967 | + -79192 |
|
| 968 | + ===== |
|
| 969 | + 92050 |
|
| 970 | + -89091 |
|
| 971 | + ===== |
|
| 972 | + 2959 <-- remainder |
|
| 973 | +``` |
|
| 974 | + |
|
| 975 | +Converting our quotient and remainder back to letters: |
|
| 976 | + |
|
| 977 | + * quotient: 3789 --> GLJK |
|
| 978 | + * remainder: 2959 --> VKMK |
|
| 979 | + |
|
| 980 | +And comparing against the problem we were given: |
|
| 981 | + |
|
| 982 | + * quotient: GLJK <-> GLJK |
|
| 983 | + * remainder: VKMK <-> VKMK |
|
| 984 | + |
|
| 985 | +Success! |
|
| 986 | + |
|
| 987 | +## SOLVE4 PUZZLE |
|
| 988 | + |
|
| 989 | +The verification for these puzzles becomes a bit easier, as you are |
|
| 990 | +merely providing the quotient and remainder. |
|
| 991 | + |
|
| 992 | +Let's say the quotient was "BTXMK" and the remainder was "YYGMX" |
|
| 993 | + |
|
| 994 | +You'd prepare your 'pctX.puzzle.verify' file as follows: |
|
| 995 | + |
|
| 996 | +``` |
|
| 997 | +$ echo "BTXMK:YYGMX" > pctX.puzzle.verify |
|
| 998 | +``` |
|
| 999 | + |
|
| 1000 | +Basically: quotient followed by remainder, separated by a colon, all on |
|
| 1001 | +the same line. |
|
| 1002 | + |
|
| 1003 | +NOTE: Do not include any leading zeroes. |
|
| 1004 | + |
|
| 1005 | +## WALKTHROUGH VIDEOS |
|
| 1006 | + |
|
| 1007 | +To further aid your letter division efforts, I have recorded some videos |
|
| 1008 | +showing my walkthrough of various letter division puzzles: |
|
| 1009 | + |
|
| 1010 | + * [another take on the puzzle presented on this page](https://youtu.be/8oCoGGspf70) |
|
| 1011 | + * [a base 8 letter division puzzle](https://www.youtube.com/watch?v=2Zoa6iymxpw) |
|
| 1012 | + * [a base 9 letter division puzzle](https://www.youtube.com/watch?v=zil4YjgC6bw) |
|
| 1013 | + * [a base 10 letter division puzzle](https://www.youtube.com/watch?v=b6wv9zXlbJE) |
|
| 1014 | + * [a base 11 letter division puzzle](https://youtu.be/OHrLOVihi_4) |
|
| 1015 | + |
|
| 1016 | +## STRATEGIES |
|
| 1017 | + |
|
| 1018 | +### LEFT EDGE |
|
| 1019 | + |
|
| 1020 | +An advantage of the left-most values, is the top value is greater than |
|
| 1021 | +those beneath it (it doesn't need to borrow; indeed it CANNOT borrow, |
|
| 1022 | +without breaking math). Might be taken from, however... |
|
| 1023 | + |
|
| 1024 | +This can also help establish the state of borrows elsewhere in the |
|
| 1025 | +puzzle, should a similar subtraction (same top-value) be present in more |
|
| 1026 | +than one place. |
|
| 1027 | + |
|
| 1028 | +For example: |
|
| 1029 | + |
|
| 1030 | +``` |
|
| 1031 | + WXXY |
|
| 1032 | + -PQRT |
|
| 1033 | + ==== |
|
| 1034 | + GCBA |
|
| 1035 | +``` |
|
| 1036 | + |
|
| 1037 | + * W-P=G |
|
| 1038 | + * P << W (P is somewhat less than W) |
|
| 1039 | + * G << W (G is somewhat less than W) |
|
| 1040 | + |
|
| 1041 | +NOTE: from this example alone, we do NOT know P's relationship to G. |
|
| 1042 | + |
|
| 1043 | +## DETERMINE BORROWS AND TAKES |
|
| 1044 | + |
|
| 1045 | +Like the range table and your chains of assertions gradually assembled |
|
| 1046 | +during puzzle solving, another activity you should undertake is the |
|
| 1047 | +determination of all the borrows/takes in the puzzle. |
|
| 1048 | + |
|
| 1049 | +And not just IF there is a borrow/take, but also if there isn't one. |
|
| 1050 | + |
|
| 1051 | +Many may remember the idea of borrows from math class, and are confused |
|
| 1052 | +at what a "take" is: this is just our attempt to connect one subtraction |
|
| 1053 | +into the tapestry of the overall problem. |
|
| 1054 | + |
|
| 1055 | +Take the following numeric example: |
|
| 1056 | + |
|
| 1057 | +``` |
|
| 1058 | + 545 |
|
| 1059 | +-347 |
|
| 1060 | + === |
|
| 1061 | + 198 |
|
| 1062 | +``` |
|
| 1063 | + |
|
| 1064 | +Notice how, looking at the 5-7=8 subtraction (on the far right), we can |
|
| 1065 | +see that the 5 is somewhat less than 7 (and the 8), so that 5 would have |
|
| 1066 | +to borrow. |
|
| 1067 | + |
|
| 1068 | +Being all the way on the right, nothing is able to take from it, so that |
|
| 1069 | +5 is borrowing, but not being taken from. |
|
| 1070 | + |
|
| 1071 | +Onto the 4-4=9… because the 5 to its right is needing to borrow… what |
|
| 1072 | +is it borrowing from? The 4. So our 4 is being "taken from". |
|
| 1073 | + |
|
| 1074 | + * 4-1=3 |
|
| 1075 | + |
|
| 1076 | +3 is less than 4 (And 9), so THAT now has to borrow. |
|
| 1077 | + |
|
| 1078 | +So the 4 is being taken from, and as a result, needs to borrow. |
|
| 1079 | + |
|
| 1080 | +Then proceeding left to the 5-3=1... being all the way on the left, |
|
| 1081 | +it can’t borrow from anything, and the universe would explode |
|
| 1082 | +mathematically if the leftmost, top value in a long division term were |
|
| 1083 | +less than what was being subtracted from it. So, the 5 does not have to |
|
| 1084 | +borrow. But we know from the 4-4=9 subtraction, that the 4 borrows, and |
|
| 1085 | +it is borrowing from the 5 |
|
| 1086 | + |
|
| 1087 | +So: that left-most 5 is not borrowing, but it IS being taken from. |
|
| 1088 | + |
|
| 1089 | +The state of the borrows/takes greatly enhances our ability to scoop up |
|
| 1090 | +additional clues we can turn into assertions. |
|
| 1091 | + |
|
| 1092 | +## TOP IS KNOWN GREATER THAN |
|
| 1093 | + |
|
| 1094 | +When we know the top letter is greater than at least one of the other two |
|
| 1095 | +numbers in the subtraction, turns out it is also greater than the other: |
|
| 1096 | + |
|
| 1097 | +``` |
|
| 1098 | + 8 7 6 5 |
|
| 1099 | +-5 -1 -4 -2 |
|
| 1100 | +== == == == |
|
| 1101 | + 3 6 2 3 |
|
| 1102 | +``` |
|
| 1103 | + |
|
| 1104 | +This can also help establish the state of borrows elsewhere in the |
|
| 1105 | +puzzle, should a similar subtraction (same top-value and other letter) be |
|
| 1106 | +present in more than one place. |
|
| 1107 | + |
|
| 1108 | +When the top is known to be greater than the or a number beneath, it |
|
| 1109 | +signifies that NO BORROW is happening. |
|
| 1110 | + |
|
| 1111 | +NOTE: this doesn't tell us anything about the TAKE situation. |
|
| 1112 | + |
|
| 1113 | +## TOP IS KNOWN LESS THAN |
|
| 1114 | + |
|
| 1115 | +When we know the top letter is less than at least one of the other two |
|
| 1116 | +numbers in the subtraction, turns out it is also less than the other: |
|
| 1117 | + |
|
| 1118 | +``` |
|
| 1119 | +13 12 16 11 |
|
| 1120 | +-5 -3 -7 -4 |
|
| 1121 | +== == == == |
|
| 1122 | + 8 9 9 7 |
|
| 1123 | +``` |
|
| 1124 | + |
|
| 1125 | +This can also help establish the state of borrows elsewhere in the |
|
| 1126 | +puzzle, should a similar subtraction (same top-value and other letter) be |
|
| 1127 | +present in more than one place. |
|
| 1128 | + |
|
| 1129 | +When the top is known to be less than the or a number beneath, it |
|
| 1130 | +signifies that a BORROW is happening. |
|
| 1131 | + |
|
| 1132 | +NOTE: this doesn't tell us anything about the TAKE situation. |
|
| 1133 | + |
|
| 1134 | +## RIGHT EDGE |
|
| 1135 | + |
|
| 1136 | +We know from right-most values, that they are NOT being taken from. |
|
| 1137 | + |
|
| 1138 | +This can also help establish the state of takes elsewhere in the puzzle, |
|
| 1139 | +should an identical subtraction be present in more than one place. |
|
| 1140 | + |
|
| 1141 | +## LOOK FOR ZERO AND GREATEST SYMBOL CANDIDATES |
|
| 1142 | + |
|
| 1143 | +There are two common give-away cases for finding the two extreme digits |
|
| 1144 | +(least/lowest/zero and greatest/highest) in a puzzle, regardless of base: |
|
| 1145 | + |
|
| 1146 | +``` |
|
| 1147 | + X |
|
| 1148 | + -X |
|
| 1149 | + = |
|
| 1150 | + Y |
|
| 1151 | +``` |
|
| 1152 | + |
|
| 1153 | +and: |
|
| 1154 | + |
|
| 1155 | +``` |
|
| 1156 | + X |
|
| 1157 | + -Y |
|
| 1158 | + = |
|
| 1159 | + X |
|
| 1160 | +``` |
|
| 1161 | + |
|
| 1162 | +We don't, simply from this display, know if it is 0 or if it is the |
|
| 1163 | +greatest digit. Merely that it can only be 0 or the greatest digit. |
|
| 1164 | + |
|
| 1165 | +Determining the identity of the letter (Y in these examples) depends on |
|
| 1166 | +the state of borrow/takings for the subtraction. |
|
| 1167 | + |
|
| 1168 | +There really are only TWO possibilities here: |
|
| 1169 | + |
|
| 1170 | + * no borrow AND no take (Y would be 0) |
|
| 1171 | + * borrow AND take (Y would be the greatest digit) |
|
| 1172 | + |
|
| 1173 | +The other two scenarios are mathematically impossible given this |
|
| 1174 | +particular pattern (again, ONLY for 0, greatest digit scenario). |
|
| 1175 | + |
|
| 1176 | +## PROCESS OF ELIMINATION |
|
| 1177 | + |
|
| 1178 | +A tactic that sees use in almost any puzzle is that of elimination: or |
|
| 1179 | +using logic to negate possibilities. |
|
| 1180 | + |
|
| 1181 | +For example: |
|
| 1182 | + |
|
| 1183 | +``` |
|
| 1184 | + ABCD |
|
| 1185 | +-EFGH |
|
| 1186 | + ==== |
|
| 1187 | + JKLM |
|
| 1188 | +``` |
|
| 1189 | + |
|
| 1190 | +Looking at that right-most subtraction (D-H=M), even if we know NOTHING |
|
| 1191 | +about D, H, or M, we can, however, ascertain that: |
|
| 1192 | + |
|
| 1193 | + * H is NOT zero |
|
| 1194 | + * M is NOT zero |
|
| 1195 | + |
|
| 1196 | +Because none of the zero patterns are manifesting (if we had D-H=D, for |
|
| 1197 | +instance, in that right-most position, we'd KNOW that H was zero), we can |
|
| 1198 | +categorically eliminate zero as a possibility for the two lower letters |
|
| 1199 | +in this subtraction (NOTE: D very well COULD BE zero, but we can't do |
|
| 1200 | +anything about determining yet solely based on this observation). |
|
| 1201 | + |
|
| 1202 | +This strategy would work in other places, too, if sufficient |
|
| 1203 | +borrows/takes were known. |
|
| 1204 | + |
|
| 1205 | +For example, in A-E=J, if we had established that A was NOT being taken |
|
| 1206 | +from, we could apply this same elimination to E and J (not zero). |
|
| 1207 | + |
|
| 1208 | +Or B-F=K, or C-G=L, if we knew we weren't being taken from. But if we |
|
| 1209 | +don't know the take situation, we cannot yet act on this. |
|
| 1210 | + |
|
| 1211 | +## DOUBLING |
|
| 1212 | + |
|
| 1213 | +Sometimes we will be treated to things like: |
|
| 1214 | + |
|
| 1215 | +``` |
|
| 1216 | + T |
|
| 1217 | + -P |
|
| 1218 | + = |
|
| 1219 | + P |
|
| 1220 | +``` |
|
| 1221 | + |
|
| 1222 | +Which implies T is double the value of P. |
|
| 1223 | + |
|
| 1224 | +This isn't the whole story, as we REALLY need to know the borrow/take |
|
| 1225 | +situation to do anything with this information. |
|
| 1226 | + |
|
| 1227 | +For example, for an even base: if T is being TAKEN FROM, we know that T |
|
| 1228 | +is odd. Likewise, if it is NOT being taken from, T is even. |
|
| 1229 | + |
|
| 1230 | +Also: |
|
| 1231 | + |
|
| 1232 | + * If T does NOT borrow, P+P is some value less than 10. |
|
| 1233 | + * If T DOES borrow, P+P is some value greater than or equal to 10. |
|
| 1234 | + |
|
| 1235 | +In either case of T being odd or even, we can eliminate half the values |
|
| 1236 | +(if T is even, it cannot be any odd values, not in an even base). |
|
| 1237 | + |
|
| 1238 | +## NEXT-TO HINTS |
|
| 1239 | + |
|
| 1240 | +Sometimes you may be treated to left-most clues like this: |
|
| 1241 | + |
|
| 1242 | +``` |
|
| 1243 | + JKLM |
|
| 1244 | + -FGHH |
|
| 1245 | + ==== |
|
| 1246 | + TWX |
|
| 1247 | +``` |
|
| 1248 | + |
|
| 1249 | +Notice how J-F equals nothing? That tells us the following things: |
|
| 1250 | + |
|
| 1251 | + * F is exactly one value less than J (written: F < J) |
|
| 1252 | + * K is LESS THAN G and T (K has to borrow to make J-F=0 versus the 1 it would otherwise be). |
|
| 1253 | + |
|
| 1254 | +## MORE NEXT-TO HINTS |
|
| 1255 | + |
|
| 1256 | +What really pays off is when we have a scenario like this: |
|
| 1257 | + |
|
| 1258 | +``` |
|
| 1259 | + JKLJM |
|
| 1260 | + -FGHFH |
|
| 1261 | + ===== |
|
| 1262 | + TWUX |
|
| 1263 | +``` |
|
| 1264 | + |
|
| 1265 | +See that nestled J-F=U there? Because we had the left-most J-F=NOTHING |
|
| 1266 | +establishing our assertion that F < J, yet NOT knowing the state of being |
|
| 1267 | +taken from (ie not knowing anything about M against H or X): |
|
| 1268 | + |
|
| 1269 | + * U is EITHER 0 or 1, to be immediately determined once we know the state of M against H or X (the subtraction immediately to the right). |
|
| 1270 | + |
|
| 1271 | +## SUBTRACT BY GREATEST DIGIT, GET INCREMENT |
|
| 1272 | + |
|
| 1273 | +If we have identified the greatest value, and we see it elsewhere in the |
|
| 1274 | +puzzle, NOT as the top value, but as the value being subtracted, or the |
|
| 1275 | +result, and we are not being taken from, we know some things. |
|
| 1276 | + |
|
| 1277 | +For example, let's say C is the greatest digit (9 in base 10), and E << |
|
| 1278 | +T: |
|
| 1279 | + |
|
| 1280 | +``` |
|
| 1281 | + PHANT |
|
| 1282 | + - OMME |
|
| 1283 | + ===== |
|
| 1284 | + NACE |
|
| 1285 | +``` |
|
| 1286 | + |
|
| 1287 | +See the N-M=C ? |
|
| 1288 | + |
|
| 1289 | +Because we know C is 9: |
|
| 1290 | + |
|
| 1291 | + * N << C (everything not C is less than C (9)) |
|
| 1292 | + * therefore also: N << M |
|
| 1293 | + |
|
| 1294 | +Watch what happens when we plug in values: |
|
| 1295 | + |
|
| 1296 | + * N = 1: 11-9=2 |
|
| 1297 | + * N = 2: 12-9=3 |
|
| 1298 | + * N = 3: 13-9=4 |
|
| 1299 | + * N = 4: 14-9=5 |
|
| 1300 | + * ... through N=7 |
|
| 1301 | + |
|
| 1302 | +Notice how when N is 1, M is 2... 2, 3... 3, 4... ? |
|
| 1303 | + |
|
| 1304 | +In this scenario: N is EXACTLY ONE LESS than M: N < M. |
|
| 1305 | + |
|
| 1306 | +But only when we KNOW what the greatest digit in a base is and know the |
|
| 1307 | +state of whether or not we are being taken from. |
|
| 1308 | + |
|
| 1309 | +## SUBTRACT BY KNOWN OFFSET FROM GREATEST DIGIT, GET OFFSET INCREMENT |
|
| 1310 | + |
|
| 1311 | +Related to the above strategy, on "Subtract by greatest digit, get |
|
| 1312 | +increment", it actually applies to more than just the greatest digit: so |
|
| 1313 | +long as you know its distance from the greatest digit, and the take |
|
| 1314 | +situation of the subtraction, you can derive the offset of increment. |
|
| 1315 | + |
|
| 1316 | +A chart of the first few (I typically don't go any further than this out |
|
| 1317 | +of practicality, although the pattern persists beyond this point of |
|
| 1318 | +reporting): |
|
| 1319 | + |
|
| 1320 | +| digit | being taken from | not being taken from | |
|
| 1321 | +| ---------- | ---------------- | -------------------- | |
|
| 1322 | +| greatest | 0 | 1 | |
|
| 1323 | +| greatest-1 | 1 | 2 | |
|
| 1324 | +| greatest-2 | 2 | 3 | |
|
| 1325 | + |
|
| 1326 | +For example, let's say R is the second greatest digit (A in base 12), and |
|
| 1327 | +let's say we know that C << R: |
|
| 1328 | + |
|
| 1329 | +``` |
|
| 1330 | + SECOND |
|
| 1331 | + - GRADE |
|
| 1332 | + ====== |
|
| 1333 | + MATHS |
|
| 1334 | +``` |
|
| 1335 | + |
|
| 1336 | +See the C-R=A? With R being the known second greatest digit, and knowing |
|
| 1337 | +that C is somewhat less than R, that means C is borrowing. |
|
| 1338 | + |
|
| 1339 | +Looking at the table, depending on the take situation, we can determine |
|
| 1340 | +that C is exactly 1 or 2 values less than A, potentially offing up nice |
|
| 1341 | +reduction of possibilities for both C and A. |
|
| 1342 | + |
|
| 1343 | +Should it turn out C is being taken from, then C is exactly 1 less than |
|
| 1344 | +A. |
|
| 1345 | + |
|
| 1346 | +If C is not being taken from, then C is exactly 2 less than A. |
|
| 1347 | + |
|
| 1348 | +## DIVISOR/MULTIPLICATION RELATIONS |
|
| 1349 | + |
|
| 1350 | +Since letter divisions are but a long division, if we were to look at one |
|
| 1351 | +(base 10) as purely numbers: |
|
| 1352 | + |
|
| 1353 | +``` |
|
| 1354 | + 2565 |
|
| 1355 | + +--------- |
|
| 1356 | +27846 | 71447493 |
|
| 1357 | + -55692 |
|
| 1358 | + ===== |
|
| 1359 | + 157554 |
|
| 1360 | + -139230 |
|
| 1361 | + ====== |
|
| 1362 | + 183249 |
|
| 1363 | + -167076 |
|
| 1364 | + ====== |
|
| 1365 | + 161733 |
|
| 1366 | + -139230 |
|
| 1367 | + ====== |
|
| 1368 | + 22503 |
|
| 1369 | +``` |
|
| 1370 | + |
|
| 1371 | +Do you see that the divisor (27846) x 2 = 55692, divisor x 5 = 139230, |
|
| 1372 | +and divisor x 6 = 167076? |
|
| 1373 | + |
|
| 1374 | +Pay specific attention to the subtrahend of 55692. Notice how it is |
|
| 1375 | +exactly the same length in digits as the divisor (5 digits). This allows |
|
| 1376 | +us to make an important comparison: |
|
| 1377 | + |
|
| 1378 | + * divisor (27846) x 1 = the divisor itself (27846). |
|
| 1379 | + * any similarly-lengthed subtrahend as the divisor is NOT less than the divisor. |
|
| 1380 | + * so we can make a comparison between the first digits of the divisor and that of the subtrahend. |
|
| 1381 | + |
|
| 1382 | +In a fully enlettered puzzle: |
|
| 1383 | + |
|
| 1384 | +``` |
|
| 1385 | + TECE |
|
| 1386 | + +--------- |
|
| 1387 | +TMGNC | MSNNMNXL |
|
| 1388 | + -EECXT |
|
| 1389 | + ===== |
|
| 1390 | + SEMEEN |
|
| 1391 | + -SLXTLR |
|
| 1392 | + ====== |
|
| 1393 | + SGLTNX |
|
| 1394 | + -SCMRMC |
|
| 1395 | + ====== |
|
| 1396 | + SCSMLL |
|
| 1397 | + -SLXTLR |
|
| 1398 | + ====== |
|
| 1399 | + TTERL |
|
| 1400 | +``` |
|
| 1401 | + |
|
| 1402 | +In the case of TMGNC (the divisor) and EECXT (that first subtrahend), |
|
| 1403 | +specifically their first letters (T and E), because they are both the |
|
| 1404 | +same length (5 letters), we can establish the following relation: |
|
| 1405 | + |
|
| 1406 | + * T << E (T is somewhat less than E) |
|
| 1407 | + * by extension, the minuend the subtrahend is being subtracted from, has to be at least the same size or larger than the subtrahend. So, similarly, in TMGNC (the divisor) and MSNNM (5 letters), T << M (T is somewhat less than M. |
|
| 1408 | + |
|
| 1409 | +This strategy, making use of multiplication, can only be used on puzzles |
|
| 1410 | +where multiplication has not been restricted. |
|
| 1411 | + |
|
| 1412 | +## INVERTED SUBTRACTION PAIRS |
|
| 1413 | + |
|
| 1414 | +Given the following puzzle: |
|
| 1415 | + |
|
| 1416 | +``` |
|
| 1417 | + SETX |
|
| 1418 | + +--------- |
|
| 1419 | +EXEXT | XSSEMLMS |
|
| 1420 | + -EXEXT |
|
| 1421 | + ===== |
|
| 1422 | + LSECEL |
|
| 1423 | + -TXMXCR |
|
| 1424 | + ====== |
|
| 1425 | + SMCXLM |
|
| 1426 | + -SSXSGN |
|
| 1427 | + ====== |
|
| 1428 | + EMMELS |
|
| 1429 | + -ELCLTG |
|
| 1430 | + ====== |
|
| 1431 | + NSTRL |
|
| 1432 | + |
|
| 1433 | +base: 10 |
|
| 1434 | +``` |
|
| 1435 | + |
|
| 1436 | +Have you ever noticed patterns like the following: |
|
| 1437 | + |
|
| 1438 | + * M-T=E (1st row, right-most) |
|
| 1439 | + * E-M=M (2nd row, 3rd from left) |
|
| 1440 | + |
|
| 1441 | +or: |
|
| 1442 | + |
|
| 1443 | + * X-E=L (1st row, left-most) |
|
| 1444 | + * E-X=C (1st row, 2nd from right) |
|
| 1445 | + |
|
| 1446 | +Basically, two different subtractions that match the following pattern: |
|
| 1447 | + |
|
| 1448 | + * top letter in one is a middle/bottom letter in the other |
|
| 1449 | + * middle/bottom letter in the first is the top in the other |
|
| 1450 | + |
|
| 1451 | +... as is the case in those two identified examples: M (top), E (bottom) |
|
| 1452 | +and E(top), M (middle/bottom) |
|
| 1453 | + |
|
| 1454 | +or: X (top), E (middle) and then E (top), X (middle). |
|
| 1455 | + |
|
| 1456 | +When you have scenarios such as this we can assume something about the |
|
| 1457 | +sum of the OTHER two letters involved: |
|
| 1458 | + |
|
| 1459 | + * (E,X) C + L |
|
| 1460 | + * (E,M) M + T |
|
| 1461 | + |
|
| 1462 | +There are actually three possible sums, all dependent upon the state of |
|
| 1463 | +the takes: |
|
| 1464 | + |
|
| 1465 | +| no take from either | take from one but not the other | take from both | |
|
| 1466 | +| ------------------- | ------------------------------- | -------------- | |
|
| 1467 | +| the base | the base - 1 | the base - 2 | |
|
| 1468 | + |
|
| 1469 | +So, in the case of M-T=E and E-M=M, because M-T=E is on the right edge, |
|
| 1470 | +we know it cannot be taken from, so then we only need to determine the |
|
| 1471 | +take situation for E-M=M. Therefore, there are TWO potential answers for |
|
| 1472 | +M+T: |
|
| 1473 | + |
|
| 1474 | + * (no takes) M + T = 10 |
|
| 1475 | + * (one take) M + T = 9 |
|
| 1476 | + |
|
| 1477 | +... since the base of the puzzle is 10, 10 is the sum when there are no |
|
| 1478 | +takes involved on the two subtractions. For other bases, it is still "one |
|
| 1479 | +zero", but obviously the quantity of that base. |
|
| 1480 | + |
|
| 1481 | +The other identified pair in this example; the case of X-E=L and E-X=C, |
|
| 1482 | +both are within a line, so no immediate clues as to certain states on |
|
| 1483 | +take/no take. Therefore: |
|
| 1484 | + |
|
| 1485 | + * (no takes) C + L = 10 |
|
| 1486 | + * (one take) C + L = 9 |
|
| 1487 | + * (two takes) C + L = 8 |
|
| 1488 | + |
|
| 1489 | +This tends to be a nice way of accruing additional clues not revealed |
|
| 1490 | +in more common methods, increasing the chances of increasing letter |
|
| 1491 | +connectivity and deriving an eventual solution. |
|
| 1492 | + |
|
| 1493 | +## INVERTED SUBTRACTION RELATIONAL PAIRS |
|
| 1494 | + |
|
| 1495 | +Similar to the above strategy, what happens if you identify two |
|
| 1496 | +subtraction pairs, but instead of involving the same symbols, involves a |
|
| 1497 | +pair of symbols based on a known relation (off by one, in either |
|
| 1498 | +direction). |
|
| 1499 | + |
|
| 1500 | +The same core logic applies (factoring in the take situation on both). |
|
| 1501 | + |
|
| 1502 | +But we can also add additional influence based on the relation of the |
|
| 1503 | +symbols being modulated. |
|
| 1504 | + |
|
| 1505 | +For instance, if we were to have a known relation of `R < C`, and we had |
|
| 1506 | +the following: |
|
| 1507 | + |
|
| 1508 | +``` |
|
| 1509 | + X C |
|
| 1510 | + -P -G |
|
| 1511 | + = = |
|
| 1512 | + R X |
|
| 1513 | +``` |
|
| 1514 | + |
|
| 1515 | +Because we know R is one less than C, and the R is the one below the top, |
|
| 1516 | +with the C on the top, the value is INCREASED by 1. |
|
| 1517 | + |
|
| 1518 | +If instead we had: |
|
| 1519 | + |
|
| 1520 | +``` |
|
| 1521 | + X R |
|
| 1522 | + -P -G |
|
| 1523 | + = = |
|
| 1524 | + C X |
|
| 1525 | +``` |
|
| 1526 | + |
|
| 1527 | +Because we know R is one less than C, and the C is the one below the top, |
|
| 1528 | +with the R on top, the value is DECREASED by 1. |
|
| 1529 | + |
|
| 1530 | +So, rolling out with known borrow-takes: |
|
| 1531 | + |
|
| 1532 | +``` |
|
| 1533 | + xXx >Cx because R < C, and the larger of the pair is on the top: |
|
| 1534 | + -P -G P + G = base - takes (no takes), PLUS 1 |
|
| 1535 | + = = |
|
| 1536 | + R X |
|
| 1537 | +``` |
|
| 1538 | + |
|
| 1539 | +``` |
|
| 1540 | + xXx >Rx because R < C, and the smaller of the pair is on the top: |
|
| 1541 | + -P -G P + G = base - takes (no takes), MINUS 1 |
|
| 1542 | + = = |
|
| 1543 | + C X |
|
| 1544 | +``` |
|
| 1545 | + |
|
| 1546 | +## SINGLE-LETTER SUBTRAHEND DETERMINATION |
|
| 1547 | + |
|
| 1548 | +NOTE: Mostly useful for the "solve4" category of letter division puzzles |
|
| 1549 | +providing a conducive scenario to utilize this strategy. |
|
| 1550 | + |
|
| 1551 | +Let's look at the following puzzle (base 12): |
|
| 1552 | + |
|
| 1553 | +``` |
|
| 1554 | + ???????? |
|
| 1555 | + +--------- |
|
| 1556 | +PTPXQ | NFNXHNXP |
|
| 1557 | + -PTPXQ |
|
| 1558 | + ===== |
|
| 1559 | + EHFXEN |
|
| 1560 | + -EQETEF |
|
| 1561 | + ====== |
|
| 1562 | + EXTXPX |
|
| 1563 | + - PTPXQ |
|
| 1564 | + ====== |
|
| 1565 | + FNJHUP |
|
| 1566 | + -FGHJEP |
|
| 1567 | + ====== |
|
| 1568 | + ?????? |
|
| 1569 | + |
|
| 1570 | +base: 12 |
|
| 1571 | +``` |
|
| 1572 | + |
|
| 1573 | +With a current range of: |
|
| 1574 | + |
|
| 1575 | +``` |
|
| 1576 | + E = { 1, } |
|
| 1577 | + F = { 2, } |
|
| 1578 | + G = { 4, A, } |
|
| 1579 | + H = { 8, } |
|
| 1580 | + J = { 3, } |
|
| 1581 | + N = { B } |
|
| 1582 | + P = { 9, } |
|
| 1583 | + Q = { 7, } |
|
| 1584 | + R = { 4, A, } |
|
| 1585 | + T = { 6, } |
|
| 1586 | + U = { 5, } |
|
| 1587 | + X = { 0, } |
|
| 1588 | +``` |
|
| 1589 | + |
|
| 1590 | +As you can see, we are between G and R for the values of 4 and A. The |
|
| 1591 | +problem here is that R does not appear anywhere in the letter division, |
|
| 1592 | +meaning we have to determine G to determine R. There exists yet another |
|
| 1593 | +problem with G, it only appears as the last subtrahend before an unknown |
|
| 1594 | +remainder; we cannot determine it through natural puzzle-solving means. |
|
| 1595 | + |
|
| 1596 | +There are a few ways to go about this: |
|
| 1597 | + |
|
| 1598 | + * last subtrahend divided by divisor |
|
| 1599 | + * finding largest possible value (with factors of divisor) to subtract last minuend by |
|
| 1600 | + * use the multiplication table and manually carry out the chain of multiplications (propagating carries as generated), building the subtrahend one value at a time (until we reach the letter in question) |
|
| 1601 | + |
|
| 1602 | +Going with the first method is simple, although depending on the values |
|
| 1603 | +known may be impossible or not be as efficient as the second method. We |
|
| 1604 | +start by turning the divisor and last subtrahend into numbers: |
|
| 1605 | + |
|
| 1606 | + * PTPXQ = 96907 |
|
| 1607 | + * FGHJEP = 2G8319 |
|
| 1608 | + |
|
| 1609 | +Since we do not know G yet, we leave it as-is. Now we can substitute G as |
|
| 1610 | +both 4 and A and try dividing by the divisor to see if we get a whole |
|
| 1611 | +number or not: |
|
| 1612 | + |
|
| 1613 | + * 248319 / 96907 = 3 <- Is clearly correct, therefore G is equal to 4 and R is equal to A. |
|
| 1614 | + * 2A8319 / 96907 = 3.76424... |
|
| 1615 | + |
|
| 1616 | +We are done with the first method. Now let's try the second method, which |
|
| 1617 | +requires more work and is very similar, but may come in handy when |
|
| 1618 | +lacking some numbers. First let's start off by turning the divisor and |
|
| 1619 | +last minuend into numbers: |
|
| 1620 | + |
|
| 1621 | + * PTPXQ = 96907 |
|
| 1622 | + * FNJHUP = 2B3859 |
|
| 1623 | + |
|
| 1624 | +Now let's make a factor list for PTPXQ: |
|
| 1625 | + |
|
| 1626 | + * 96907 * 1 = 96907 |
|
| 1627 | + * 96907 * 2 = 171612 |
|
| 1628 | + * 96907 * 3 = 248319 |
|
| 1629 | + * 96907 * 4 = 323024 |
|
| 1630 | + * 96907 * 5 = 3B992B |
|
| 1631 | + * 96907 * 6 = 494636 |
|
| 1632 | + * 96907 * 7 = 56B341 |
|
| 1633 | + * 96907 * 8 = 646048 |
|
| 1634 | + * 96907 * 9 = 720953 |
|
| 1635 | + * 96907 * A = 7B765A |
|
| 1636 | + * 96907 * B = 892365 |
|
| 1637 | + |
|
| 1638 | +From this factor list we need to see the highest number we can subtract |
|
| 1639 | +our last minuend (FNJHUP) by. Clearly 248319 from that group is smaller |
|
| 1640 | +than FNJUP and is the highest possible number. So that is the last |
|
| 1641 | +subtrahend used to get the remainder meaning G is equal 4! |
|
| 1642 | + |
|
| 1643 | +If G is equal to 4 then R is equal to A. |
|
| 1644 | + |
|
| 1645 | +## CHECKING YOUR RESULTS |
|
| 1646 | + |
|
| 1647 | +While things like the solution must be qualitatively evaluated, there are |
|
| 1648 | +a number of simple checks that can be done (especially for your key and |
|
| 1649 | +verify files) to determine whether or not you are on the right path. |
|
| 1650 | + |
|
| 1651 | +On lab46, you can run the **pzlchk** tool in the directory where your |
|
| 1652 | +puzzle files reside, and it will perform a number of tests, reporting its |
|
| 1653 | +findings to you in color-coded fashion. |
|
| 1654 | + |
|
| 1655 | +To use it: |
|
| 1656 | + |
|
| 1657 | + * log into lab46 |
|
| 1658 | + * change into the directory where your pctX.puzzle files are located (key, solution, verify) |
|
| 1659 | + * run the **pzlchk** tool with the appropriate arguments: |
|
| 1660 | + * first argument is your class DESIG |
|
| 1661 | + * second argument is your pctX project |
|
| 1662 | + * analyze the results: |
|
| 1663 | + * green and cyan indicates a level of acceptable status or success |
|
| 1664 | + * red indicates an error |
|
| 1665 | + |
|
| 1666 | +``` |
|
| 1667 | +lab46:~/src/SEMESTER/DESIG/pctX$ pzlchk DESIG pctX |
|
| 1668 | +``` |
|
| 1669 | + |
|
| 1670 | +For example, here's what a fully working, submitted output would look like: |
|
| 1671 | + |
|
| 1672 | +``` |
|
| 1673 | +lab46:~/src/SEMESTER/DESIG/pctX$ pzlchk DESIG pctX |
|
| 1674 | +Checking DESIG/pctX data files ... |
|
| 1675 | + > checking key file ... |
|
| 1676 | + > key file exists: pctX.puzzle.key |
|
| 1677 | + > key is of correct format |
|
| 1678 | + > key is of correct length |
|
| 1679 | + > key matches an entry in the MANIFEST |
|
| 1680 | + > checking solution file ... |
|
| 1681 | + > solution file exists: pctX.puzzle.solution |
|
| 1682 | + > solution file meets minimum length requirements |
|
| 1683 | + > checking verify file ... |
|
| 1684 | + > verify file exists: pctX.puzzle.verify |
|
| 1685 | + > verify is NOT of incorrect format |
|
| 1686 | + |
|
| 1687 | +Checking DESIG/pctX submission ... submitted on 20210202-211205 |
|
| 1688 | +``` |
|
| 1689 | + |
|
| 1690 | +## SUBMISSION |
|
| 1691 | + |
|
| 1692 | +By successfully performing this project, you should be submitting files |
|
| 1693 | +that satisfy the following requirements: |
|
| 1694 | + |
|
| 1695 | + * a `pctX.puzzle.key` file formatted as indicated elsewhere in this project document |
|
| 1696 | + * a `pctX.puzzle.solution` file containing organized and informative detailing of your path to solution |
|
| 1697 | + * a `pctX.puzzle.verify` file containing the appropriate verification information |
|
| 1698 | + |
|
| 1699 | +NOTE: Please substitute the actual project number in place of the 'X' in |
|
| 1700 | +pctX. |
|
| 1701 | + |
|
| 1702 | +To submit this project to me using the **submit** tool, run the following |
|
| 1703 | +command at your lab46 prompt: |
|
| 1704 | + |
|
| 1705 | +``` |
|
| 1706 | +lab46:~/src/SEMESTER/DESIG/pctX$ submit DESIG pctX pctX.puzzle.key pctX.puzzle.solution pctX.puzzle.verify |
|
| 1707 | +Submitting DESIG project "pctX": |
|
| 1708 | + -> pctX.puzzle.key(OK) |
|
| 1709 | + -> pctX.puzzle.solution(OK) |
|
| 1710 | + -> pctX.puzzle.verify(OK) |
|
| 1711 | + |
|
| 1712 | +SUCCESSFULLY SUBMITTED |
|
| 1713 | +``` |
|
| 1714 | + |
|
| 1715 | +NOTE: "DESIG" here is your class designation. It can be something like |
|
| 1716 | +"cprog", "unix", "data", "discrete", "c4eng". You should know what your |
|
| 1717 | +particular class designation is and substitute it into the submit line |
|
| 1718 | +above. |
|
| 1719 | + |
|
| 1720 | +You should get some sort of confirmation indicating successful submission |
|
| 1721 | +if all went according to plan. If not, check for typos and or locational |
|
| 1722 | +mismatches. |
|
| 1723 | + |
|
| 1724 | +I'll be looking for the following: |
|
| 1725 | + |
|
| 1726 | +``` |
|
| 1727 | +XX:pctX:final tally of results (XX/XX) |
|
| 1728 | +*:pctX:puzzle.key file submitted with correct values [#/#] (lower half of one-third) |
|
| 1729 | +*:pctX:puzzle.solution documents discovery of each letter [#/#] (two-thirds) |
|
| 1730 | +*:pctX:puzzle.verify provides verification information [#/#] (upper half of one-third) |
|
| 1731 | +``` |
|
| 1732 | + |
|
| 1733 | +Additional points of consideration: |
|
| 1734 | + |
|
| 1735 | + * if any restrictions are in force and they are ignored in the solving of the problem, up to 50% of credit can be deducted. |
|
| 1736 | + * if solution is messy and disorganized, up to 50% of credit can be deducted (if I cannot easily tell how you got something). |
|
| 1737 | + |
|
| 1738 | +Point values for the various iterations of pctX projects: |
|
| 1739 | + |
|
| 1740 | +| pct0 | 13 pts | bonus | |
|
| 1741 | +| pct1 | 13 pts | bonus | |
|
| 1742 | +| pct2 | 26 pts | | |
|
| 1743 | +| pct3 | 26 pts | bonus | |
|
| 1744 | +| pct4 | 26 pts | | |
|
| 1745 | +| pct5 | 39 pts | bonus | |
|
| 1746 | +| pct6 | 39 pts | | |
|
| 1747 | +| pct7 | 39 pts | bonus | |
|
| 1748 | +| pct8 | 39 pts | | |
|
| 1749 | +| pct9 | 52 pts | bonus | |
|
| 1750 | +| pctA | 52 pts | | |
|
| 1751 | +| pctB | 52 pts | bonus | |
|
| 1752 | +| pctC | 52 pts | | |
|
| 1753 | +| pctD | 52 pts | bonus | |
|
| 1754 | +| pctE | 52 pts | bonus | |
|
| 1755 | +| bwp1 | 39 pts | bonus | |
|
| 1756 | +| bwp2 | 52 pts | bonus | |
haas/spring2026/sysprog/projects/pctx.md
| ... | ... | @@ -1,1574 +0,0 @@ |
| 1 | -# CSCS2730 Systems Programing |
|
| 2 | -# PROJECT: PRACTICING CRITICAL THINKING (pctX) |
|
| 3 | - |
|
| 4 | -## OBJECTIVE |
|
| 5 | - |
|
| 6 | -To cultivate your problem solving, critical thinking, analytical, and |
|
| 7 | -observation skills. |
|
| 8 | - |
|
| 9 | -The aim here is on observation, analysis, and documentation. You are |
|
| 10 | -solving and documenting a problem by hand, thinking your way through to |
|
| 11 | -solution, NOT copying something, NOR writing any sort of program. |
|
| 12 | - |
|
| 13 | -=====Note===== |
|
| 14 | - |
|
| 15 | -This is a generic project page that may be used for many different pct# |
|
| 16 | -projects, as a result, you will see mention of 'pctX' throughout this |
|
| 17 | -document. Substitute the project number in place of the X when it comes |
|
| 18 | -to file-naming and project submission. |
|
| 19 | - |
|
| 20 | -For example, if you are working on pct1, when you see an a project |
|
| 21 | -reference of "pctX", instead use "pct1". |
|
| 22 | - |
|
| 23 | -I've made some alterations to administration/evaluation/performance of |
|
| 24 | -the puzzles for whatever credit there is to be earned. Those changes are: |
|
| 25 | - |
|
| 26 | - * your solution must be NO fewer than puzzle base number of lines (ie if the puzzle base is 10, your solution can NOT be shorter than 10 lines) |
|
| 27 | - * your solution must routinely show your progress, the WHY and HOW of your process, that leads you from start to completion |
|
| 28 | - * I will no longer confirm puzzle keys: giving them out deprives you of cultivating necessary debugging skills to ascertain that on your own |
|
| 29 | - * I will no longer work through your current given puzzle when you require assistance. I am more than happy to work through a DIFFERENT puzzle. |
|
| 30 | - |
|
| 31 | -Pertaining to bonus/for-credit puzzles (pct1-pctC): |
|
| 32 | - * all odd-numbered pctX projects will be bonus |
|
| 33 | - * all even-numbered pctX puzzles will be for credit |
|
| 34 | - |
|
| 35 | -## Background |
|
| 36 | - |
|
| 37 | -The true nature of problem solving frequently involves critical thinking, |
|
| 38 | -analytical, and observation skills. Where problems are not solved by |
|
| 39 | -memorizing some pre-defined set of answers and regurgitating them |
|
| 40 | -mindlessly, but in crafting an elaborate solution from subtle cues and |
|
| 41 | -tested, experimental realizations. |
|
| 42 | - |
|
| 43 | -This project puts you in contact with such endeavours. The better |
|
| 44 | -acquainted you become with these skills, the more adept you will become |
|
| 45 | -at a wide-array of tasks and activities. |
|
| 46 | - |
|
| 47 | -### Investigation/Logic Methods |
|
| 48 | - |
|
| 49 | -These problems will make use of investigative and logical processes to |
|
| 50 | -allow us to experiment and ascertain the identity of the various letters. |
|
| 51 | -This is often done through: |
|
| 52 | - |
|
| 53 | -* observation |
|
| 54 | -* seeing patterns |
|
| 55 | -* analysis |
|
| 56 | -* investigation |
|
| 57 | -* *duction: https://en.wikipedia.org/wiki/Abductive_reasoning |
|
| 58 | -* induction: https://www.analyzemath.com/math_induction/mathematical_induction.html |
|
| 59 | -* deduction: http://mathcentral.uregina.ca/QQ/database/QQ.09.99/pax1.html |
|
| 60 | - |
|
| 61 | -### Math Preparation |
|
| 62 | - |
|
| 63 | -If you find yourself struggling with the concepts of the underlying math: |
|
| 64 | - |
|
| 65 | -=> https://www.ipracticemath.com/learn/basicmath Basic Math |
|
| 66 | -=> https://www.mathsisfun.com/long_division.html Long Division |
|
| 67 | - |
|
| 68 | -The pctX problems are just your standard “long division with |
|
| 69 | -remainder” style problems, only given to you worked out, with the |
|
| 70 | -numbers replaced with letters, so instead of going at it beginning to |
|
| 71 | -end, we investigate it end to start. |
|
| 72 | - |
|
| 73 | -### Long Division |
|
| 74 | - |
|
| 75 | -Letter division is a category of logic problem where you would take an |
|
| 76 | -ordinary math equation (in long form), and substitute all the numbers for |
|
| 77 | -letters, thereby in a direct sense masking the numeric values present |
|
| 78 | -that correctly enable the problem to work from start to completion. It is |
|
| 79 | -your task, through exploring, experimenting, and playing, to ascertain |
|
| 80 | -the numeric value of each letter (as many as 10, one for each numeric |
|
| 81 | -value 0-9). |
|
| 82 | - |
|
| 83 | -We will be focusing on long division, something you learned (and perhaps |
|
| 84 | -last experienced, before becoming mindlessly addicted to pressing buttons |
|
| 85 | -on a calculator), in grade school. It entails a whole number (integer) |
|
| 86 | -division, involving aspects addition (through borrowing), and subtraction |
|
| 87 | -(primarily) to arrive at a quotient and a remainder, and if applicable: |
|
| 88 | -multiplication. |
|
| 89 | - |
|
| 90 | -There is also a logical/relational aspect to these puzzles, which may |
|
| 91 | -well be less familiar territory to some. But so incredibly important when |
|
| 92 | -exploring a process and communicating such notions to the computer. |
|
| 93 | - |
|
| 94 | -Division is unique in that it produces two 'answers', each serving |
|
| 95 | -particular uses in various applications. |
|
| 96 | - |
|
| 97 | -Here is an example (using numbers): |
|
| 98 | - |
|
| 99 | -First up, we're going to divide 87654321 (the dividend) by 1224 (the |
|
| 100 | -divisor). Commonly, especially if punching into a calculator, we might |
|
| 101 | -express that equation as: |
|
| 102 | - |
|
| 103 | -``` |
|
| 104 | -87654321/1224 |
|
| 105 | -``` |
|
| 106 | - |
|
| 107 | -Or in a language like C, assigning the quotient to the variable **x** (an |
|
| 108 | -**int**eger): |
|
| 109 | - |
|
| 110 | -``` |
|
| 111 | - x = 87654321 / 1224; |
|
| 112 | -``` |
|
| 113 | - |
|
| 114 | -But, we're not specifically interested in the 'answer' (quotient or |
|
| 115 | -remainder); we are interested in the PROCESS. You know, the stuff the |
|
| 116 | -calculator does for you, which in order to perform this project and |
|
| 117 | -better explore the aspects of critical thinking, we need to take and |
|
| 118 | -encounter every step of the way: |
|
| 119 | - |
|
| 120 | -``` |
|
| 121 | - 71613 |
|
| 122 | - +--------- |
|
| 123 | -1224 | 87654321 |
|
| 124 | - -8568 |
|
| 125 | - ==== |
|
| 126 | - 1974 |
|
| 127 | - -1224 |
|
| 128 | - ==== |
|
| 129 | - 7503 |
|
| 130 | - -7344 |
|
| 131 | - ==== |
|
| 132 | - 1592 |
|
| 133 | - -1224 |
|
| 134 | - ==== |
|
| 135 | - 3681 |
|
| 136 | - -3672 |
|
| 137 | - ==== |
|
| 138 | - 9 |
|
| 139 | -``` |
|
| 140 | - |
|
| 141 | -Here we obtain the results (focusing on the quotient up top; as the |
|
| 142 | -remainder quite literally is what remains once we're done- we're |
|
| 143 | -specifically NOT delving into decimal points, but instead doing integer |
|
| 144 | -division, which as previously stated has MANY important applications in |
|
| 145 | -computing) through a step by step process of seeing how many times our |
|
| 146 | -divisor (1224) best and in the smallest fashion fits into some current |
|
| 147 | -value of the dividend (or intermediate result thereof). |
|
| 148 | - |
|
| 149 | -For instance, seeking the smallest "best fit" of 1224 into 87654321, we |
|
| 150 | -find that 1224 fits best SEVEN times (1224 * 7 = 8568, which is the |
|
| 151 | -CLOSEST we can get to 8765... 1224 * 8 = 9792, which would be too big |
|
| 152 | -(and way too small for 87654). Clearly, we are seeking those values that |
|
| 153 | -best fit within a multiple of 0-9, staying away from double digits of |
|
| 154 | -multiplication (although, we COULD do it that way and still arrive at the |
|
| 155 | -same end result). |
|
| 156 | - |
|
| 157 | -So: 8765-8568 = 197. |
|
| 158 | - |
|
| 159 | -We have our first result, yet: there's still values in the dividend |
|
| 160 | -(87654321) remaining to process, specifically the 4321, so we take them |
|
| 161 | -one digit at a time. |
|
| 162 | - |
|
| 163 | -The next available, unprocessed digit in 4321 is '4', so we 'drop that |
|
| 164 | -down' and append it to our previous result (197), giving us: 1974. |
|
| 165 | - |
|
| 166 | -We now see how many times (via single digit multiplication), our divisor |
|
| 167 | -(1224) can fit into 1974. As it turns out, just once. |
|
| 168 | - |
|
| 169 | -So: 1974-1224 = 750. |
|
| 170 | - |
|
| 171 | -And we keep repeating the process until there are no more digits from the |
|
| 172 | -dividend to drop down; at which point, we are left with a remainder (in |
|
| 173 | -the above problem, the lone '9' at the very bottom; THAT is the |
|
| 174 | -remainder). |
|
| 175 | - |
|
| 176 | -Clearly it is important to have a handle on and understanding of the |
|
| 177 | -basic long division process before attempting a letter division problem. |
|
| 178 | -So, be sure to try your hand at a few practice problems before |
|
| 179 | -proceeding. |
|
| 180 | - |
|
| 181 | -## Letter Division: an example |
|
| 182 | - |
|
| 183 | -Following will be a sample letter division problem, and a documented |
|
| 184 | -solution of it, much as you will be doing for this project (and to be |
|
| 185 | -sure: the aim here is not merely to solve it, but to DOCUMENT HOW YOU |
|
| 186 | -SOLVED IT. You might want to keep notes as you go along to save you time |
|
| 187 | -and sanity). |
|
| 188 | - |
|
| 189 | -Here goes: |
|
| 190 | - |
|
| 191 | -``` |
|
| 192 | - GLJK |
|
| 193 | - +--------- |
|
| 194 | - KJKK | GLMBRVLR |
|
| 195 | - -VKOKL |
|
| 196 | - ===== |
|
| 197 | - LJBGV |
|
| 198 | - -OKVKG |
|
| 199 | - ===== |
|
| 200 | - JJGKL |
|
| 201 | - -LKBKV |
|
| 202 | - ===== |
|
| 203 | - KVRMR |
|
| 204 | - -JKRKB |
|
| 205 | - ===== |
|
| 206 | - VKMK |
|
| 207 | - |
|
| 208 | -letters: BGJKLMOPRV |
|
| 209 | -``` |
|
| 210 | - |
|
| 211 | -First off, note how this is NO DIFFERENT from the numeric problem above: |
|
| 212 | -just instead of numbers, which we've associated some concepts with, here |
|
| 213 | -we have letters (each letter maps to a unique number, 0-9). The trick |
|
| 214 | -will be to figure out which letter maps to which number. |
|
| 215 | - |
|
| 216 | -So, let us begin. |
|
| 217 | - |
|
| 218 | -One aim is to obtain the key to the puzzle, the mapping of the letters to |
|
| 219 | -numbers, so I will typically set up an answer key as follows: |
|
| 220 | - |
|
| 221 | -``` |
|
| 222 | -| 0 | | |
|
| 223 | -| 1 | | |
|
| 224 | -| 2 | | |
|
| 225 | -| 3 | | |
|
| 226 | -| 4 | | |
|
| 227 | -| 5 | | |
|
| 228 | -| 6 | | |
|
| 229 | -| 7 | | |
|
| 230 | -| 8 | | |
|
| 231 | -| 9 | | |
|
| 232 | -``` |
|
| 233 | - |
|
| 234 | -Another thing I like to do is set up a more visual representation of what |
|
| 235 | -each letter COULD be. I do so in the following form (I call this a "Range |
|
| 236 | -Table"): |
|
| 237 | - |
|
| 238 | -``` |
|
| 239 | -B = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 240 | -G = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 241 | -J = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 242 | -K = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 243 | -L = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 244 | -M = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 245 | -O = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 246 | -P = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 247 | -R = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 248 | -V = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 249 | -``` |
|
| 250 | - |
|
| 251 | -Then, as I figure things out (either what certain are, but mostly, which |
|
| 252 | -ones they are NOT), I can mark it up accordingly. |
|
| 253 | - |
|
| 254 | -Right from the start, we can already make some important connections; |
|
| 255 | -looking at EACH of the subtractions taking place, in the left-most |
|
| 256 | -position, we see an interesting phenomenon taking place- G-V=0, L-O=0, |
|
| 257 | -J-L=0, and K-J=0. |
|
| 258 | - |
|
| 259 | -Now, since EACH letter is its own unique numeric value, subtracting one |
|
| 260 | -letter from another on its own won't result in a value of 0, but being |
|
| 261 | -borrowed from will. |
|
| 262 | - |
|
| 263 | -That is: 7-6=1, but (7-1)-6=0. THAT is what is going on here. |
|
| 264 | - |
|
| 265 | -So what we can infer from this, is some very important connections: |
|
| 266 | - |
|
| 267 | -* V is one less than G (I'll write it as: V < G) |
|
| 268 | -* O is one less than L (O < L) |
|
| 269 | -* L is one less than J (L < J) |
|
| 270 | -* J is one less than K (J < K) |
|
| 271 | - |
|
| 272 | -Does that make sense? From looking at the puzzle, those four relations |
|
| 273 | -can be made. |
|
| 274 | - |
|
| 275 | -Now, FURTHERMORE, some of those connections are thereby connected. Look |
|
| 276 | -at the 'L' and 'J' connections: |
|
| 277 | - |
|
| 278 | -* O < L, but also: L < J |
|
| 279 | -* L < J, but also: J < K |
|
| 280 | - |
|
| 281 | -That implies a further connection, so we can chain them together: |
|
| 282 | - |
|
| 283 | -* O < L < J < K |
|
| 284 | - |
|
| 285 | -So from that initial observation and connection, we now have two |
|
| 286 | -disconnected relationships: |
|
| 287 | - |
|
| 288 | -* V < G |
|
| 289 | -* O < L < J < K |
|
| 290 | - |
|
| 291 | -From what we've done so far, we do not know where V,G fall in respect to |
|
| 292 | -O,L,J,K. They might be less than, OR greater than. We won't know without |
|
| 293 | -further information. |
|
| 294 | - |
|
| 295 | -Yet, even WITH this information, we can update our letter ranges: |
|
| 296 | - |
|
| 297 | -* since V is less than G, we know V can NOT be 9. |
|
| 298 | -* similarly, G can NOT be 0. |
|
| 299 | -* O cannot be 9, 8, 7, because we know O is 3 less than K. So even though we don't know what K actually is, because K COULD be 9, we know what O, L, and J can NOT be. |
|
| 300 | -* L cannot be 9 or 8 |
|
| 301 | -* J cannot be 9 |
|
| 302 | -* on the other side, K cannot be 0, 1, or 2 |
|
| 303 | -* J cannot be 0 or 1 |
|
| 304 | -* L cannot be 0. |
|
| 305 | - |
|
| 306 | -So, if we update our range chart accordingly: |
|
| 307 | - |
|
| 308 | -``` |
|
| 309 | -B = { 0, 1, 2, 3, 4, 5, 6, 7, 8 } |
|
| 310 | -G = { 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 311 | -J = { 2, 3, 4, 5, 6, 7, 8, } |
|
| 312 | -K = { 3, 4, 5, 6, 7, 8, 9 } |
|
| 313 | -L = { 1, 2, 3, 4, 5, 6, 7, } |
|
| 314 | -M = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 315 | -O = { 0, 1, 2, 3, 4, 5, 6, } |
|
| 316 | -P = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 317 | -R = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 318 | -V = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 319 | -``` |
|
| 320 | - |
|
| 321 | -Moving on, dealing with details of discovering those one-off relations, |
|
| 322 | -that tells us something about the NEXT subtractions: that they borrow |
|
| 323 | -(which means they are LESS THAN the thing being subtracted from them): |
|
| 324 | - |
|
| 325 | -* L is less than K (which we actually know to be 2 less than K), so L - K needs to BORROW |
|
| 326 | -* J is less than K (which we know is 1 less than K), so J - K needs to BORROW |
|
| 327 | -* V is apparently also less than K (which we didn't previously know), so V - K needs to BORROW |
|
| 328 | -* now knowing than V << K, we can connect our other relational fragment in (I use the double '<<' to denote "less than" by an unknown amount, because while we know V is less than K, we don't know by how much). |
|
| 329 | - |
|
| 330 | -So: V < G << O < L < J < K |
|
| 331 | - |
|
| 332 | -This allows us some further whittling of our ranges: |
|
| 333 | - |
|
| 334 | -* V cannot be 9, 8, 7, 6, or 5 |
|
| 335 | -* G cannot be 9, 8, 7, or 6 |
|
| 336 | -* O cannot be 0, or 1 |
|
| 337 | -* L cannot be 0, 1, or 2 |
|
| 338 | -* J cannot be 0, 1, 2, or 3 |
|
| 339 | -* K cannot be 0, 1, 2, 3, or 4 |
|
| 340 | - |
|
| 341 | -``` |
|
| 342 | -B = { 0, 1, 2, 3, 4, 5, 6, 7, 8 } |
|
| 343 | -G = { 1, 2, 3, 4, 5, } |
|
| 344 | -J = { 4, 5, 6, 7, 8, } |
|
| 345 | -K = { 5, 6, 7, 8, 9 } |
|
| 346 | -L = { 3, 4, 5, 6, 7, } |
|
| 347 | -M = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 348 | -O = { 2, 3, 4, 5, 6, } |
|
| 349 | -P = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 350 | -R = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } |
|
| 351 | -V = { 0, 1, 2, 3, 4, } |
|
| 352 | -``` |
|
| 353 | - |
|
| 354 | -Already we can see that V and G are likely lower numbers, and O, L, J, |
|
| 355 | -and K are likely higher numbers. |
|
| 356 | - |
|
| 357 | -What else do we have? Let's keep going: |
|
| 358 | - |
|
| 359 | -We cannot instantly proceed to the next subtraction in as obvious a |
|
| 360 | -progression, as we'll need more information on the various letters |
|
| 361 | -involved. |
|
| 362 | - |
|
| 363 | -### Finding K (and J and L and O as well) |
|
| 364 | - |
|
| 365 | -However, looking at the puzzle, I'm interested in seeing if we can find |
|
| 366 | -any obvious examples of 0. You know, letter minus same letter sort of |
|
| 367 | -things. Because they will typically end up equalling 0 (or 9). |
|
| 368 | - |
|
| 369 | -Why 9? Because of a borrow! |
|
| 370 | - |
|
| 371 | -``` |
|
| 372 | -((5-1)+10)-5 = (4+10)-5 = 14 - 5 = 9 |
|
| 373 | -``` |
|
| 374 | - |
|
| 375 | -... that can be quite revealing too! |
|
| 376 | - |
|
| 377 | -And it would appear we have one wonderful candidate in the bottom-most |
|
| 378 | -subtraction: |
|
| 379 | - |
|
| 380 | -``` |
|
| 381 | - KVRMR |
|
| 382 | - -JKRKB |
|
| 383 | - ===== |
|
| 384 | - VKMK |
|
| 385 | -``` |
|
| 386 | - |
|
| 387 | -Lookie there: R-R = K. |
|
| 388 | - |
|
| 389 | -Usually, that would result in a 0. BUT, we also know that K can NOT be 0 |
|
| 390 | -(looking at our range table above). |
|
| 391 | - |
|
| 392 | -So, that means it is being borrowed from, and it itself has to borrow, so |
|
| 393 | -we now also know that M is less than K: M << K |
|
| 394 | - |
|
| 395 | -And, as indicated above: |
|
| 396 | - |
|
| 397 | -``` |
|
| 398 | -((R-1)+10)-R = 9! |
|
| 399 | -``` |
|
| 400 | - |
|
| 401 | -We now know that K = 9! |
|
| 402 | - |
|
| 403 | -That suddenly reveals a whole lot to us, due to our relational chains |
|
| 404 | -we've built. Let's update: |
|
| 405 | - |
|
| 406 | -``` |
|
| 407 | -| 0 | | |
|
| 408 | -| 1 | | |
|
| 409 | -| 2 | | |
|
| 410 | -| 3 | | |
|
| 411 | -| 4 | | |
|
| 412 | -| 5 | | |
|
| 413 | -| 6 | O | |
|
| 414 | -| 7 | L | |
|
| 415 | -| 8 | J | |
|
| 416 | -| 9 | K | |
|
| 417 | -``` |
|
| 418 | - |
|
| 419 | -Also, with the new introduction of M being less than K: |
|
| 420 | - |
|
| 421 | -``` |
|
| 422 | -B = { 0, 1, 2, 3, 4, 5, } |
|
| 423 | -G = { 1, 2, 3, 4, 5, } |
|
| 424 | -J = { 8 } |
|
| 425 | -K = { 9 } |
|
| 426 | -L = { 7 } |
|
| 427 | -M = { 0, 1, 2, 3, 4, 5, } |
|
| 428 | -O = { 6 } |
|
| 429 | -P = { 0, 1, 2, 3, 4, 5, } |
|
| 430 | -R = { 0, 1, 2, 3, 4, 5, } |
|
| 431 | -V = { 0, 1, 2, 3, 4, } |
|
| 432 | -``` |
|
| 433 | - |
|
| 434 | -And, our relational chains: |
|
| 435 | - |
|
| 436 | -* V < G << O < L < J < K |
|
| 437 | -* M << O < L < J < K |
|
| 438 | - |
|
| 439 | -Because we don't yet know any relation of M compared to V or G, we have |
|
| 440 | -to keep them separate for now. |
|
| 441 | - |
|
| 442 | -We also have a second disqualifier for K being 0... the ones place |
|
| 443 | -subtraction in that bottom-most subtraction: |
|
| 444 | - |
|
| 445 | -``` |
|
| 446 | -R - B = K |
|
| 447 | -``` |
|
| 448 | - |
|
| 449 | -There's nothing further to the right that could borrow from this problem, |
|
| 450 | -so it can only exist in two states: |
|
| 451 | - |
|
| 452 | -* R is greater than B |
|
| 453 | -* R is less than B |
|
| 454 | - |
|
| 455 | -Since we know that K is 9, there's NO OTHER pair of single digit numbers |
|
| 456 | -we can subtract to get 9, which tells us that: |
|
| 457 | - |
|
| 458 | -* R is less than B (R << B) |
|
| 459 | - |
|
| 460 | -Currently both R and B can be 0-5 (although now, B is 1-5, and R is 0-4). |
|
| 461 | -We'd need to find a combination where (R+10)-B is 9: |
|
| 462 | - |
|
| 463 | -``` |
|
| 464 | -| R: 0 | R: 1 | R: 2 | R: 3 | R: 4 | |
|
| 465 | -| (0+10) | (1+10) | (2+10) | (3+10) | (4+10) | |
|
| 466 | -| 10 | 11 | 12 | 13 | 14 | |
|
| 467 | -``` |
|
| 468 | - |
|
| 469 | -And from that, we're subtracting B, which is 1, 2, 3, 4, or 5. The answer |
|
| 470 | -has to be 9. |
|
| 471 | - |
|
| 472 | -So: |
|
| 473 | - |
|
| 474 | -10-1=9, 11-2=9, 12-3=9, 13-4=9, and 14-5=9 |
|
| 475 | - |
|
| 476 | -Hey, look at that... B is one greater than R (not just R << B, BUT: R < |
|
| 477 | -B) |
|
| 478 | - |
|
| 479 | -Our relational chains: |
|
| 480 | - |
|
| 481 | -* V < G << O < L < J < K |
|
| 482 | -* M << O < L < J < K |
|
| 483 | -* R < B << O < L < J < K |
|
| 484 | - |
|
| 485 | -And our range table: |
|
| 486 | - |
|
| 487 | -``` |
|
| 488 | -B = { 1, 2, 3, 4, 5, } |
|
| 489 | -G = { 1, 2, 3, 4, 5, } |
|
| 490 | -J = { 8 } |
|
| 491 | -K = { 9 } |
|
| 492 | -L = { 7 } |
|
| 493 | -M = { 0, 1, 2, 3, 4, 5, } |
|
| 494 | -O = { 6 } |
|
| 495 | -P = { 0, 1, 2, 3, 4, 5, } |
|
| 496 | -R = { 0, 1, 2, 3, 4, } |
|
| 497 | -V = { 0, 1, 2, 3, 4, } |
|
| 498 | -``` |
|
| 499 | - |
|
| 500 | -If you look, the only letter we've not yet directly interacted with yet |
|
| 501 | -is 'P', although we already know enough about it (that it is 0-5, less |
|
| 502 | -than O, L, J, and K). And if you look closely, you'll notice that 'P' |
|
| 503 | -isn't even present in the letter division problem! So its identity will |
|
| 504 | -rely entirely on the proving of the other values. |
|
| 505 | - |
|
| 506 | -Let's continue on: |
|
| 507 | - |
|
| 508 | -M-K=M, BECAUSE we know M << K, AND BECAUSE we know the subtraction to the |
|
| 509 | -right is borrowing from it (because R < B), we have something like this: |
|
| 510 | -(M-1+10)-K=M |
|
| 511 | - |
|
| 512 | -Can't really do much more with it at this point, but it is important to |
|
| 513 | -know to help us identify the borrows needing to happen. |
|
| 514 | - |
|
| 515 | -### Finding our zero value (R and B) |
|
| 516 | - |
|
| 517 | -Why don't we go ahead and find 0? If you look in the subtraction above |
|
| 518 | -the bottom one, we have another "letter minus same letter" scenario, and |
|
| 519 | -it doesn't equal K! |
|
| 520 | - |
|
| 521 | -``` |
|
| 522 | - JJGKL |
|
| 523 | - -LKBKV |
|
| 524 | - ===== |
|
| 525 | - KVRM |
|
| 526 | -``` |
|
| 527 | - |
|
| 528 | -We KNOW that V << L, so no borrow is happening there. |
|
| 529 | - |
|
| 530 | -Therefore, K-K, or 9-9, equals 0. So R is 0! |
|
| 531 | - |
|
| 532 | -... and B is 1! Because of our identified relationship. |
|
| 533 | - |
|
| 534 | -Updating things! |
|
| 535 | - |
|
| 536 | -``` |
|
| 537 | -| 0 | R | |
|
| 538 | -| 1 | B | |
|
| 539 | -| 2 | | |
|
| 540 | -| 3 | | |
|
| 541 | -| 4 | | |
|
| 542 | -| 5 | | |
|
| 543 | -| 6 | O | |
|
| 544 | -| 7 | L | |
|
| 545 | -| 8 | J | |
|
| 546 | -| 9 | K | |
|
| 547 | -``` |
|
| 548 | - |
|
| 549 | -Also, with the new introduction of M being less than K: |
|
| 550 | - |
|
| 551 | -``` |
|
| 552 | -B = { 1 } |
|
| 553 | -G = { 3, 4, 5, } |
|
| 554 | -J = { 8 } |
|
| 555 | -K = { 9 } |
|
| 556 | -L = { 7 } |
|
| 557 | -M = { 2, 3, 4, 5, } |
|
| 558 | -O = { 6 } |
|
| 559 | -P = { 2, 3, 4, 5, } |
|
| 560 | -R = { 0 } |
|
| 561 | -V = { 2, 3, 4, } |
|
| 562 | -``` |
|
| 563 | - |
|
| 564 | -NOTE: G is NOT 2, because G is greater than V (one greater, in fact), so |
|
| 565 | -we can similarly whittle that off. |
|
| 566 | - |
|
| 567 | -Relational chains can look as follows now: |
|
| 568 | - |
|
| 569 | -* R < B << V < G << O < L < J < K |
|
| 570 | -* R < B << M << O < L < J < K |
|
| 571 | -* R < B << P << O < L < J < K |
|
| 572 | - |
|
| 573 | -Basically just down to V, G, P, and M. |
|
| 574 | - |
|
| 575 | -### Finding V and G |
|
| 576 | - |
|
| 577 | -And I think we have the means to find V: notice the second to last |
|
| 578 | -subtraction, the "LKBKV". You know where we get that from? Multiplying |
|
| 579 | -the divisor (KJKK) by J (since it is the third subtraction taking place). |
|
| 580 | - |
|
| 581 | -We KNOW the numeric values of K and J, in fact we know the values of L, |
|
| 582 | -K, and B. The only thing we don't know is 'V', and since V is in the |
|
| 583 | -one's place, that makes things super easy for us. |
|
| 584 | - |
|
| 585 | -KJKK = 9899 |
|
| 586 | -J = 8 |
|
| 587 | - |
|
| 588 | -So: 9899 x 8 = 79192 = LKBKV! |
|
| 589 | - |
|
| 590 | -V is 2! |
|
| 591 | - |
|
| 592 | -Which means, because V < G, that G is 3! |
|
| 593 | - |
|
| 594 | -Updating our records: |
|
| 595 | - |
|
| 596 | -``` |
|
| 597 | -| 0 | R | |
|
| 598 | -| 1 | B | |
|
| 599 | -| 2 | V | |
|
| 600 | -| 3 | G | |
|
| 601 | -| 4 | | |
|
| 602 | -| 5 | | |
|
| 603 | -| 6 | O | |
|
| 604 | -| 7 | L | |
|
| 605 | -| 8 | J | |
|
| 606 | -| 9 | K | |
|
| 607 | -``` |
|
| 608 | - |
|
| 609 | -Also, with the new introduction of M being less than K: |
|
| 610 | - |
|
| 611 | -``` |
|
| 612 | -B = { 1 } |
|
| 613 | -G = { 3 } |
|
| 614 | -J = { 8 } |
|
| 615 | -K = { 9 } |
|
| 616 | -L = { 7 } |
|
| 617 | -M = { 4, 5, } |
|
| 618 | -O = { 6 } |
|
| 619 | -P = { 4, 5, } |
|
| 620 | -R = { 0 } |
|
| 621 | -V = { 2 } |
|
| 622 | -``` |
|
| 623 | - |
|
| 624 | -Relational chains can look as follows now: |
|
| 625 | - |
|
| 626 | -* R < B < V < G << M << O < L < J < K |
|
| 627 | -* R < B < V < G << P << O < L < J < K |
|
| 628 | - |
|
| 629 | -### Finding M and discovering P |
|
| 630 | - |
|
| 631 | -And then there were 2. We really just need to find M, or P, and we're |
|
| 632 | -done. And since there are no 'P' values in the puzzle, we need to target |
|
| 633 | -M. So let's look for some candidates: |
|
| 634 | - |
|
| 635 | -Hey, how about this: |
|
| 636 | - |
|
| 637 | -``` |
|
| 638 | - JJGKL |
|
| 639 | - -LKBKV |
|
| 640 | - ===== |
|
| 641 | - KVRM |
|
| 642 | -``` |
|
| 643 | - |
|
| 644 | -One's place subtraction: L - V = M. |
|
| 645 | - |
|
| 646 | -We KNOW L (7) is greater than V (2), so no borrow is happening. |
|
| 647 | - |
|
| 648 | -L-V=M |
|
| 649 | -7-2=5 |
|
| 650 | - |
|
| 651 | -M is 5. That means P is 4 by process of elimination. |
|
| 652 | - |
|
| 653 | -Puzzle completed: |
|
| 654 | - |
|
| 655 | -``` |
|
| 656 | -| 0 | R | |
|
| 657 | -| 1 | B | |
|
| 658 | -| 2 | V | |
|
| 659 | -| 3 | G | |
|
| 660 | -| 4 | P | |
|
| 661 | -| 5 | M | |
|
| 662 | -| 6 | O | |
|
| 663 | -| 7 | L | |
|
| 664 | -| 8 | J | |
|
| 665 | -| 9 | K | |
|
| 666 | -``` |
|
| 667 | - |
|
| 668 | -Also, with the new introduction of M being less than K: |
|
| 669 | - |
|
| 670 | -``` |
|
| 671 | -B = { 1 } |
|
| 672 | -G = { 3 } |
|
| 673 | -J = { 8 } |
|
| 674 | -K = { 9 } |
|
| 675 | -L = { 7 } |
|
| 676 | -M = { 5 } |
|
| 677 | -O = { 6 } |
|
| 678 | -P = { 4 } |
|
| 679 | -R = { 0 } |
|
| 680 | -V = { 2 } |
|
| 681 | -``` |
|
| 682 | - |
|
| 683 | -Relational chains can look as follows now: |
|
| 684 | - |
|
| 685 | -* R < B < V < G < P < M < O < L < J < K |
|
| 686 | - |
|
| 687 | -I wasn't able to show it as well in text on the wiki, but I also made a |
|
| 688 | -point to mark up each subtraction to show whether a borrow occurred or |
|
| 689 | -not: |
|
| 690 | - |
|
| 691 | -{{ :undefined:borrows.jpg?400 |}} |
|
| 692 | - |
|
| 693 | -To be sure, there are likely MANY, MANY ways to arrive at these |
|
| 694 | -conclusions. What is important is being observant, performing little |
|
| 695 | -experiments, seeing if there can be any insights to have, even if |
|
| 696 | -whittling away knowing what things can NOT be. |
|
| 697 | - |
|
| 698 | -Your performance on this project will be directly tied to being able to |
|
| 699 | -document your process through the puzzle; I have provided this writeup in |
|
| 700 | -order to show you an example of what that process may look like. |
|
| 701 | - |
|
| 702 | -=====Getting started===== |
|
| 703 | -In the **pctX/** sub-directory of your class Public Directory, under a directory by the name of your username, you will find the following file(s): |
|
| 704 | - |
|
| 705 | - * **puzzle** |
|
| 706 | - * possibly also a file called **table** |
|
| 707 | - * if desired, you can use **worksheet** as a base for your solution file, or for generating text-based representations for using on discord when asking for help. |
|
| 708 | - |
|
| 709 | -Copy this file into your local project directory. For some classes, a **grabit** is available. For others, you'll have to manually copy the file on your own. |
|
| 710 | - |
|
| 711 | -There is also a **MANIFEST** file in the parent directory (the **pctX/** sub-directory), which will contain MD5sums of the various puzzle keys, provided to help you in verifying your puzzle key. |
|
| 712 | - |
|
| 713 | -For this project, you have to solve, DOCUMENT, AND VERIFY the provided puzzle in order to be eligible for full credit will be the one contained in the **puzzle** file. |
|
| 714 | - |
|
| 715 | -To obtain your puzzle, you can utilize the 'grabit' tool on lab46. |
|
| 716 | - |
|
| 717 | -Here's another take on how to get started: |
|
| 718 | - |
|
| 719 | - * [[/haas/fall2025/common/helpances/startingpctx|a helpance on starting pctX]] |
|
| 720 | - |
|
| 721 | -=====Process===== |
|
| 722 | -Solve, document, and verify the puzzle. |
|
| 723 | - |
|
| 724 | -On your own. |
|
| 725 | - |
|
| 726 | -Seek to discover and explore and understand, NOT to just come up with an answer. |
|
| 727 | - |
|
| 728 | -It is recommended you do this by hand, ON PAPER. Furthermore, using graph paper may help in greatly reducing mistakes, as is using two different coloured writing implements (green, purple; or blue, black)... write up the puzzle in one colour, then use the other to mark up borrows and the like. |
|
| 729 | - |
|
| 730 | -=====A Note on Number Bases===== |
|
| 731 | -Some of the puzzles you may be presented with may be in different number bases. |
|
| 732 | - |
|
| 733 | -You are likely acclimated to the **base 10** number system, where we have ten unique counting digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) |
|
| 734 | - |
|
| 735 | -Different number bases simply have less or more digits. |
|
| 736 | - |
|
| 737 | -For example, base 8 and 9 both have fewer than ten counting values: |
|
| 738 | - |
|
| 739 | -^ base ^ numbers | |
|
| 740 | -| 8 | 0, 1, 2, 3, 4, 5, 6, 7 | |
|
| 741 | -| 9 | 0, 1, 2, 3, 4, 5, 6, 7, 8 | |
|
| 742 | - |
|
| 743 | -And then we have bases with MORE counting values than in base 10: |
|
| 744 | - |
|
| 745 | -^ base ^ numbers | |
|
| 746 | -| 11 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A | |
|
| 747 | -| 12 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B | |
|
| 748 | - |
|
| 749 | -Notice the presence of 'A' and 'B'... these are not variables or algebraic values. These are bonafide **NUMBERS**, just like 1, 2, 3. |
|
| 750 | - |
|
| 751 | -Differences manifest once you exceed the maximum counting value for the base: |
|
| 752 | - |
|
| 753 | - * base 8: 7 + 1 = 10 (pronounced "one-zero", the quantity we know of in base 10 as "eight") |
|
| 754 | - * base 9: 8 + 1 = 10 (pronounced "one-zero", the quantity we know of in base 10 as "nine") |
|
| 755 | - * base 10: 9 + 1 = 10 (pronounced "one-zero", the quantity we know of in base 10 as "ten") |
|
| 756 | - * base 11: A + 1 = 10 (pronounced "one-zero", the quantity we know of in base 10 as "eleven") |
|
| 757 | - * base 12: B + 1 = 10 (pronounced "one-zero", the quantity we know of in base 10 as "twelve") |
|
| 758 | - |
|
| 759 | -You likely have extensively memorized a table of single-digit base 10 values, which at first glance makes this other base stuff unfamiliar. But it works according to the same properties as base 10 (just, different symbols representing the quantities involved). |
|
| 760 | - |
|
| 761 | -For any strategies involving the "9" value (in base 10), you will find that the same strategy works in other bases (so it isn't so much a "9 trick" as it is a "highest counting digit trick"). |
|
| 762 | - |
|
| 763 | -Similarly, any of the relational or logical tricks will "just work", it is only the appearance of mathematical end results that really differs. So, if you are adept at the logical/relational methods for investigating a puzzle, you could perhaps minimize the amount of base-related math you may have to do (certainly on lower difficulty levels of puzzle). |
|
| 764 | - |
|
| 765 | -=====Your Submission===== |
|
| 766 | -As this project focuses more on the critical thinking process than being specifically about coming up with an answer, your submission will be in multiple parts. |
|
| 767 | - |
|
| 768 | -====Regular/normal letter division==== |
|
| 769 | -If your puzzle was provided with a quotient and remainder (and contains no question marks in the puzzle proper), you have a regular puzzle. |
|
| 770 | - |
|
| 771 | -The files you will want to submit include: |
|
| 772 | - |
|
| 773 | - * your puzzle key, in a textfile called 'pctX.puzzle.key' containing ONLY the capital letters corresponding in order to the 0-9 values (and a trailing newline). |
|
| 774 | - * your documentation of your solving and exploration of the puzzle. If you did this on paper, will need to transcribe it out into clearly readable, organized, and followable text directions. The file, in text form, should be called 'pctX.puzzle.solution'. Images of your notes will NOT be accepted for submission. |
|
| 775 | - * your verification in a file called 'pctX.puzzle.verify': this is after you've completed the puzzle, and you are resolving parts of the puzzle to ensure that the letter to number mappings are valid. |
|
| 776 | - |
|
| 777 | -Your solution MUST be of a form so that, if given to another person, they can follow your steps and have an understanding of the decisions made. |
|
| 778 | - |
|
| 779 | -===="Solve for" Quotient/Remainder letter division==== |
|
| 780 | - |
|
| 781 | - * your puzzle key, in a textfile called 'pctX.puzzle.key' containing ONLY the capital letters corresponding in order to the 0-9 values (and a trailing newline). |
|
| 782 | - * your documentation of your solving and exploration of the puzzle. If you did this on paper, will need to transcribe it out into clearly readable, organized, and followable text directions. The file, in text form, should be called 'pctX.puzzle.solution'. Images of your notes will NOT be accepted for submission. |
|
| 783 | - * your quotient:remainder (in letterized/obfuscated form), in a text file called 'pctX.puzzle.verify' |
|
| 784 | - |
|
| 785 | -Your solution MUST be of a form so that, if given to another person, they can follow your steps and have an understanding of the decisions made to get them from start to solution. |
|
| 786 | - |
|
| 787 | -====puzzle key==== |
|
| 788 | -As indicated, you are to place the determined key to your puzzle in a regular text file called 'pctX.puzzle.key', and will contain ONLY the capital letters, in order from 0 to the highest counting symbol of the base, of your puzzle (and a trailing newline). |
|
| 789 | - |
|
| 790 | -For example, using the example puzzle above: |
|
| 791 | - |
|
| 792 | -| 0 | R | |
|
| 793 | -| 1 | B | |
|
| 794 | -| 2 | V | |
|
| 795 | -| 3 | G | |
|
| 796 | -| 4 | P | |
|
| 797 | -| 5 | M | |
|
| 798 | -| 6 | O | |
|
| 799 | -| 7 | L | |
|
| 800 | -| 8 | J | |
|
| 801 | -| 9 | K | |
|
| 802 | - |
|
| 803 | -We'll want to put them, in order, in our key file: |
|
| 804 | - |
|
| 805 | -<cli> |
|
| 806 | -$ echo "RBVGPMOLJK" > pctX.puzzle.key |
|
| 807 | -</cli> |
|
| 808 | - |
|
| 809 | -Want to know what a proper 'key' file should look like? This: |
|
| 810 | - |
|
| 811 | -<cli> |
|
| 812 | -$ cat pctX.puzzle.key |
|
| 813 | -RBVGPMOLJK |
|
| 814 | -</cli> |
|
| 815 | - |
|
| 816 | -JUST the letters (and a trailing newline). |
|
| 817 | - |
|
| 818 | -====solution documentation==== |
|
| 819 | -As stated, a very large part of this project's evaluation will be based on your clear and detailed documentation of how you determined each letter's mapping in the solution key of your puzzle. |
|
| 820 | - |
|
| 821 | -Just providing the 'key' will not result in success. |
|
| 822 | - |
|
| 823 | -Your documentation should, while there may be supporting information, provide some identified path that showed the steps you went through to identify each letter, be it directly or indirectly. |
|
| 824 | - |
|
| 825 | -You are free to write out your solution with pen on paper (that is how I usually do these puzzles); but to submit, you MUST transcribe it to text and submit it in that format. Images will NOT be accepted. Do not look on this as a reason to avoid doing it by hand: the manual work of the process is inherently beneficial, you simply need to commit to doing it. |
|
| 826 | - |
|
| 827 | -The aim here is not to dump a bunch of data on me, but instead present me with connected and pertinent information that documents your process of progression through the puzzle from start to finish. This is in the same vein as programming in a language on a computer. A computer program is a detailed description of a process to solving some problem in a format the receiver can understand. |
|
| 828 | - |
|
| 829 | -====verification==== |
|
| 830 | -Depending on the type of puzzle you have (regular or "solve for" variety), the contents of your verification file will differ. |
|
| 831 | - |
|
| 832 | -What is the difference between a regular puzzle and a solve4 puzzle? Basically: |
|
| 833 | - |
|
| 834 | - * a regular puzzle comes with quotient and remainder included in your puzzle |
|
| 835 | - * a solve4 puzzle omits the quotient and remainder, and instead replaces them with a series of question marks, indicating that as part of your task in solving the puzzle, you must also figure out the quotient and remainder (this is why the verify for solve4 puzzles is shorter and simpler: you've already done so much of the verification work in solving it). |
|
| 836 | - |
|
| 837 | -===Regular puzzle=== |
|
| 838 | -In this form, your 'pctX.puzzle.verify' file will be similar format to your writeup (a description of what aspects of the puzzle you are testing to ensure things work out). |
|
| 839 | - |
|
| 840 | -You are to manually verify your solution by taking the numeric identities of each letter, plugging them back into the original puzzle, solving it, and converting the obtained quotient and remainder back into letter form to compare with those in the puzzle provided to you. If they match, you have successfully solved the puzzle. If they do not match, some error exists that should be addressed and corrected. |
|
| 841 | - |
|
| 842 | -An example of a verification text can be found below. |
|
| 843 | - |
|
| 844 | -==Regular Puzzle Verification Example== |
|
| 845 | -The best way to verify the puzzle with our key is to convert the dividend and divisor to its numeric equivalent, perform the division, and compare the resulting quotient and remainder against those found in the letterified puzzle: |
|
| 846 | - |
|
| 847 | - * divisor: KJKK --> 9899 |
|
| 848 | - * dividend: GLMBRVLR --> 37510270 |
|
| 849 | - |
|
| 850 | -And let's do some long division! |
|
| 851 | - |
|
| 852 | -<code> |
|
| 853 | - +--------- |
|
| 854 | - 9899 | 37510270 |
|
| 855 | -</code> |
|
| 856 | - |
|
| 857 | -9899 goes into 37510 three times: |
|
| 858 | - |
|
| 859 | -<code> |
|
| 860 | - 3 |
|
| 861 | - +--------- |
|
| 862 | - 9899 | 37510270 |
|
| 863 | - -29697 |
|
| 864 | - ===== |
|
| 865 | - 78132 |
|
| 866 | -</code> |
|
| 867 | - |
|
| 868 | -It might be convenient to have a quick factor reference for 9899 handy: |
|
| 869 | - |
|
| 870 | - * 9899 * 0 = 0 |
|
| 871 | - * 9899 * 1 = 9899 |
|
| 872 | - * 9899 * 2 = 19798 |
|
| 873 | - * 9899 * 3 = 29697 |
|
| 874 | - * 9899 * 4 = 39596 |
|
| 875 | - * 9899 * 5 = 49495 |
|
| 876 | - * 9899 * 6 = 59394 |
|
| 877 | - * 9899 * 7 = 69293 |
|
| 878 | - * 9899 * 8 = 79192 |
|
| 879 | - * 9899 * 9 = 89091 |
|
| 880 | - |
|
| 881 | -9899 fits into 78132 seven times (69293): |
|
| 882 | - |
|
| 883 | -<code> |
|
| 884 | - 37 |
|
| 885 | - +--------- |
|
| 886 | - 9899 | 37510270 |
|
| 887 | - -29697 |
|
| 888 | - ===== |
|
| 889 | - 78132 |
|
| 890 | - -69293 |
|
| 891 | - ===== |
|
| 892 | - 88397 |
|
| 893 | -</code> |
|
| 894 | - |
|
| 895 | -Once again, looking at the list of factors, we see that the best fit for 9899 into 88397 is 79192 (a factor of 8): |
|
| 896 | - |
|
| 897 | -<code> |
|
| 898 | - 378 |
|
| 899 | - +--------- |
|
| 900 | - 9899 | 37510270 |
|
| 901 | - -29697 |
|
| 902 | - ===== |
|
| 903 | - 78132 |
|
| 904 | - -69293 |
|
| 905 | - ===== |
|
| 906 | - 88397 |
|
| 907 | - -79192 |
|
| 908 | - ===== |
|
| 909 | - 92050 |
|
| 910 | -</code> |
|
| 911 | - |
|
| 912 | -Finally, a factor of 9 (89091) fits in best: |
|
| 913 | - |
|
| 914 | -<code> |
|
| 915 | - 3789 <-- quotient |
|
| 916 | - +--------- |
|
| 917 | - 9899 | 37510270 |
|
| 918 | - -29697 |
|
| 919 | - ===== |
|
| 920 | - 78132 |
|
| 921 | - -69293 |
|
| 922 | - ===== |
|
| 923 | - 88397 |
|
| 924 | - -79192 |
|
| 925 | - ===== |
|
| 926 | - 92050 |
|
| 927 | - -89091 |
|
| 928 | - ===== |
|
| 929 | - 2959 <-- remainder |
|
| 930 | -</code> |
|
| 931 | - |
|
| 932 | -Converting our quotient and remainder back to letters: |
|
| 933 | - |
|
| 934 | - * quotient: 3789 --> GLJK |
|
| 935 | - * remainder: 2959 --> VKMK |
|
| 936 | - |
|
| 937 | -And comparing against the problem we were given: |
|
| 938 | - |
|
| 939 | - * quotient: GLJK <-> GLJK |
|
| 940 | - * remainder: VKMK <-> VKMK |
|
| 941 | - |
|
| 942 | -Success! |
|
| 943 | - |
|
| 944 | -==="Solve for"/SOLVE4 puzzle=== |
|
| 945 | -The verification for these puzzles becomes a bit easier, as you are merely providing the quotient and remainder. |
|
| 946 | - |
|
| 947 | -Let's say the quotient was "BTXMK" and the remainder was "YYGMX" |
|
| 948 | - |
|
| 949 | -You'd prepare your 'pctX.puzzle.verify' file as follows: |
|
| 950 | - |
|
| 951 | -<cli> |
|
| 952 | -$ echo "BTXMK:YYGMX" > pctX.puzzle.verify |
|
| 953 | -</cli> |
|
| 954 | - |
|
| 955 | -Basically: quotient followed by remainder, separated by a colon, all on the same line. |
|
| 956 | - |
|
| 957 | -NOTE: Do not include any leading zeroes. |
|
| 958 | - |
|
| 959 | -=====Walkthrough Videos===== |
|
| 960 | -To further aid your letter division efforts, I have recorded some videos showing my walkthrough of various letter division puzzles: |
|
| 961 | - |
|
| 962 | - * another take on the puzzle presented on this page: https://youtu.be/8oCoGGspf70 |
|
| 963 | - * a base 8 letter division puzzle: https://www.youtube.com/watch?v=2Zoa6iymxpw |
|
| 964 | - * a base 9 letter division puzzle: https://www.youtube.com/watch?v=zil4YjgC6bw |
|
| 965 | - * a base 10 letter division puzzle: https://www.youtube.com/watch?v=b6wv9zXlbJE |
|
| 966 | - * a base 11 letter division puzzle: https://youtu.be/OHrLOVihi_4 |
|
| 967 | - |
|
| 968 | -NOTE: these videos cover just the "regular" letter division puzzles. |
|
| 969 | - |
|
| 970 | -=====Strategies===== |
|
| 971 | - |
|
| 972 | -====Left-Edge==== |
|
| 973 | -An advantage of the left-most values, is the top value is greater than those beneath it (it doesn't need to borrow; indeed it CANNOT borrow, without breaking math). Might be taken from, however... |
|
| 974 | - |
|
| 975 | -This can also help establish the state of borrows elsewhere in the puzzle, should a similar subtraction (same top-value) be present in more than one place. |
|
| 976 | - |
|
| 977 | -For example: |
|
| 978 | - |
|
| 979 | -<code> |
|
| 980 | - WXXY |
|
| 981 | - -PQRT |
|
| 982 | - ==== |
|
| 983 | - GCBA |
|
| 984 | -</code> |
|
| 985 | - |
|
| 986 | - * W-P=G |
|
| 987 | - * P << W (P is somewhat less than W) |
|
| 988 | - * G << W (G is somewhat less than W) |
|
| 989 | - * NOTE: from this example alone, we do NOT know P's relationship to G. |
|
| 990 | - |
|
| 991 | -====Determine Borrows/Takes==== |
|
| 992 | -Like the range table and your chains of assertions gradually assembled during puzzle solving, another activity you should undertake is the determination of all the borrows/takes in the puzzle. |
|
| 993 | - |
|
| 994 | -And not just IF there is a borrow/take, but also if there isn't one. |
|
| 995 | - |
|
| 996 | -Many may remember the idea of borrows from math class, and are confused at what a "take" is: this is just our attempt to connect one subtraction into the tapestry of the overall problem. |
|
| 997 | - |
|
| 998 | -Take the following numeric example: |
|
| 999 | - |
|
| 1000 | -<code> |
|
| 1001 | - 545 |
|
| 1002 | --347 |
|
| 1003 | - === |
|
| 1004 | - 198 |
|
| 1005 | -</code> |
|
| 1006 | - |
|
| 1007 | -Notice how, looking at the 5-7=8 subtraction (on the far right), we can see that the 5 is somewhat less than 7 (and the 8), so that 5 would have to borrow. |
|
| 1008 | - |
|
| 1009 | -Being all the way on the right, nothing is able to take from it, so that 5 is borrowing, but not being taken from. |
|
| 1010 | - |
|
| 1011 | -Onto the 4-4=9… because the 5 to its right is needing to borrow… what is it borrowing from? The 4. So our 4 is being "taken from". |
|
| 1012 | - |
|
| 1013 | - * 4-1=3 |
|
| 1014 | - |
|
| 1015 | -3 is less than 4 (And 9), so THAT now has to borrow. |
|
| 1016 | - |
|
| 1017 | -So the 4 is being taken from, and as a result, needs to borrow. |
|
| 1018 | - |
|
| 1019 | -Then proceeding left to the 5-3=1... being all the way on the left, it can’t borrow from anything, and the universe would explode mathematically if the leftmost, top value in a long division term were less than what was being subtracted from it. So, the 5 does not have to borrow. But we know from the 4-4=9 subtraction, that the 4 borrows, and it is borrowing from the 5 |
|
| 1020 | - |
|
| 1021 | -So: that left-most 5 is not borrowing, but it IS being taken from. |
|
| 1022 | - |
|
| 1023 | -The state of the borrows/takes greatly enhances our ability to scoop up additional clues we can turn into assertions. |
|
| 1024 | -====Top is Known greater than==== |
|
| 1025 | -When we know the top letter is greater than at least one of the other two numbers in the subtraction, turns out it is also greater than the other: |
|
| 1026 | - |
|
| 1027 | -<code> |
|
| 1028 | - 8 7 6 5 |
|
| 1029 | --5 -1 -4 -2 |
|
| 1030 | -== == == == |
|
| 1031 | - 3 6 2 3 |
|
| 1032 | -</code> |
|
| 1033 | - |
|
| 1034 | -This can also help establish the state of borrows elsewhere in the puzzle, should a similar subtraction (same top-value and other letter) be present in more than one place. |
|
| 1035 | - |
|
| 1036 | -When the top is known to be greater than the or a number beneath, it signifies that NO BORROW is happening. |
|
| 1037 | - |
|
| 1038 | -NOTE: this doesn't tell us anything about the TAKE situation. |
|
| 1039 | -====Top is Known less than==== |
|
| 1040 | -When we know the top letter is less than at least one of the other two numbers in the subtraction, turns out it is also less than the other: |
|
| 1041 | - |
|
| 1042 | -<code> |
|
| 1043 | -13 12 16 11 |
|
| 1044 | --5 -3 -7 -4 |
|
| 1045 | -== == == == |
|
| 1046 | - 8 9 9 7 |
|
| 1047 | -</code> |
|
| 1048 | - |
|
| 1049 | -This can also help establish the state of borrows elsewhere in the puzzle, should a similar subtraction (same top-value and other letter) be present in more than one place. |
|
| 1050 | - |
|
| 1051 | -When the top is known to be less than the or a number beneath, it signifies that a BORROW is happening. |
|
| 1052 | - |
|
| 1053 | -NOTE: this doesn't tell us anything about the TAKE situation. |
|
| 1054 | -====Right-Edge==== |
|
| 1055 | -We know from right-most values, that they are NOT being taken from. |
|
| 1056 | - |
|
| 1057 | -This can also help establish the state of takes elsewhere in the puzzle, should an identical subtraction be present in more than one place. |
|
| 1058 | - |
|
| 1059 | -====Look for Zero/Greatest digit Candidates==== |
|
| 1060 | -There are two common give-away cases for finding the two extreme digits (least/lowest/zero and greatest/highest) in a puzzle, regardless of base: |
|
| 1061 | - |
|
| 1062 | -<code> |
|
| 1063 | - X |
|
| 1064 | - -X |
|
| 1065 | - = |
|
| 1066 | - Y |
|
| 1067 | -</code> |
|
| 1068 | - |
|
| 1069 | -and: |
|
| 1070 | - |
|
| 1071 | -<code> |
|
| 1072 | - X |
|
| 1073 | - -Y |
|
| 1074 | - = |
|
| 1075 | - X |
|
| 1076 | -</code> |
|
| 1077 | - |
|
| 1078 | -We don't, simply from this display, know if it is 0 or if it is the greatest digit. Merely that it can only be 0 or the greatest digit. |
|
| 1079 | - |
|
| 1080 | -Determining the identity of the letter (Y in these examples) depends on the state of borrow/takings for the subtraction. |
|
| 1081 | - |
|
| 1082 | -There really are only TWO possibilities here: |
|
| 1083 | - |
|
| 1084 | - * no borrow AND no take (Y would be 0) |
|
| 1085 | - * borrow AND take (Y would be the greatest digit) |
|
| 1086 | - |
|
| 1087 | -The other two scenarios are mathematically impossible given this particular pattern (again, ONLY for 0, greatest digit scenario). |
|
| 1088 | - |
|
| 1089 | -====Process of elimination==== |
|
| 1090 | -A tactic that sees use in almost any puzzle is that of elimination: or using logic to negate possibilities. |
|
| 1091 | - |
|
| 1092 | -For example: |
|
| 1093 | - |
|
| 1094 | -<code> |
|
| 1095 | - ABCD |
|
| 1096 | --EFGH |
|
| 1097 | - ==== |
|
| 1098 | - JKLM |
|
| 1099 | -</code> |
|
| 1100 | - |
|
| 1101 | -Looking at that right-most subtraction (D-H=M), even if we know NOTHING about D, H, or M, we can, however, ascertain that: |
|
| 1102 | - |
|
| 1103 | - * H is NOT zero |
|
| 1104 | - * M is NOT zero |
|
| 1105 | - |
|
| 1106 | -Because none of the zero patterns are manifesting (if we had D-H=D, for instance, in that right-most position, we'd KNOW that H was zero), we can categorically eliminate zero as a possibility for the two lower letters in this subtraction (NOTE: D very well COULD BE zero, but we can't do anything about determining yet solely based on this observation). |
|
| 1107 | - |
|
| 1108 | -This strategy would work in other places, too, if sufficient borrows/takes were known. |
|
| 1109 | - |
|
| 1110 | -For example, in A-E=J, if we had established that A was NOT being taken from, we could apply this same elimination to E and J (not zero). |
|
| 1111 | - |
|
| 1112 | -Or B-F=K, or C-G=L, if we knew we weren't being taken from. But if we don't know the take situation, we cannot yet act on this. |
|
| 1113 | - |
|
| 1114 | -====Doubling==== |
|
| 1115 | -Sometimes we will be treated to things like: |
|
| 1116 | - |
|
| 1117 | -<code> |
|
| 1118 | - T |
|
| 1119 | - -P |
|
| 1120 | - = |
|
| 1121 | - P |
|
| 1122 | -</code> |
|
| 1123 | - |
|
| 1124 | -Which implies T is double the value of P. |
|
| 1125 | - |
|
| 1126 | -This isn't the whole story, as we REALLY need to know the borrow/take situation to do anything with this information. |
|
| 1127 | - |
|
| 1128 | -For example, if T is being TAKEN FROM, we know that T is odd. Likewise, if it is NOT being taken from, T is even. |
|
| 1129 | - |
|
| 1130 | -Also: |
|
| 1131 | - |
|
| 1132 | - * If T does NOT borrow, P+P is some value less than 10. |
|
| 1133 | - * If T DOES borrow, P+P is some value greater than or equal to 10. |
|
| 1134 | - |
|
| 1135 | -In either case of T being odd or even, we can eliminate half the values (if T is even, it cannot be any odd values, not in an even base). |
|
| 1136 | - |
|
| 1137 | -====Next-to hints==== |
|
| 1138 | -Sometimes you may be treated to left-most clues like this: |
|
| 1139 | - |
|
| 1140 | -<code> |
|
| 1141 | - JKLM |
|
| 1142 | - -FGHH |
|
| 1143 | - ==== |
|
| 1144 | - TWX |
|
| 1145 | -</code> |
|
| 1146 | - |
|
| 1147 | -Notice how J-F equals nothing? That tells us the following things: |
|
| 1148 | - |
|
| 1149 | - * F is exactly one value less than J (written: F < J) |
|
| 1150 | - * K is LESS THAN G and T (K has to borrow to make J-F=0 versus the 1 it would otherwise be). |
|
| 1151 | - |
|
| 1152 | -====Next-to hints, moar==== |
|
| 1153 | -What really pays off is when we have a scenario like this: |
|
| 1154 | - |
|
| 1155 | -<code> |
|
| 1156 | - JKLJM |
|
| 1157 | - -FGHFH |
|
| 1158 | - ===== |
|
| 1159 | - TWUX |
|
| 1160 | -</code> |
|
| 1161 | - |
|
| 1162 | -See that nestled J-F=U there? Because we had the left-most J-F=NOTHING establishing our assertion that F < J, yet NOT knowing the state of being taken from (ie not knowing anything about M against H or X): |
|
| 1163 | - |
|
| 1164 | - * U is EITHER 0 or 1, to be immediately determined once we know the state of M against H or X (the subtraction immediately to the right). |
|
| 1165 | - |
|
| 1166 | -====Subtract by greatest digit, get increment==== |
|
| 1167 | -If we have identified the greatest value, and we see it elsewhere in the puzzle, NOT as the top value, but as the value being subtracted, or the result, and we are not being taken from, we know some things. |
|
| 1168 | - |
|
| 1169 | -For example, let's say C is the greatest digit (9 in base 10), and E << T: |
|
| 1170 | - |
|
| 1171 | -<code> |
|
| 1172 | - PHANT |
|
| 1173 | - - OMME |
|
| 1174 | - ===== |
|
| 1175 | - NACE |
|
| 1176 | -</code> |
|
| 1177 | - |
|
| 1178 | -See the N-M=C ? |
|
| 1179 | - |
|
| 1180 | -Because we know C is 9: |
|
| 1181 | - |
|
| 1182 | - * N << C (everything not C is less than C (9)) |
|
| 1183 | - * therefore also: N << M |
|
| 1184 | - |
|
| 1185 | -Watch what happens when we plug in values: |
|
| 1186 | - |
|
| 1187 | - * N = 1: 11-9=2 |
|
| 1188 | - * N = 2: 12-9=3 |
|
| 1189 | - * N = 3: 13-9=4 |
|
| 1190 | - * N = 4: 14-9=5 |
|
| 1191 | - * ... through N=7 |
|
| 1192 | - |
|
| 1193 | -Notice how when N is 1, M is 2... 2, 3... 3, 4... ? |
|
| 1194 | - |
|
| 1195 | -In this scenario: N is EXACTLY ONE LESS than M: N < M. |
|
| 1196 | - |
|
| 1197 | -But only when we KNOW what the greatest digit in a base is and know the state of whether or not we are being taken from. |
|
| 1198 | - |
|
| 1199 | -====Subtract by known offset from greatest digit, get offset increment==== |
|
| 1200 | -Related to the above strategy, on "Subtract by greatest digit, get increment", it actually applies to more than just the greatest digit: so long as you know its distance from the greatest digit, and the take situation of the subtraction, you can derive the offset of increment. |
|
| 1201 | - |
|
| 1202 | -A chart of the first few (I typically don't go any further than this out of practicality, although the pattern persists beyond this point of reporting): |
|
| 1203 | - |
|
| 1204 | -^ digit ^ being taken from ^ not being taken from | |
|
| 1205 | -| greatest | 0 | 1 | |
|
| 1206 | -| greatest-1 | 1 | 2 | |
|
| 1207 | -| greatest-2 | 2 | 3 | |
|
| 1208 | - |
|
| 1209 | -For example, let's say R is the second greatest digit (A in base 12), and let's say we know that C << R: |
|
| 1210 | - |
|
| 1211 | -<code> |
|
| 1212 | - SECOND |
|
| 1213 | - - GRADE |
|
| 1214 | - ====== |
|
| 1215 | - MATHS |
|
| 1216 | -</code> |
|
| 1217 | - |
|
| 1218 | -See the C-R=A? With R being the known second greatest digit, and knowing that C is somewhat less than R, that means C is borrowing. |
|
| 1219 | - |
|
| 1220 | -Looking at the table, depending on the take situation, we can determine that C is exactly 1 or 2 values less than A, potentially offing up nice reduction of possibilities for both C and A. |
|
| 1221 | - |
|
| 1222 | -Should it turn out C is being taken from, then C is exactly 1 less than A. |
|
| 1223 | - |
|
| 1224 | -If C is not being taken from, then C is exactly 2 less than A. |
|
| 1225 | - |
|
| 1226 | -====Divisor/Multiplication relations==== |
|
| 1227 | -Since letter divisions are but a long division, if we were to look at one (base 10) as purely numbers: |
|
| 1228 | - |
|
| 1229 | -<code> |
|
| 1230 | - 2565 |
|
| 1231 | - +--------- |
|
| 1232 | -27846 | 71447493 |
|
| 1233 | - -55692 |
|
| 1234 | - ===== |
|
| 1235 | - 157554 |
|
| 1236 | - -139230 |
|
| 1237 | - ====== |
|
| 1238 | - 183249 |
|
| 1239 | - -167076 |
|
| 1240 | - ====== |
|
| 1241 | - 161733 |
|
| 1242 | - -139230 |
|
| 1243 | - ====== |
|
| 1244 | - 22503 |
|
| 1245 | -</code> |
|
| 1246 | - |
|
| 1247 | -Do you see that the divisor (27846) x 2 = 55692, divisor x 5 = 139230, and divisor x 6 = 167076? |
|
| 1248 | - |
|
| 1249 | -Pay specific attention to the subtrahend of 55692. Notice how it is exactly the same length in digits as the divisor (5 digits). This allows us to make an important comparison: |
|
| 1250 | - |
|
| 1251 | - * divisor (27846) x 1 = the divisor itself (27846). |
|
| 1252 | - * any similarly-lengthed subtrahend as the divisor is NOT less than the divisor. |
|
| 1253 | - * so we can make a comparison between the first digits of the divisor and that of the subtrahend. |
|
| 1254 | - |
|
| 1255 | -In a fully enlettered puzzle: |
|
| 1256 | - |
|
| 1257 | -<code> |
|
| 1258 | - TECE |
|
| 1259 | - +--------- |
|
| 1260 | -TMGNC | MSNNMNXL |
|
| 1261 | - -EECXT |
|
| 1262 | - ===== |
|
| 1263 | - SEMEEN |
|
| 1264 | - -SLXTLR |
|
| 1265 | - ====== |
|
| 1266 | - SGLTNX |
|
| 1267 | - -SCMRMC |
|
| 1268 | - ====== |
|
| 1269 | - SCSMLL |
|
| 1270 | - -SLXTLR |
|
| 1271 | - ====== |
|
| 1272 | - TTERL |
|
| 1273 | -</code> |
|
| 1274 | - |
|
| 1275 | -In the case of TMGNC (the divisor) and EECXT (that first subtrahend), specifically their first letters (T and E), because they are both the same length (5 letters), we can establish the following relation: |
|
| 1276 | - |
|
| 1277 | - * T << E (T is somewhat less than E) |
|
| 1278 | - * by extension, the minuend the subtrahend is being subtracted from, has to be at least the same size or larger than the subtrahend. So, similarly, in TMGNC (the divisor) and MSNNM (5 letters), T << M (T is somewhat less than M. |
|
| 1279 | - |
|
| 1280 | -This strategy, making use of multiplication, can only be used on puzzles where multiplication has not been restricted. |
|
| 1281 | - |
|
| 1282 | -====Inverted Subtraction Pairs==== |
|
| 1283 | - |
|
| 1284 | -Given the following puzzle: |
|
| 1285 | - |
|
| 1286 | -<code> |
|
| 1287 | - SETX |
|
| 1288 | - +--------- |
|
| 1289 | -EXEXT | XSSEMLMS |
|
| 1290 | - -EXEXT |
|
| 1291 | - ===== |
|
| 1292 | - LSECEL |
|
| 1293 | - -TXMXCR |
|
| 1294 | - ====== |
|
| 1295 | - SMCXLM |
|
| 1296 | - -SSXSGN |
|
| 1297 | - ====== |
|
| 1298 | - EMMELS |
|
| 1299 | - -ELCLTG |
|
| 1300 | - ====== |
|
| 1301 | - NSTRL |
|
| 1302 | - |
|
| 1303 | -base: 10 |
|
| 1304 | -</code> |
|
| 1305 | - |
|
| 1306 | -Have you ever noticed patterns like the following: |
|
| 1307 | - |
|
| 1308 | - * M-T=E (1st row, right-most) |
|
| 1309 | - * E-M=M (2nd row, 3rd from left) |
|
| 1310 | - |
|
| 1311 | -or: |
|
| 1312 | - |
|
| 1313 | - * X-E=L (1st row, left-most) |
|
| 1314 | - * E-X=C (1st row, 2nd from right) |
|
| 1315 | - |
|
| 1316 | -Basically, two different subtractions that match the following pattern: |
|
| 1317 | - |
|
| 1318 | - * top letter in one is a middle/bottom letter in the other |
|
| 1319 | - * middle/bottom letter in the first is the top in the other |
|
| 1320 | - |
|
| 1321 | -... as is the case in those two identified examples: M (top), E (bottom) and E(top), M (middle/bottom) |
|
| 1322 | -or: X (top), E (middle) and then E (top), X (middle). |
|
| 1323 | - |
|
| 1324 | -When you have scenarios such as this we can assume something about the sum of the OTHER two letters involved: |
|
| 1325 | - |
|
| 1326 | - * (E,X) C + L |
|
| 1327 | - * (E,M) M + T |
|
| 1328 | - |
|
| 1329 | -There are actually three possible sums, all dependent upon the state of the takes: |
|
| 1330 | - |
|
| 1331 | -^ no take from either ^ take from one but not the other ^ take from both | |
|
| 1332 | -| the base | the base - 1 | the base - 2 | |
|
| 1333 | - |
|
| 1334 | -So, in the case of M-T=E and E-M=M, because M-T=E is on the right edge, we know it cannot be taken from, so then we only need to determine the take situation for E-M=M. Therefore, there are TWO potential answers for M+T: |
|
| 1335 | - |
|
| 1336 | - * (no takes) M + T = 10 |
|
| 1337 | - * (one take) M + T = 9 |
|
| 1338 | - |
|
| 1339 | -... since the base of the puzzle is 10, 10 is the sum when there are no takes involved on the two subtractions. For other bases, it is still "one zero", but obviously the quantity of that base. |
|
| 1340 | - |
|
| 1341 | -The other identified pair in this example; the case of X-E=L and E-X=C, both are within a line, so no immediate clues as to certain states on take/no take. Therefore: |
|
| 1342 | - |
|
| 1343 | - * (no takes) C + L = 10 |
|
| 1344 | - * (one take) C + L = 9 |
|
| 1345 | - * (two takes) C + L = 8 |
|
| 1346 | - |
|
| 1347 | -This tends to be a nice way of accruing additional clues not revealed in more common methods, increasing the chances of increasing letter connectivity and deriving an eventual solution. |
|
| 1348 | - |
|
| 1349 | -====Inverted Subtraction Relational Pairs==== |
|
| 1350 | -Similar to the above strategy, what happens if you identify two subtraction pairs, but instead of involving the same symbols, involves a pair of symbols based on a known relation (off by one, in either direction). |
|
| 1351 | - |
|
| 1352 | -The same core logic applies (factoring in the take situation on both). |
|
| 1353 | - |
|
| 1354 | -But we can also add additional influence based on the relation of the symbols being modulated. |
|
| 1355 | - |
|
| 1356 | -For instance, if we were to have a known relation of **<nowiki>R < C</nowiki>**, and we had the following: |
|
| 1357 | - |
|
| 1358 | -<code> |
|
| 1359 | - X C |
|
| 1360 | - -P -G |
|
| 1361 | - = = |
|
| 1362 | - R X |
|
| 1363 | -</code> |
|
| 1364 | - |
|
| 1365 | -Because we know R is one less than C, and the R is the one below the top, with the C on the top, the value is INCREASED by 1. |
|
| 1366 | - |
|
| 1367 | -If instead we had: |
|
| 1368 | - |
|
| 1369 | -<code> |
|
| 1370 | - X R |
|
| 1371 | - -P -G |
|
| 1372 | - = = |
|
| 1373 | - C X |
|
| 1374 | -</code> |
|
| 1375 | - |
|
| 1376 | - |
|
| 1377 | -Because we know R is one less than C, and the C is the one below the top, with the R on top, the value is DECREASED by 1. |
|
| 1378 | - |
|
| 1379 | -So, rolling out with known borrow-takes: |
|
| 1380 | - |
|
| 1381 | -<code> |
|
| 1382 | - xXx >Cx because R < C, and the larger of the pair is on the top: |
|
| 1383 | - -P -G P + G = base - takes (no takes), PLUS 1 |
|
| 1384 | - = = |
|
| 1385 | - R X |
|
| 1386 | -</code> |
|
| 1387 | - |
|
| 1388 | -<code> |
|
| 1389 | - xXx >Rx because R < C, and the smaller of the pair is on the top: |
|
| 1390 | - -P -G P + G = base - takes (no takes), MINUS 1 |
|
| 1391 | - = = |
|
| 1392 | - C X |
|
| 1393 | -</code> |
|
| 1394 | - |
|
| 1395 | -====Single-Letter Subtrahend Determination==== |
|
| 1396 | -NOTE: Mostly useful for the "solve4" category of letter division puzzles providing a conducive scenario to utilize this strategy. |
|
| 1397 | - |
|
| 1398 | -Let's look at the following puzzle (base 12): |
|
| 1399 | -<code> |
|
| 1400 | - ???????? |
|
| 1401 | - +--------- |
|
| 1402 | -PTPXQ | NFNXHNXP |
|
| 1403 | - -PTPXQ |
|
| 1404 | - ===== |
|
| 1405 | - EHFXEN |
|
| 1406 | - -EQETEF |
|
| 1407 | - ====== |
|
| 1408 | - EXTXPX |
|
| 1409 | - - PTPXQ |
|
| 1410 | - ====== |
|
| 1411 | - FNJHUP |
|
| 1412 | - -FGHJEP |
|
| 1413 | - ====== |
|
| 1414 | - ?????? |
|
| 1415 | - |
|
| 1416 | -base: 12 |
|
| 1417 | -</code> |
|
| 1418 | - |
|
| 1419 | -With a current range of: |
|
| 1420 | -<code> |
|
| 1421 | - E = { 1, } |
|
| 1422 | - F = { 2, } |
|
| 1423 | - G = { 4, A, } |
|
| 1424 | - H = { 8, } |
|
| 1425 | - J = { 3, } |
|
| 1426 | - N = { B } |
|
| 1427 | - P = { 9, } |
|
| 1428 | - Q = { 7, } |
|
| 1429 | - R = { 4, A, } |
|
| 1430 | - T = { 6, } |
|
| 1431 | - U = { 5, } |
|
| 1432 | - X = { 0, } |
|
| 1433 | -</code> |
|
| 1434 | - |
|
| 1435 | -As you can see, we are between G and R for the values of 4 and A. The problem here is that R does not appear anywhere in the letter division, meaning we have to determine G to determine R. There exists yet another problem with G, it only appears as the last subtrahend before an unknown remainder; we cannot determine it through natural puzzle-solving means. |
|
| 1436 | - |
|
| 1437 | -There are a few ways to go about this: |
|
| 1438 | - * last subtrahend divided by divisor |
|
| 1439 | - * finding largest possible value (with factors of divisor) to subtract last minuend by |
|
| 1440 | - * use the multiplication table and manually carry out the chain of multiplications (propagating carries as generated), building the subtrahend one value at a time (until we reach the letter in question) |
|
| 1441 | - |
|
| 1442 | -Going with the first method is simple, although depending on the values known may be impossible or not be as efficient as the second method. We start by turning the divisor and last subtrahend into numbers: |
|
| 1443 | - |
|
| 1444 | - * PTPXQ = 96907 |
|
| 1445 | - * FGHJEP = 2G8319 |
|
| 1446 | - |
|
| 1447 | -Since we do not know G yet, we leave it as-is. Now we can substitute G as both 4 and A and try dividing by the divisor to see if we get a whole number or not: |
|
| 1448 | - |
|
| 1449 | - * 248319 / 96907 = 3 <- Is clearly correct, therefore G is equal to 4 and R is equal to A. |
|
| 1450 | - * 2A8319 / 96907 = 3.76424... |
|
| 1451 | - |
|
| 1452 | -We are done with the first method. Now let's try the second method, which requires more work and is very similar, but may come in handy when lacking some numbers. First let's start off by turning the divisor and last minuend into numbers: |
|
| 1453 | - |
|
| 1454 | - * PTPXQ = 96907 |
|
| 1455 | - * FNJHUP = 2B3859 |
|
| 1456 | - |
|
| 1457 | -Now let's make a factor list for PTPXQ: |
|
| 1458 | - |
|
| 1459 | - * 96907 * 1 = 96907 |
|
| 1460 | - * 96907 * 2 = 171612 |
|
| 1461 | - * 96907 * 3 = 248319 |
|
| 1462 | - * 96907 * 4 = 323024 |
|
| 1463 | - * 96907 * 5 = 3B992B |
|
| 1464 | - * 96907 * 6 = 494636 |
|
| 1465 | - * 96907 * 7 = 56B341 |
|
| 1466 | - * 96907 * 8 = 646048 |
|
| 1467 | - * 96907 * 9 = 720953 |
|
| 1468 | - * 96907 * A = 7B765A |
|
| 1469 | - * 96907 * B = 892365 |
|
| 1470 | - |
|
| 1471 | -From this factor list we need to see the highest number we can subtract our last minuend (FNJHUP) by. Clearly 248319 from that group is smaller than FNJUP and is the highest possible number. So that is the last subtrahend used to get the remainder meaning G is equal 4! |
|
| 1472 | - |
|
| 1473 | -If G is equal to 4 then R is equal to A. |
|
| 1474 | - |
|
| 1475 | - |
|
| 1476 | -=====Checking your results===== |
|
| 1477 | -While things like the solution must be qualitatively evaluated, there are a number of simple checks that can be done (especially for your key and verify files) to determine whether or not you are on the right path. |
|
| 1478 | - |
|
| 1479 | -On lab46, you can run the **pzlchk** tool in the directory where your puzzle files reside, and it will perform a number of tests, reporting its findings to you in color-coded fashion. |
|
| 1480 | - |
|
| 1481 | -To use it: |
|
| 1482 | - |
|
| 1483 | - * log into lab46 |
|
| 1484 | - * change into the directory where your pctX.puzzle files are located (key, solution, verify) |
|
| 1485 | - * run the **pzlchk** tool with the appropriate arguments: |
|
| 1486 | - * first argument is your class DESIG |
|
| 1487 | - * second argument is your pctX project |
|
| 1488 | - * analyze the results: |
|
| 1489 | - * green and cyan indicates a level of acceptable status or success |
|
| 1490 | - * red indicates an error |
|
| 1491 | - |
|
| 1492 | -<cli> |
|
| 1493 | -lab46:~/src/SEMESTER/DESIG/pctX$ pzlchk DESIG pctX |
|
| 1494 | -</cli> |
|
| 1495 | - |
|
| 1496 | -For example, here's what a fully working, submitted output would look like: |
|
| 1497 | - |
|
| 1498 | -<cli> |
|
| 1499 | -lab46:~/src/SEMESTER/DESIG/pctX$ pzlchk DESIG pctX |
|
| 1500 | -Checking DESIG/pctX data files ... |
|
| 1501 | - > checking key file ... |
|
| 1502 | - > key file exists: pctX.puzzle.key |
|
| 1503 | - > key is of correct format |
|
| 1504 | - > key is of correct length |
|
| 1505 | - > key matches an entry in the MANIFEST |
|
| 1506 | - > checking solution file ... |
|
| 1507 | - > solution file exists: pctX.puzzle.solution |
|
| 1508 | - > solution file meets minimum length requirements |
|
| 1509 | - > checking verify file ... |
|
| 1510 | - > verify file exists: pctX.puzzle.verify |
|
| 1511 | - > verify is NOT of incorrect format |
|
| 1512 | - |
|
| 1513 | -Checking DESIG/pctX submission ... submitted on 20210202-211205 |
|
| 1514 | -</cli> |
|
| 1515 | - |
|
| 1516 | -=====Submission===== |
|
| 1517 | -By successfully performing this project, you should be submitting files that satisfy the following requirements: |
|
| 1518 | - |
|
| 1519 | - * a 'pctX.puzzle.key' file formatted as indicated elsewhere in this project document |
|
| 1520 | - * a 'pctX.puzzle.solution' file containing organized and informative detailing of your path to solution |
|
| 1521 | - * a 'pctX.puzzle.verify' file containing the appropriate verification information |
|
| 1522 | - |
|
| 1523 | -NOTE: Please substitute the actual project number in place of the 'X' in pctX. |
|
| 1524 | - |
|
| 1525 | -To submit this project to me using the **submit** tool, run the following command at your lab46 prompt: |
|
| 1526 | - |
|
| 1527 | -<cli> |
|
| 1528 | -lab46:~/src/SEMESTER/DESIG/pctX$ submit DESIG pctX pctX.puzzle.key pctX.puzzle.solution pctX.puzzle.verify |
|
| 1529 | -Submitting DESIG project "pctX": |
|
| 1530 | - -> pctX.puzzle.key(OK) |
|
| 1531 | - -> pctX.puzzle.solution(OK) |
|
| 1532 | - -> pctX.puzzle.verify(OK) |
|
| 1533 | - |
|
| 1534 | -SUCCESSFULLY SUBMITTED |
|
| 1535 | -</cli> |
|
| 1536 | - |
|
| 1537 | -NOTE: "DESIG" here is your class designation. It can be something like "cprog", "unix", "data", "discrete", "c4eng". You should know what your particular class designation is and substitute it into the submit line above. |
|
| 1538 | - |
|
| 1539 | -You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches. |
|
| 1540 | - |
|
| 1541 | -I'll be looking for the following: |
|
| 1542 | - |
|
| 1543 | -<code> |
|
| 1544 | -XX:pctX:final tally of results (XX/XX) |
|
| 1545 | -*:pctX:puzzle.key file submitted with correct values [#/#] (lower half of one-third) |
|
| 1546 | -*:pctX:puzzle.solution documents discovery of each letter [#/#] (two-thirds) |
|
| 1547 | -*:pctX:puzzle.verify provides verification information [#/#] (upper half of one-third) |
|
| 1548 | -</code> |
|
| 1549 | - |
|
| 1550 | -Additional points of consideration: |
|
| 1551 | - |
|
| 1552 | - * if any restrictions are in force and they are ignored in the solving of the problem, up to 50% of credit can be deducted. |
|
| 1553 | - * if solution is messy and disorganized, up to 50% of credit can be deducted (if I cannot easily tell how you got something). |
|
| 1554 | - |
|
| 1555 | -Point values for the various iterations of pctX projects: |
|
| 1556 | - |
|
| 1557 | -^ pct0 | 13 pts | bonus | |
|
| 1558 | -^ pct1 | 13 pts | bonus | |
|
| 1559 | -^ pct2 | 26 pts | | |
|
| 1560 | -^ pct3 | 26 pts | bonus | |
|
| 1561 | -^ pct4 | 26 pts | | |
|
| 1562 | -^ pct5 | 39 pts | bonus | |
|
| 1563 | -^ pct6 | 39 pts | | |
|
| 1564 | -^ pct7 | 39 pts | bonus | |
|
| 1565 | -^ pct8 | 39 pts | | |
|
| 1566 | -^ pct9 | 52 pts | bonus | |
|
| 1567 | -^ pctA | 52 pts | | |
|
| 1568 | -^ pctB | 52 pts | bonus | |
|
| 1569 | -^ pctC | 52 pts | | |
|
| 1570 | -^ pctD | 52 pts | bonus | |
|
| 1571 | -^ pctE | 52 pts | bonus | |
|
| 1572 | - |
|
| 1573 | -^ bwp1 | 39 pts | bonus | |
|
| 1574 | -^ bwp2 | 52 pts | bonus | |
haas/spring2026/sysprog/projects/sppX.md
| ... | ... | @@ -1,8 +1,8 @@ |
| 1 | 1 | # CSCS2730 Systems Programming |
| 2 | 2 | |
| 3 | -## project: sppX |
|
| 3 | +# PROJECT: sppX |
|
| 4 | 4 | |
| 5 | -### objective |
|
| 5 | +## OBJECTIVE |
|
| 6 | 6 | |
| 7 | 7 | To immerse yourself in relevant and important aspects of library |
| 8 | 8 | API, documentation, OS facilities, and other systems-level programming |
| ... | ... | @@ -10,30 +10,29 @@ functionality, aided by the "Understanding UNIX/Linux Programming: A |
| 10 | 10 | Guide to Theory and Practice" book that we will spend the semester |
| 11 | 11 | exploring. |
| 12 | 12 | |
| 13 | -### task |
|
| 13 | +## TASK |
|
| 14 | 14 | |
| 15 | 15 | Each week, throughout the semester, the aim will be to focus on a chapter |
| 16 | 16 | in the book: |
| 17 | 17 | |
| 18 | -* reading the chapter |
|
| 19 | -* discussing the chapter (in the class discord) |
|
| 20 | -* experimenting/playing with the content in your own code |
|
| 21 | -* identifying a UNIX tool or program you'd like to implement, making use of pertinent concepts (announce this in discord; where possible, I'd like each person to do a DIFFERENT thing) |
|
| 22 | -* implementing some UNIX tool or program that incorporates content covered in the given chapter (and where applicable, builds upon previous chapters). While not exclusively limited to programming problems at the end of each chapter, they are a good starting point (clear with me any deviations from that pattern). |
|
| 23 | -* code should include statement of limitations (what functionality does your code implement, what, especially compared to standard system tools, does it not implement) |
|
| 24 | -* no compiler notes, warnings, syntax errors, logical errors, or runtime errors (if there are compiler flags to issue, they should be clearly documented in the code/utilized in Makefile) |
|
| 25 | -* if you are implementing a UNIX tool (even if with only a subset of functionality), if it outputs in a certain way, or takes input in a certain way (as the core value of the tool), your implementation should, as best as possible, seek to conform with that structure of content. |
|
| 18 | + * reading the chapter |
|
| 19 | + * discussing the chapter (in the class discord) |
|
| 20 | + * experimenting/playing with the content in your own code |
|
| 21 | + * identifying a UNIX tool or program you'd like to implement, making use of pertinent concepts (announce this in discord; where possible, I'd like each person to do a DIFFERENT thing) |
|
| 22 | + * implementing some UNIX tool or program that incorporates content covered in the given chapter (and where applicable, builds upon previous chapters). While not exclusively limited to programming problems at the end of each chapter, they are a good starting point (clear with me any deviations from that pattern). |
|
| 23 | + * code should include statement of limitations (what functionality does your code implement, what, especially compared to standard system tools, does it not implement) |
|
| 24 | + * no compiler notes, warnings, syntax errors, logical errors, or runtime errors (if there are compiler flags to issue, they should be clearly documented in the code/utilized in Makefile) |
|
| 25 | + * if you are implementing a UNIX tool (even if with only a subset of functionality), if it outputs in a certain way, or takes input in a certain way (as the core value of the tool), your implementation should, as best as possible, seek to conform with that structure of content. |
|
| 26 | 26 | |
| 27 | 27 | The overall aim is to enable you to challenge yourself, explore areas and |
| 28 | 28 | concepts you are not familiar with, and grow as a programmer and problem |
| 29 | 29 | solver. I don't want to see you just doing things the way you are |
| 30 | 30 | familiar with (simply because you've always done them that way). |
| 31 | 31 | |
| 32 | -### semester progress |
|
| 32 | +## SEMESTER PROGRESS |
|
| 33 | 33 | |
| 34 | 34 | The outline of semester progress: |
| 35 | 35 | |
| 36 | -``` |
|
| 37 | 36 | | week | project | chapter | points per item (PTS) | TOTAL | |
| 38 | 37 | | ----- | ------- | ------------------- | --------------------- | ----- | |
| 39 | 38 | | 2 | spp2 | Chapters 1 and 2 | 4 | 52 | |
| ... | ... | @@ -48,9 +47,8 @@ The outline of semester progress: |
| 48 | 47 | | 11 | sppB | Chapter 11 | 22 | 286 | |
| 49 | 48 | | 12 | sppC | Chapter 12 | 24 | 312 | |
| 50 | 49 | | 13-15 | eoce | Chapters 13, 14, 15 | | | |
| 51 | -``` |
|
| 52 | 50 | |
| 53 | -### submission criteria |
|
| 51 | +### SUBMISSION CRITERIA |
|
| 54 | 52 | |
| 55 | 53 | ``` |
| 56 | 54 | TOTAL:sppX:final tally of results (TOTAL/TOTAL) |
| ... | ... | @@ -70,7 +68,7 @@ TOTAL:sppX:final tally of results (TOTAL/TOTAL) |
| 70 | 68 | ``` |
| 71 | 69 | |
| 72 | 70 | Additionally: |
| 73 | -* Solutions not abiding by spirit of project will be subject to a 25% overall deduction |
|
| 74 | -* Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction |
|
| 75 | -* Solutions not utilizing indentation to promote scope and clarity will be subject to a 25% overall deduction |
|
| 76 | -* Solutions not organized and easy to read (assume a terminal at least 90 characters wide, 40 characters tall) are subject to a 25% overall deduction |
|
| 71 | + * Solutions not abiding by spirit of project will be subject to a 25% overall deduction |
|
| 72 | + * Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction |
|
| 73 | + * Solutions not utilizing indentation to promote scope and clarity will be subject to a 25% overall deduction |
|
| 74 | + * Solutions not organized and easy to read (assume a terminal at least 90 characters wide, 40 characters tall) are subject to a 25% overall deduction |
haas/spring2026/sysprog/projects/wcpX.md
| ... | ... | @@ -35,14 +35,12 @@ Watch this space, as new activities may be added, or old ones obsoleted |
| 35 | 35 | (either conditionally or entirely), along with tweaks to claim caps and |
| 36 | 36 | point values. |
| 37 | 37 | |
| 38 | -``` |
|
| 39 | 38 | | attribute | description | cap | points per | week available | |
| 40 | 39 | | --------- | --------------------------- | --- | ---------- | -------------- | |
| 41 | 40 | | discord# | active on class discord | 6 | 2pts | 1+ | |
| 42 | 41 | | early | early submission (3+ days) | 1 | 2pts | 1+ | |
| 43 | 42 | | repo | 4+ commits to repository | 1 | 2pts | 1+ | |
| 44 | 43 | | present# | physically present | 2 | 1pts | 7+ | |
| 45 | -``` |
|
| 46 | 44 | |
| 47 | 45 | You will see that, in a normal week a TOTAL of 16-18 points are possible |
| 48 | 46 | (depending on particular attribute criteria) |
| ... | ... | @@ -84,7 +82,7 @@ wcp activity analysis is automated: the **wcp** tool will show you a |
| 84 | 82 | daily report of what you've currently accumulated (updated once per day, |
| 85 | 83 | sometime around midnight). |
| 86 | 84 | |
| 87 | -## wcpX reports |
|
| 85 | +## WCPX REPORTS |
|
| 88 | 86 | |
| 89 | 87 | Each week there will be a `wcp#` report started for you to view your |
| 90 | 88 | accumulated participation credit, which can be viewed using the `wcp` |
| ... | ... | @@ -98,36 +96,34 @@ The report will start on Thursday, and close by the end of that week |
| 98 | 96 | Wednesday. You have between the open and close of a reporting period to |
| 99 | 97 | perform your recognized participation activities. |
| 100 | 98 | |
| 101 | -## Weekly Point Requirements |
|
| 99 | +## WEEKLY POINT REQUIREMENTS |
|
| 102 | 100 | |
| 103 | 101 | Following will be a list of participation point tallies you will need to |
| 104 | 102 | accumulate in a given week to get full credit: |
| 105 | 103 | |
| 106 | -``` |
|
| 107 | 104 | | week | report | opens on | closes | total points needed | |
| 108 | 105 | | NUM | NAME | | on | | |
| 109 | 106 | | ---- | ------ | -------- | -------- | ------------------- | |
| 110 | -| 1 | wcp1 | 20240118 | 20240124 | 2 | |
|
| 111 | -| 2 | wcp2 | 20240125 | 20240131 | 2 | |
|
| 112 | -| 3 | wcp3 | 20240201 | 20240207 | 4 | |
|
| 113 | -| 4 | wcp4 | 20240208 | 20240214 | 4 | |
|
| 114 | -| 5 | wcp5 | 20240215 | 20240228 | 4 | |
|
| 115 | -| 6 | wcp6 | 20240229 | 20240306 | 4 | |
|
| 116 | -| 7 | wcp7 | 20240307 | 20240313 | 8 | |
|
| 117 | -| 8 | wcp8 | 20240314 | 20240320 | 8 | |
|
| 118 | -| 9 | wcp9 | 20240321 | 20240327 | 8 | |
|
| 119 | -| A | wcpA | 20240328 | 20240410 | 8 | |
|
| 120 | -| B | wcpB | 20240411 | 20240417 | 8 | |
|
| 121 | -| C | wcpC | 20240418 | 20240424 | 8 | |
|
| 122 | -| D | wcpD | 20240425 | 20240501 | 8 | |
|
| 123 | -| E | wcpE | 20240502 | 20240508 | 8 | |
|
| 124 | -``` |
|
| 107 | +| 1 | wcp1 | 20260122 | 20260128 | 2 | |
|
| 108 | +| 2 | wcp2 | 20260129 | 20260204 | 2 | |
|
| 109 | +| 3 | wcp3 | 20260205 | 20260211 | 4 | |
|
| 110 | +| 4 | wcp4 | 20260212 | 20260218 | 4 | |
|
| 111 | +| 5 | wcp5 | 20260219 | 20260225 | 4 | |
|
| 112 | +| 6 | wcp6 | 20260226 | 20260304 | 4 | |
|
| 113 | +| 7 | wcp7 | 20260305 | 20260311 | 8 | |
|
| 114 | +| 8 | wcp8 | 20260312 | 20260325 | 8 | |
|
| 115 | +| 9 | wcp9 | 20260326 | 20260401 | 8 | |
|
| 116 | +| A | wcpA | 20260402 | 20260408 | 8 | |
|
| 117 | +| B | wcpB | 20260409 | 20260415 | 8 | |
|
| 118 | +| C | wcpC | 20260416 | 20260422 | 8 | |
|
| 119 | +| D | wcpD | 20260423 | 20260429 | 8 | |
|
| 120 | +| E | wcpE | 20260430 | 20260506 | 8 | |
|
| 125 | 121 | |
| 126 | 122 | There are no make-ups. If you miss performing an activity, you can either |
| 127 | 123 | make up the credit by other participation activities, or even make up for |
| 128 | 124 | lost credit with bonus points in other weeks. |
| 129 | 125 | |
| 130 | -## Viewing your current week participation report |
|
| 126 | +## VIEWING YOUR CURRENT WEEK PARTICIPATION REPORT |
|
| 131 | 127 | |
| 132 | 128 | The sanctioned participation activities, when performed, leave a digital |
| 133 | 129 | trail, which I capture. |
| ... | ... | @@ -135,7 +131,7 @@ trail, which I capture. |
| 135 | 131 | The spirit of this activity is that you are making genuine and honest |
| 136 | 132 | contributions to participation each and every week. |
| 137 | 133 | |
| 138 | -### Using wcp |
|
| 134 | +### USING WCP |
|
| 139 | 135 | |
| 140 | 136 | If you are within the report window for a particular week (say, week1, so |
| 141 | 137 | the `wcp1` participation report is active), you can view your report |
| ... | ... | @@ -143,8 +139,8 @@ using the `wcp` tool. |
| 143 | 139 | |
| 144 | 140 | It takes 2 arguments: |
| 145 | 141 | |
| 146 | -* the class DESIG you are checking the report on (eg: c4eng, cprog, unix) |
|
| 147 | -* the wcpNUM report name (where NUM is `1` for wcp1/week1) |
|
| 142 | + * the class DESIG you are checking the report on (eg: c4eng, cprog, unix) |
|
| 143 | + * the wcpNUM report name (where NUM is `1` for wcp1/week1) |
|
| 148 | 144 | |
| 149 | 145 | And you can do so as follows (replace 'DESIG' with your lowercase class |
| 150 | 146 | designation, for the appropriate week): |