bliss United States
Member #176,317
July 31, 2016
22,521 Posts
Offline
Quote: Originally posted by parlayman on Jun 30, 2024
If I can figure out how to do something by hand, I can do it with code. All through this, my ace in the hole has been a scheme for scoring pairs of numbers with a relative address for each digit plus a number for how far apart the numbers in the pair are. That's the code I just finished. Now I can sort on the addresses and then search for same address AND the same pair. If I can find a TRIPLET of those then that's a potential tripleT OF Jonny pairS to check. The final check is on the relative location of the pairs. Are they the same distance apart (or maybe one off) from each other? I just did this part by hand and my algorithm worked (woo hoo!) on three pairs that are exactly the same number apart. That's a Jonny pair TRIPLET from one of the exampleS Nodda posted about. I just need to code the last part and then I'll have a working program to tune up and add features like check for that one-off relative distance case. I'm exhausted. I'm going to stop for tonight, but the finish line is finally in sight!
"Now I can sort on the addresses and then search for same address AND the same pair."
That's not precisely what I meant. I meant to make it clear that I am searching forward for a P3 number in about the correct location which contains a pair that agrees with the the pairs that came before. For example, in the case of Connecticut, I's referring to the 4 and the 7 in 475 which are pointed to by the 4 and the 7 above. It's the relative location of the 4 and th 7 that are key to the workup because that's the exact same relative location that the 8 and the 6 and the 0 and the 1 fall in relative to their target numbers, 865 and 012 respectively.
This is sort of hard to explain. I can't wait to start cranking out actual charts so I can show what I mean.