17633e9ba1ad1505173ccc02eef7050a8929a9b1
haas/spring2026/cprog/projects/ntr0.md
| ... | ... | @@ -1,38 +0,0 @@ |
| 1 | -# CSCS1320 C/C++ Programming |
|
| 2 | - |
|
| 3 | -# PROJECT: ntr0 |
|
| 4 | - |
|
| 5 | -## OBJECTIVE |
|
| 6 | - |
|
| 7 | -To get started in your journey in the course this semester |
|
| 8 | - |
|
| 9 | -## TASK |
|
| 10 | - |
|
| 11 | -By the deadline, please do the following: |
|
| 12 | - |
|
| 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 | - |
|
| 18 | -NOTE: if desired, your SSH public key may be the same one you use to |
|
| 19 | -access github. |
|
| 20 | - |
|
| 21 | -Please see [this page](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) for information on generating an SSH key. |
|
| 22 | - |
|
| 23 | -## SUBMISSION |
|
| 24 | - |
|
| 25 | -``` |
|
| 26 | -26:ntr0:final tally of results (26/26) |
|
| 27 | -*:ntr0:signed into and are active on the class DISCORD [6/6] |
|
| 28 | -*:ntr0:identified self and state classes on DISCORD [7/7] |
|
| 29 | -*:ntr0:provided instructor preferred GITHUB USERNAME [6/6] |
|
| 30 | -*:ntr0:provided instructor preferred SSH PUBLIC KEY [7/7] |
|
| 31 | -*:ntr0: |
|
| 32 | -``` |
|
| 33 | - |
|
| 34 | -Additionally: |
|
| 35 | - * Solutions not abiding by spirit of project will be subject to a 25% overall deduction |
|
| 36 | - * Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction |
|
| 37 | - * Solutions not utilizing indentation to promote scope and clarity will be subject to a 25% overall deduction |
|
| 38 | - * 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/cprog/projects/pctX.md
| ... | ... | @@ -1,1756 +0,0 @@ |
| 1 | -# CSCS1320 C/C++ Programming |
|
| 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/cprog/projects/wcpX.md
| ... | ... | @@ -1,153 +0,0 @@ |
| 1 | -# WEEKLY CLASS PARTICIPATION (WCPX) |
|
| 2 | - |
|
| 3 | -## OVERVIEW |
|
| 4 | - |
|
| 5 | -Each week, you have the ability to earn class participation credit by |
|
| 6 | -performing any of the available activities (for some amount of points) |
|
| 7 | -per week within the stated constraints, in order to attain a given point |
|
| 8 | -threshold (varying from week to week or as a general progression |
|
| 9 | -throughout the semester). |
|
| 10 | - |
|
| 11 | -## BACKGROUND |
|
| 12 | - |
|
| 13 | -Measuring participation fulfills a vital role of gauging individual |
|
| 14 | -involvement and interactivity in on-going class activities, not just |
|
| 15 | -their ability to perform assigned projects. |
|
| 16 | - |
|
| 17 | -Being exposed to and interacting with the subject matter helps to improve |
|
| 18 | -understanding, and eventually fluency, yet the trends these days seem to |
|
| 19 | -involve more and more people only putting forth effort for a class DURING |
|
| 20 | -said class (often at the expense of the actual in-class activity going |
|
| 21 | -on). |
|
| 22 | - |
|
| 23 | -Some may think it is time well spent, but when I find myself constantly |
|
| 24 | -repeating myself days, weeks, even months later, it is clear that |
|
| 25 | -something needs to be done in order to improve individual participation |
|
| 26 | -in the course. |
|
| 27 | - |
|
| 28 | -## PARTICIPATION ACTIVITIES |
|
| 29 | - |
|
| 30 | -The following are a list of available activities, along with current |
|
| 31 | -weekly claim caps, and point values that you can perform for |
|
| 32 | -participation credit in a given week. |
|
| 33 | - |
|
| 34 | -Watch this space, as new activities may be added, or old ones obsoleted |
|
| 35 | -(either conditionally or entirely), along with tweaks to claim caps and |
|
| 36 | -point values. |
|
| 37 | - |
|
| 38 | -| attribute | description | cap | points per | week available | |
|
| 39 | -| --------- | --------------------------- | --- | ---------- | -------------- | |
|
| 40 | -| discord# | active on class discord | 6 | 2pts | 1+ | |
|
| 41 | -| early | early submission (3+ days) | 1 | 2pts | 1+ | |
|
| 42 | -| repo | 4+ commits to repository | 1 | 2pts | 1+ | |
|
| 43 | -| present# | physically present | 2 | 1pts | 7+ | |
|
| 44 | - |
|
| 45 | -You will see that, in a normal week a TOTAL of 16-18 points are possible |
|
| 46 | -(depending on particular attribute criteria) |
|
| 47 | - |
|
| 48 | -Each week I will require some subset of the above-stated activities to be |
|
| 49 | -done for participation, giving you choices on how you'd like to earn this |
|
| 50 | -credit. Depending on the combination, I may consider participation |
|
| 51 | -activities done in excess of the weekly cap as some form of bonus |
|
| 52 | -(applied to the participation component). |
|
| 53 | - |
|
| 54 | -NOTE: The eligibility for claiming a `discord#` attribute is based on |
|
| 55 | -on-topic, on-going interactions on the class discord channels. Direct |
|
| 56 | -Messages in Discord do NOT count. |
|
| 57 | - |
|
| 58 | -E-mails do NOT count toward participation. |
|
| 59 | - |
|
| 60 | -Part of your responsibility in the class is to participate in the |
|
| 61 | -learning environment with others. |
|
| 62 | - |
|
| 63 | -During week 1, since we are just getting started, `#generalchat` messages |
|
| 64 | -will be included in the list of acceptable participation sources (but |
|
| 65 | -will only be included for consideration in the first week). |
|
| 66 | - |
|
| 67 | -Pertinent interactions on `#puzzl-y-tastic` will also count towards |
|
| 68 | -acceptable participation sources. |
|
| 69 | - |
|
| 70 | -Cap on bonus points: one can only earn AT MOST HALF the stated weekly |
|
| 71 | -points in bonus form (or 2, if the halfway value is less than 2). |
|
| 72 | - |
|
| 73 | -For `#discord`, the time threshold between earnable points starts at 192 |
|
| 74 | -minutes, and will increment by 192 with each passing earned attribute |
|
| 75 | -throughout the given week. |
|
| 76 | - |
|
| 77 | -Only posts (or accumulations of posts) of at least 32 words will be |
|
| 78 | -considered eligible. Accumulated triggers will only come to fruition once |
|
| 79 | -the necessary time lapse has transpired. |
|
| 80 | - |
|
| 81 | -wcp activity analysis is automated: the **wcp** tool will show you a |
|
| 82 | -daily report of what you've currently accumulated (updated once per day, |
|
| 83 | -sometime around midnight). |
|
| 84 | - |
|
| 85 | -## WCPX REPORTS |
|
| 86 | - |
|
| 87 | -Each week there will be a `wcp#` report started for you to view your |
|
| 88 | -accumulated participation credit, which can be viewed using the `wcp` |
|
| 89 | -tool (on lab46). |
|
| 90 | - |
|
| 91 | -Failure to adequately participate under the terms of the available |
|
| 92 | -attributes by the deadline will result in lost credit: remembering and |
|
| 93 | -time management are important skills as well! |
|
| 94 | - |
|
| 95 | -The report will start on Thursday, and close by the end of that week |
|
| 96 | -Wednesday. You have between the open and close of a reporting period to |
|
| 97 | -perform your recognized participation activities. |
|
| 98 | - |
|
| 99 | -## WEEKLY POINT REQUIREMENTS |
|
| 100 | - |
|
| 101 | -Following will be a list of participation point tallies you will need to |
|
| 102 | -accumulate in a given week to get full credit: |
|
| 103 | - |
|
| 104 | -| week | report | opens on | closes | total points needed | |
|
| 105 | -| NUM | NAME | | on | | |
|
| 106 | -| ---- | ------ | -------- | -------- | ------------------- | |
|
| 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 | |
|
| 121 | - |
|
| 122 | -There are no make-ups. If you miss performing an activity, you can either |
|
| 123 | -make up the credit by other participation activities, or even make up for |
|
| 124 | -lost credit with bonus points in other weeks. |
|
| 125 | - |
|
| 126 | -## VIEWING YOUR CURRENT WEEK PARTICIPATION REPORT |
|
| 127 | - |
|
| 128 | -The sanctioned participation activities, when performed, leave a digital |
|
| 129 | -trail, which I capture. |
|
| 130 | - |
|
| 131 | -The spirit of this activity is that you are making genuine and honest |
|
| 132 | -contributions to participation each and every week. |
|
| 133 | - |
|
| 134 | -### USING WCP |
|
| 135 | - |
|
| 136 | -If you are within the report window for a particular week (say, week1, so |
|
| 137 | -the `wcp1` participation report is active), you can view your report |
|
| 138 | -using the `wcp` tool. |
|
| 139 | - |
|
| 140 | -It takes 2 arguments: |
|
| 141 | - |
|
| 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) |
|
| 144 | - |
|
| 145 | -And you can do so as follows (replace 'DESIG' with your lowercase class |
|
| 146 | -designation, for the appropriate week): |
|
| 147 | - |
|
| 148 | -``` |
|
| 149 | -lab46:~$ wcp DESIG wcpNUM |
|
| 150 | -``` |
|
| 151 | - |
|
| 152 | -This should bring up the current report, displayed to STDOUT in your |
|
| 153 | -lab46 terminal. |
haas/spring2026/sysprog/projects/ntr0.md
| ... | ... | @@ -1,38 +0,0 @@ |
| 1 | -# CSCS2730 Systems Programing |
|
| 2 | - |
|
| 3 | -# PROJECT: ntr0 |
|
| 4 | - |
|
| 5 | -## OBJECTIVE |
|
| 6 | - |
|
| 7 | -To get started in your journey in the course this semester |
|
| 8 | - |
|
| 9 | -## TASK |
|
| 10 | - |
|
| 11 | -By the deadline, please do the following: |
|
| 12 | - |
|
| 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 | - |
|
| 18 | -NOTE: if desired, your SSH public key may be the same one you use to |
|
| 19 | -access github. |
|
| 20 | - |
|
| 21 | -Please see [this page](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) for information on generating an SSH key. |
|
| 22 | - |
|
| 23 | -## SUBMISSION |
|
| 24 | - |
|
| 25 | -``` |
|
| 26 | -26:ntr0:final tally of results (26/26) |
|
| 27 | -*:ntr0:signed into and are active on the class DISCORD [6/6] |
|
| 28 | -*:ntr0:identified self and state classes on DISCORD [7/7] |
|
| 29 | -*:ntr0:provided instructor preferred GITHUB USERNAME [6/6] |
|
| 30 | -*:ntr0:provided instructor preferred SSH PUBLIC KEY [7/7] |
|
| 31 | -*:ntr0: |
|
| 32 | -``` |
|
| 33 | - |
|
| 34 | -Additionally: |
|
| 35 | - * Solutions not abiding by spirit of project will be subject to a 25% overall deduction |
|
| 36 | - * Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction |
|
| 37 | - * Solutions not utilizing indentation to promote scope and clarity will be subject to a 25% overall deduction |
|
| 38 | - * 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
| ... | ... | @@ -1,1756 +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 | -## 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/wcpX.md
| ... | ... | @@ -1,153 +0,0 @@ |
| 1 | -# WEEKLY CLASS PARTICIPATION (WCPX) |
|
| 2 | - |
|
| 3 | -## OVERVIEW |
|
| 4 | - |
|
| 5 | -Each week, you have the ability to earn class participation credit by |
|
| 6 | -performing any of the available activities (for some amount of points) |
|
| 7 | -per week within the stated constraints, in order to attain a given point |
|
| 8 | -threshold (varying from week to week or as a general progression |
|
| 9 | -throughout the semester). |
|
| 10 | - |
|
| 11 | -## BACKGROUND |
|
| 12 | - |
|
| 13 | -Measuring participation fulfills a vital role of gauging individual |
|
| 14 | -involvement and interactivity in on-going class activities, not just |
|
| 15 | -their ability to perform assigned projects. |
|
| 16 | - |
|
| 17 | -Being exposed to and interacting with the subject matter helps to improve |
|
| 18 | -understanding, and eventually fluency, yet the trends these days seem to |
|
| 19 | -involve more and more people only putting forth effort for a class DURING |
|
| 20 | -said class (often at the expense of the actual in-class activity going |
|
| 21 | -on). |
|
| 22 | - |
|
| 23 | -Some may think it is time well spent, but when I find myself constantly |
|
| 24 | -repeating myself days, weeks, even months later, it is clear that |
|
| 25 | -something needs to be done in order to improve individual participation |
|
| 26 | -in the course. |
|
| 27 | - |
|
| 28 | -## PARTICIPATION ACTIVITIES |
|
| 29 | - |
|
| 30 | -The following are a list of available activities, along with current |
|
| 31 | -weekly claim caps, and point values that you can perform for |
|
| 32 | -participation credit in a given week. |
|
| 33 | - |
|
| 34 | -Watch this space, as new activities may be added, or old ones obsoleted |
|
| 35 | -(either conditionally or entirely), along with tweaks to claim caps and |
|
| 36 | -point values. |
|
| 37 | - |
|
| 38 | -| attribute | description | cap | points per | week available | |
|
| 39 | -| --------- | --------------------------- | --- | ---------- | -------------- | |
|
| 40 | -| discord# | active on class discord | 6 | 2pts | 1+ | |
|
| 41 | -| early | early submission (3+ days) | 1 | 2pts | 1+ | |
|
| 42 | -| repo | 4+ commits to repository | 1 | 2pts | 1+ | |
|
| 43 | -| present# | physically present | 2 | 1pts | 7+ | |
|
| 44 | - |
|
| 45 | -You will see that, in a normal week a TOTAL of 16-18 points are possible |
|
| 46 | -(depending on particular attribute criteria) |
|
| 47 | - |
|
| 48 | -Each week I will require some subset of the above-stated activities to be |
|
| 49 | -done for participation, giving you choices on how you'd like to earn this |
|
| 50 | -credit. Depending on the combination, I may consider participation |
|
| 51 | -activities done in excess of the weekly cap as some form of bonus |
|
| 52 | -(applied to the participation component). |
|
| 53 | - |
|
| 54 | -NOTE: The eligibility for claiming a `discord#` attribute is based on |
|
| 55 | -on-topic, on-going interactions on the class discord channels. Direct |
|
| 56 | -Messages in Discord do NOT count. |
|
| 57 | - |
|
| 58 | -E-mails do NOT count toward participation. |
|
| 59 | - |
|
| 60 | -Part of your responsibility in the class is to participate in the |
|
| 61 | -learning environment with others. |
|
| 62 | - |
|
| 63 | -During week 1, since we are just getting started, `#generalchat` messages |
|
| 64 | -will be included in the list of acceptable participation sources (but |
|
| 65 | -will only be included for consideration in the first week). |
|
| 66 | - |
|
| 67 | -Pertinent interactions on `#puzzl-y-tastic` will also count towards |
|
| 68 | -acceptable participation sources. |
|
| 69 | - |
|
| 70 | -Cap on bonus points: one can only earn AT MOST HALF the stated weekly |
|
| 71 | -points in bonus form (or 2, if the halfway value is less than 2). |
|
| 72 | - |
|
| 73 | -For `#discord`, the time threshold between earnable points starts at 192 |
|
| 74 | -minutes, and will increment by 192 with each passing earned attribute |
|
| 75 | -throughout the given week. |
|
| 76 | - |
|
| 77 | -Only posts (or accumulations of posts) of at least 32 words will be |
|
| 78 | -considered eligible. Accumulated triggers will only come to fruition once |
|
| 79 | -the necessary time lapse has transpired. |
|
| 80 | - |
|
| 81 | -wcp activity analysis is automated: the **wcp** tool will show you a |
|
| 82 | -daily report of what you've currently accumulated (updated once per day, |
|
| 83 | -sometime around midnight). |
|
| 84 | - |
|
| 85 | -## WCPX REPORTS |
|
| 86 | - |
|
| 87 | -Each week there will be a `wcp#` report started for you to view your |
|
| 88 | -accumulated participation credit, which can be viewed using the `wcp` |
|
| 89 | -tool (on lab46). |
|
| 90 | - |
|
| 91 | -Failure to adequately participate under the terms of the available |
|
| 92 | -attributes by the deadline will result in lost credit: remembering and |
|
| 93 | -time management are important skills as well! |
|
| 94 | - |
|
| 95 | -The report will start on Thursday, and close by the end of that week |
|
| 96 | -Wednesday. You have between the open and close of a reporting period to |
|
| 97 | -perform your recognized participation activities. |
|
| 98 | - |
|
| 99 | -## WEEKLY POINT REQUIREMENTS |
|
| 100 | - |
|
| 101 | -Following will be a list of participation point tallies you will need to |
|
| 102 | -accumulate in a given week to get full credit: |
|
| 103 | - |
|
| 104 | -| week | report | opens on | closes | total points needed | |
|
| 105 | -| NUM | NAME | | on | | |
|
| 106 | -| ---- | ------ | -------- | -------- | ------------------- | |
|
| 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 | |
|
| 121 | - |
|
| 122 | -There are no make-ups. If you miss performing an activity, you can either |
|
| 123 | -make up the credit by other participation activities, or even make up for |
|
| 124 | -lost credit with bonus points in other weeks. |
|
| 125 | - |
|
| 126 | -## VIEWING YOUR CURRENT WEEK PARTICIPATION REPORT |
|
| 127 | - |
|
| 128 | -The sanctioned participation activities, when performed, leave a digital |
|
| 129 | -trail, which I capture. |
|
| 130 | - |
|
| 131 | -The spirit of this activity is that you are making genuine and honest |
|
| 132 | -contributions to participation each and every week. |
|
| 133 | - |
|
| 134 | -### USING WCP |
|
| 135 | - |
|
| 136 | -If you are within the report window for a particular week (say, week1, so |
|
| 137 | -the `wcp1` participation report is active), you can view your report |
|
| 138 | -using the `wcp` tool. |
|
| 139 | - |
|
| 140 | -It takes 2 arguments: |
|
| 141 | - |
|
| 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) |
|
| 144 | - |
|
| 145 | -And you can do so as follows (replace 'DESIG' with your lowercase class |
|
| 146 | -designation, for the appropriate week): |
|
| 147 | - |
|
| 148 | -``` |
|
| 149 | -lab46:~$ wcp DESIG wcpNUM |
|
| 150 | -``` |
|
| 151 | - |
|
| 152 | -This should bring up the current report, displayed to STDOUT in your |
|
| 153 | -lab46 terminal. |
haas/spring2026/unix/projects/ntr0.md
| ... | ... | @@ -1,38 +0,0 @@ |
| 1 | -# CSCS1730 UNIX/Linux Fundamentals |
|
| 2 | - |
|
| 3 | -# PROJECT: ntr0 |
|
| 4 | - |
|
| 5 | -## OBJECTIVE |
|
| 6 | - |
|
| 7 | -To get started in your journey in the course this semester |
|
| 8 | - |
|
| 9 | -## TASK |
|
| 10 | - |
|
| 11 | -By the deadline, please do the following: |
|
| 12 | - |
|
| 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 | - |
|
| 18 | -NOTE: if desired, your SSH public key may be the same one you use to |
|
| 19 | -access github. |
|
| 20 | - |
|
| 21 | -Please see [this page](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) for information on generating an SSH key. |
|
| 22 | - |
|
| 23 | -## SUBMISSION |
|
| 24 | - |
|
| 25 | -``` |
|
| 26 | -26:ntr0:final tally of results (26/26) |
|
| 27 | -*:ntr0:signed into and are active on the class DISCORD [6/6] |
|
| 28 | -*:ntr0:identified self and state classes on DISCORD [7/7] |
|
| 29 | -*:ntr0:provided instructor preferred GITHUB USERNAME [6/6] |
|
| 30 | -*:ntr0:provided instructor preferred SSH PUBLIC KEY [7/7] |
|
| 31 | -*:ntr0: |
|
| 32 | -``` |
|
| 33 | - |
|
| 34 | -Additionally: |
|
| 35 | - * Solutions not abiding by spirit of project will be subject to a 25% overall deduction |
|
| 36 | - * Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction |
|
| 37 | - * Solutions not utilizing indentation to promote scope and clarity will be subject to a 25% overall deduction |
|
| 38 | - * 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/unix/projects/pctX.md
| ... | ... | @@ -1,1756 +0,0 @@ |
| 1 | -# CSCS1730 UNIX/Linux Fundamentals |
|
| 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/unix/projects/wcpX.md
| ... | ... | @@ -1,153 +0,0 @@ |
| 1 | -# WEEKLY CLASS PARTICIPATION (WCPX) |
|
| 2 | - |
|
| 3 | -## OVERVIEW |
|
| 4 | - |
|
| 5 | -Each week, you have the ability to earn class participation credit by |
|
| 6 | -performing any of the available activities (for some amount of points) |
|
| 7 | -per week within the stated constraints, in order to attain a given point |
|
| 8 | -threshold (varying from week to week or as a general progression |
|
| 9 | -throughout the semester). |
|
| 10 | - |
|
| 11 | -## BACKGROUND |
|
| 12 | - |
|
| 13 | -Measuring participation fulfills a vital role of gauging individual |
|
| 14 | -involvement and interactivity in on-going class activities, not just |
|
| 15 | -their ability to perform assigned projects. |
|
| 16 | - |
|
| 17 | -Being exposed to and interacting with the subject matter helps to improve |
|
| 18 | -understanding, and eventually fluency, yet the trends these days seem to |
|
| 19 | -involve more and more people only putting forth effort for a class DURING |
|
| 20 | -said class (often at the expense of the actual in-class activity going |
|
| 21 | -on). |
|
| 22 | - |
|
| 23 | -Some may think it is time well spent, but when I find myself constantly |
|
| 24 | -repeating myself days, weeks, even months later, it is clear that |
|
| 25 | -something needs to be done in order to improve individual participation |
|
| 26 | -in the course. |
|
| 27 | - |
|
| 28 | -## PARTICIPATION ACTIVITIES |
|
| 29 | - |
|
| 30 | -The following are a list of available activities, along with current |
|
| 31 | -weekly claim caps, and point values that you can perform for |
|
| 32 | -participation credit in a given week. |
|
| 33 | - |
|
| 34 | -Watch this space, as new activities may be added, or old ones obsoleted |
|
| 35 | -(either conditionally or entirely), along with tweaks to claim caps and |
|
| 36 | -point values. |
|
| 37 | - |
|
| 38 | -| attribute | description | cap | points per | week available | |
|
| 39 | -| --------- | --------------------------- | --- | ---------- | -------------- | |
|
| 40 | -| discord# | active on class discord | 6 | 2pts | 1+ | |
|
| 41 | -| early | early submission (3+ days) | 1 | 2pts | 1+ | |
|
| 42 | -| repo | 4+ commits to repository | 1 | 2pts | 1+ | |
|
| 43 | -| present# | physically present | 2 | 1pts | 7+ | |
|
| 44 | - |
|
| 45 | -You will see that, in a normal week a TOTAL of 16-18 points are possible |
|
| 46 | -(depending on particular attribute criteria) |
|
| 47 | - |
|
| 48 | -Each week I will require some subset of the above-stated activities to be |
|
| 49 | -done for participation, giving you choices on how you'd like to earn this |
|
| 50 | -credit. Depending on the combination, I may consider participation |
|
| 51 | -activities done in excess of the weekly cap as some form of bonus |
|
| 52 | -(applied to the participation component). |
|
| 53 | - |
|
| 54 | -NOTE: The eligibility for claiming a `discord#` attribute is based on |
|
| 55 | -on-topic, on-going interactions on the class discord channels. Direct |
|
| 56 | -Messages in Discord do NOT count. |
|
| 57 | - |
|
| 58 | -E-mails do NOT count toward participation. |
|
| 59 | - |
|
| 60 | -Part of your responsibility in the class is to participate in the |
|
| 61 | -learning environment with others. |
|
| 62 | - |
|
| 63 | -During week 1, since we are just getting started, `#generalchat` messages |
|
| 64 | -will be included in the list of acceptable participation sources (but |
|
| 65 | -will only be included for consideration in the first week). |
|
| 66 | - |
|
| 67 | -Pertinent interactions on `#puzzl-y-tastic` will also count towards |
|
| 68 | -acceptable participation sources. |
|
| 69 | - |
|
| 70 | -Cap on bonus points: one can only earn AT MOST HALF the stated weekly |
|
| 71 | -points in bonus form (or 2, if the halfway value is less than 2). |
|
| 72 | - |
|
| 73 | -For `#discord`, the time threshold between earnable points starts at 192 |
|
| 74 | -minutes, and will increment by 192 with each passing earned attribute |
|
| 75 | -throughout the given week. |
|
| 76 | - |
|
| 77 | -Only posts (or accumulations of posts) of at least 32 words will be |
|
| 78 | -considered eligible. Accumulated triggers will only come to fruition once |
|
| 79 | -the necessary time lapse has transpired. |
|
| 80 | - |
|
| 81 | -wcp activity analysis is automated: the **wcp** tool will show you a |
|
| 82 | -daily report of what you've currently accumulated (updated once per day, |
|
| 83 | -sometime around midnight). |
|
| 84 | - |
|
| 85 | -## WCPX REPORTS |
|
| 86 | - |
|
| 87 | -Each week there will be a `wcp#` report started for you to view your |
|
| 88 | -accumulated participation credit, which can be viewed using the `wcp` |
|
| 89 | -tool (on lab46). |
|
| 90 | - |
|
| 91 | -Failure to adequately participate under the terms of the available |
|
| 92 | -attributes by the deadline will result in lost credit: remembering and |
|
| 93 | -time management are important skills as well! |
|
| 94 | - |
|
| 95 | -The report will start on Thursday, and close by the end of that week |
|
| 96 | -Wednesday. You have between the open and close of a reporting period to |
|
| 97 | -perform your recognized participation activities. |
|
| 98 | - |
|
| 99 | -## WEEKLY POINT REQUIREMENTS |
|
| 100 | - |
|
| 101 | -Following will be a list of participation point tallies you will need to |
|
| 102 | -accumulate in a given week to get full credit: |
|
| 103 | - |
|
| 104 | -| week | report | opens on | closes | total points needed | |
|
| 105 | -| NUM | NAME | | on | | |
|
| 106 | -| ---- | ------ | -------- | -------- | ------------------- | |
|
| 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 | |
|
| 121 | - |
|
| 122 | -There are no make-ups. If you miss performing an activity, you can either |
|
| 123 | -make up the credit by other participation activities, or even make up for |
|
| 124 | -lost credit with bonus points in other weeks. |
|
| 125 | - |
|
| 126 | -## VIEWING YOUR CURRENT WEEK PARTICIPATION REPORT |
|
| 127 | - |
|
| 128 | -The sanctioned participation activities, when performed, leave a digital |
|
| 129 | -trail, which I capture. |
|
| 130 | - |
|
| 131 | -The spirit of this activity is that you are making genuine and honest |
|
| 132 | -contributions to participation each and every week. |
|
| 133 | - |
|
| 134 | -### USING WCP |
|
| 135 | - |
|
| 136 | -If you are within the report window for a particular week (say, week1, so |
|
| 137 | -the `wcp1` participation report is active), you can view your report |
|
| 138 | -using the `wcp` tool. |
|
| 139 | - |
|
| 140 | -It takes 2 arguments: |
|
| 141 | - |
|
| 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) |
|
| 144 | - |
|
| 145 | -And you can do so as follows (replace 'DESIG' with your lowercase class |
|
| 146 | -designation, for the appropriate week): |
|
| 147 | - |
|
| 148 | -``` |
|
| 149 | -lab46:~$ wcp DESIG wcpNUM |
|
| 150 | -``` |
|
| 151 | - |
|
| 152 | -This should bring up the current report, displayed to STDOUT in your |
|
| 153 | -lab46 terminal. |