Cycle types

Re: Cycle types

Postby smokie treats » Mon Nov 27, 2017 12:14 am

I definitely have 158 of ABAABA. Out of 1,953 combinations, 1,825 have at least 6 symbols count, and out of those I have 158 ABAABA.
User avatar
smokie treats
 
Posts: 1620
Joined: Thu Feb 19, 2015 1:34 pm
Location: Lawrence, Kansas

Re: Cycle types

Postby smokie treats » Mon Nov 27, 2017 1:30 am

It looks like there could be some cycles that are regular, and some palindromic. At least when looking at shorter ngrams. Then when going to 6-grams and 7-grams, not as much. Maybe there is something else happening making it look like regular and palindromic.

None of the highest scoring patterns include P1 repeats.

Thanks a lot for doing this.

AZdecrypt cycle ngram stats for: 340.txt
--------------------------------------------------------

3-symbol cycles, 3-grams, sigma:
--------------------------------------------------------
ABC: 14.37 consistent with regular
BCB: 7.38
BCA: 6.55
BAA: -6.30
BBA: -5.72
ABA: 5.15
AAA: -5
BAC: 4.19
AAC: -3.84
ACC: -3.80

3-symbol cycles, 4-grams, sigma:
--------------------------------------------------------
ABCB: 12.77 consistent with palindromic
ABCA: 12.41 consistent with regular

ABAC: 9.64
BCBA: 6.57
BCAB: 6.54
BCBC: 5.62
BCAC: 5.31
BACA: 5.23
BAAA: -4.94
AAAB: -4.78

3-symbol cycles, 5-grams, sigma:
--------------------------------------------------------
ABCAB: 12.34 consistent with regular
ABCBA: 12.33 consistent with palindromic

ABCBC: 10.87
ABCAC: 10.45
ABACA: 10.32
ABACB: 8.30
ABCAA: 8.17
ABABC: 7.71
BCBAB: 6.41
BCABA: 6.31

3-symbol cycles, 6-grams, sigma:
--------------------------------------------------------
ABCABA: 12.14
ABCABC: 12.09 consistent with regular
ABCBAC: 11.14
ABCBAB: 11.01 consistent with palindromic
ABCAAC: 10.38
ABCBCB: 10.09
ABCACA: 9.71
ABCBCA: 9.48
ABACAB: 9.40
ABCACB: 9.25

3-symbol cycles, 7-grams, sigma:
--------------------------------------------------------
ABCABAB: 14.35
ABACABA: 12.64
ABCABCB: 12.53
ABCABAC: 12.17
ABCAABC: 11.79
ABCACAC: 11.46
BCABABC: 10.73
ABCACBC: 10.35
ABCBAAC: 10.34
ABCBAAB: 10.04
User avatar
smokie treats
 
Posts: 1620
Joined: Thu Feb 19, 2015 1:34 pm
Location: Lawrence, Kansas

Re: Cycle types

Postby Jarlve » Mon Nov 27, 2017 4:12 am

Here are the palindromic 3-symbol cycle sigmas:

340:
- Uneven palindromic cycles: 2.73 sigma
- Even palindromic cycles: -2.87 sigma
- Good example 1: OZO/OOZO/OZOO/OZO
- Good example 2: H>OHOO>OOO>OOHO>HO <--- "H" is one of the symbols that only appears in the top and bottom 6 rows. Coincidence?

408:
- Uneven palindromic cycles: 3.44 sigma
- Even palindromic cycles: -1.33 sigma
- Good example: MD)MD)M)MD)DM)M)DM)DM)

smokie palindromic 1:
- Uneven palindromic cycles: 4.95 sigma
- Even palindromic cycles: -2.38 sigma
- Good example: 13 14 15 14 13 13 14 15 14 13 13 14 15 14 13 13 14 15 14 13 13 14 15 14 13

smokie palindromic 2:
- Uneven palindromic cycles: 8 sigma
- Even palindromic cycles: -2.10 sigma
- Good example: 22 23 24 24 23 22 23 24 24 23 22 23 24 24 23 22 23 24 24 23 22 23 24 24 23 22 23 24 24 23 22 23 24

At least it looks like the 340 is not using only palindromic cycles. The positive sigma's that are noted both belong to some correlation between regular and palindromic cycles. I still find it striking that palindromic cycles are a good fit for some of our observations. It could explain the high unigram distance and the symbols that only appear in the top and bottom 6 rows. Throw in that both palindromic ciphers of smokie have a high count of ABAABA...

smokie palindromic 1:
ABAABA: 520
AABAAB: 425
BAABBA: 362
BAABAA: 356
ABABAB: 355
ABBAAB: 350
ABAAAA: 335
AAABAA: 318
AABBAA: 306
AABAAA: 303

smokie palindromic 2:
ABABAB: 484
ABAABA: 463
BABABA: 352
AABAAB: 322
BABBAB: 318
ABABAA: 317
ABBABB: 307
ABABBA: 306
AABAAA: 282
ABBABA: 279

Anyhow, both ABAABA and ABCABAB do meet the criterea for a new cycle type:

The alternating length cycle, alternates between shorter and longer substitution cycles: 12 - 1 - 12 - 1 - 12 - 1, 123 - 12 -123 - 12 - 123.
User avatar
Jarlve
 
Posts: 2544
Joined: Sun Sep 07, 2014 9:51 am
Location: Belgium

Re: Cycle types

Postby smokie treats » Mon Nov 27, 2017 7:03 am

None of the highest scoring patterns have P1 repeats, so that could mean that if he used pattern(s) to encode, he was always shifting to the left or to the right in the homophone group.
User avatar
smokie treats
 
Posts: 1620
Joined: Thu Feb 19, 2015 1:34 pm
Location: Lawrence, Kansas

Re: Cycle types

Postby doranchak » Mon Nov 27, 2017 9:51 am

Jarlve wrote:Could you test this cipher (randomized plaintext) versus your manipulations and how it performs versus the 340?


z408:
jarlve nonrepeat 1: 5398
jarlve nonrepeat 2: 1148
pcs2: 884.93
pcs3: 418.90
jarlve m_2s_cycles: 2855.73
mean l2 sigma: 0.68

top 10 l2 isomorphic sequences (7grams) (10000 shuffles):
sequence count sigma
ABABABA 847.0 18.160410490244395
ABABBAB 480.0 11.674731469887355
ABAABAB 449.0 10.47899064531154
ABABAAB 456.0 10.436563335049671
ABABABB 402.0 8.693854286878198
ABBABAB 359.0 6.803592600362547
ABAABAA 319.0 5.941097321958316
AABABAB 318.0 5.360052729929763
ABAAABA 264.0 3.689005886061989
AABABAA 258.0 3.5331651626542886

top 10 l3 isomorphic sequences (7grams) (1000 shuffles):
sequence count sigma
ABCABCA 7869.0 24.999408939873156
ABCABCB 5103.0 18.31161522287286
ABCABAC 5105.0 17.423795588897878
ABCABAB 4287.0 16.934268075188402
ABCACBA 5012.0 16.924564555671292
ABCBACB 4667.0 15.704623454855238
ABCACAB 3822.0 14.330678138619596
ABACBAC 4312.0 14.288163211594838
ABABCAB 3691.0 13.841908057853795
ABACBAB 3701.0 12.904196365222267

z340:

jarlve nonrepeat 1: 4462
jarlve nonrepeat 2: 1599
pcs2: 247.85
pcs3: 62.36
jarlve m_2s_cycles: 2150.72
mean l2 sigma: 0.21

top 10 l2 isomorphic sequences (7grams) (10000 shuffles):
sequence count sigma
ABABABA 222.0 5.844441900977058
ABAABAA 220.0 5.242584748143618
ABAAABA 206.0 4.686882212721511
ABAABAB 162.0 4.272889915964004
ABABABB 150.0 3.519110242921718
AABAABA 187.0 3.4713584344638413
ABBABAB 147.0 3.2571199850212813
ABABAAB 145.0 3.126041816538682
ABABBAB 143.0 3.1028297955864357
ABABAAA 174.0 2.7589370221075473

top 10 l3 isomorphic sequences (7grams) (1000 shuffles):
sequence count sigma
ABCABAB 2461.0 8.926730621293041
ABACABA 2766.0 8.40224787183702
ABCBABA 2114.0 8.233752259265382
ABCACAC 2009.0 7.5333040117787755
ABACACA 2052.0 7.1840977681889875
ABCABCB 1945.0 6.2928693053865725
ABCBCAB 1788.0 6.246731527314625
ABACBAA 2016.0 6.139898905150641
ABCACAB 1780.0 6.108294272001644
ABCBCBA 1613.0 6.071643626247204

z340_best_l2 (row swaps):

jarlve nonrepeat 1: 4282
jarlve nonrepeat 2: 1600
pcs2: 271.57
pcs3: 100.25
jarlve m_2s_cycles: 2259.03
mean l2 sigma: 0.43

top 10 l2 isomorphic sequences (7grams) (10000 shuffles):
sequence count sigma
ABABABB 211.0 7.284436463918963
ABABABA 251.0 7.255567407863404
ABABAAB 205.0 6.853767465748607
ABABBAB 199.0 6.6383056463038415
ABAABAB 197.0 6.41323208669507
ABBABAB 196.0 6.354607427133724
ABAABAA 213.0 4.849364869570157
AABABAB 165.0 4.449153862529498
AABABAA 203.0 4.419034448049142
AABAABA 194.0 3.8002611171179503

top 10 l3 isomorphic sequences (7grams) (1000 shuffles):
sequence count sigma
ABACBAC 3168.0 12.417222932771136
ABACABC 2750.0 11.554946729038372
ABCABAC 3018.0 11.303875519396565
ABCABCB 2781.0 10.332438896245305
ABCABCA 3202.0 10.310879550150656
ABCBACB 2716.0 9.948564067712669
ABCACAB 2279.0 9.223538691010296
ABCBABC 2389.0 8.921247750208773
ABCACBA 2481.0 8.413720617150371
ABCABAB 2282.0 8.3308385320091

jarlve's test cipher (randomized plaintext):

jarlve nonrepeat 1: 4093
jarlve nonrepeat 2: 2003
pcs2: 312.40
pcs3: 112.04
jarlve m_2s_cycles: 2202.52
mean l2 sigma: 0.26

top 10 l2 isomorphic sequences (7grams) (10000 shuffles):
sequence count sigma
ABABABA 288.0 8.524716890351055
ABABBAB 185.0 5.507408204578285
ABAABAB 173.0 4.771743952649954
ABAABAA 199.0 4.681375174729873
ABBABAB 170.0 4.421203972363935
ABAAABA 185.0 4.001828924979649
AABABAB 156.0 3.6420645472411346
AABAABA 167.0 2.910816918300106
ABABABB 143.0 2.761432443052834
ABABAAB 136.0 2.376032934176464

top 10 l3 isomorphic sequences (7grams) (1000 shuffles):
sequence count sigma
ABABCAB 2422.0 8.388144656829617
ABACBAB 2397.0 7.73510886675375
ABACABA 2440.0 7.660785792506601
ABCABAB 2291.0 7.574971844814827
ABCACAC 2076.0 7.456349879881403
ABABACB 2071.0 7.3535018703724555
ABABABC 1947.0 6.181813607710258
ABCBCBC 1794.0 5.59628400253989
ABABABA 2055.0 5.4425898366215115
ABCACAB 1859.0 5.341126391015531
User avatar
doranchak
 
Posts: 2360
Joined: Thu Mar 28, 2013 5:26 am

Re: Cycle types

Postby smokie treats » Mon Nov 27, 2017 1:52 pm

I sorted all of the L=2 patterns, regardless of length. Here is the section from ABAAB to ABAABAABAAB. There are normally a couple or a few in this range, but there are spikes with the ABAABA pattern. The ones on the bottom, the longer ones, If they were L = 2, then they would be good candidates for B, C, F, G, M, P, U, W, or Y.

If some of the ones on the top are parts of true cycles, then there may be several more symbols involved.

cycle chunks 11.27.17.png
You do not have the required permissions to view the files attached to this post.
User avatar
smokie treats
 
Posts: 1620
Joined: Thu Feb 19, 2015 1:34 pm
Location: Lawrence, Kansas

Re: Cycle types

Postby Jarlve » Mon Nov 27, 2017 6:23 pm

smokie treats wrote:None of the highest scoring patterns have P1 repeats, so that could mean that if he used pattern(s) to encode, he was always shifting to the left or to the right in the homophone group.

What do you mean with P1 repeats? Please illustrate.

smokie treats wrote:The ones on the bottom, the longer ones, If they were L = 2, then they would be good candidates for B, C, F, G, M, P, U, W, or Y.

If some of the ones on the top are parts of true cycles, then there may be several more symbols involved.

I do not understand at all smokie.

@doranchak, you said that the cycles in the 340 are easily improved by simple manipulations, I was wondering if my cipher would have the same result.

What do you mean by isomorphic sequences? Are these not just cycle ngrams?

For the 408, you list a 24.99 sigma for "ABCABCA 7869.0 24.999408939873156" while on my list it is "ABCABCA: 36.98". Where does this difference come from. Do you randomize the cipher or the cycles?
User avatar
Jarlve
 
Posts: 2544
Joined: Sun Sep 07, 2014 9:51 am
Location: Belgium

Re: Cycle types

Postby smokie treats » Mon Nov 27, 2017 7:19 pm

Jarlve wrote:
smokie treats wrote:None of the highest scoring patterns have P1 repeats, so that could mean that if he used pattern(s) to encode, he was always shifting to the left or to the right in the homophone group.

What do you mean with P1 repeats? Please illustrate.


Looking at the 3 symbol cycles that scored highest, there are very few that have period 1 repeats. Example:

3-symbol cycles, 7-grams, sigma:
--------------------------------------------------------
ABCABAB: 14.35
ABACABA: 12.64
ABCABCB: 12.53
ABCABAC: 12.17
ABCAABC: 11.79
ABCACAC: 11.46
BCABABC: 10.73
ABCACBC: 10.35
ABCBAAC: 10.34
ABCBAAB: 10.04

The blue ones repeat A at period 1, but the highest scoring 7 grams do not have that. Each consecutive symbol is different. So, if he had a key that looked something like this:

E 1 2 3 4 5 6
T 7 8 9 10
O 11 12 13 14
A 15 16 17 18
I 19 20 21 22
N 23 24 25
H 26 27 28 29
S 30 31 32 33
R 34 35 36
D 37 38 39
L 40 41 42
U 43 44
C 45 46
W 47 48
M 49 50
G 51 52
Y 53 54
F 55 56
P 57 58
B 59 60
V 61 62
K
X
Z
Q 63
J

Each symbol selection he would move to the left or right, but not repeat a symbol. If he was encoding E, then he didn't stay on one symbol and repeat. He would move to the left or right, but not stop, repeat, then change direction. That would be consistent with your idea that he was trying not to repeat symbols by row. Rather, instead of avoiding repeats by row, he kept shifting to the right or left, but didn't stop and make a period 1 repeat. It's just an idea, but could explain what you were talking about, not repeating symbols by row. Always shifting left or right would make it look like that. Just an idea, maybe too soon to say.

And by far the majority of 3 symbol cycles do not have any period 1 unigram repeats.

Jarlve wrote:
smokie treats wrote:The ones on the bottom, the longer ones, If they were L = 2, then they would be good candidates for B, C, F, G, M, P, U, W, or Y.

If some of the ones on the top are parts of true cycles, then there may be several more symbols involved.

I do not understand at all smokie.


I counted the symbols, and used frequencies. The count of symbols makes these, if an ABAABA cycle, likely candidates for the above letters. Again, too soon to really say. But it is interesting to me that the patterns with the spikes are made up of the building block ABAABA.
User avatar
smokie treats
 
Posts: 1620
Joined: Thu Feb 19, 2015 1:34 pm
Location: Lawrence, Kansas

Re: Cycle types

Postby doranchak » Mon Nov 27, 2017 8:29 pm

Jarlve wrote:@doranchak, you said that the cycles in the 340 are easily improved by simple manipulations, I was wondering if my cipher would have the same result.

Oh! OK. I should dust off my hillclimber and give it a try. :)

Jarlve wrote:What do you mean by isomorphic sequences? Are these not just cycle ngrams?

To me an isomorphism is like an equivalence category.

Cycles DEFDEF and XYZXYZ are isomorphic because they can both be represented by the new sequence ABCABC.
So, multiple cycles can be included in this same "category" or isomorphism. It is a mathematic term that I'm probably not using correctly.

Jarlve wrote:For the 408, you list a 24.99 sigma for "ABCABCA 7869.0 24.999408939873156" while on my list it is "ABCABCA: 36.98". Where does this difference come from. Do you randomize the cipher or the cycles?

I randomize the cipher. My methodology has these possible differences from yours which may account for the different results:

1) I count all substrings of length 7 in all the sequences. For example, ABCABCABC has substrings ABCABCA, BCABCAB, and CABCABC which are each counted.
2) Additionally, when considering substrings, I recompute the isomorphism. For example, "BCABCAB" is converted back to "ABCABCA".

I don't yet know if my steps are necessarily beneficial or detrimental to this analysis. Perhaps I am over-counting certain kinds of sequences. But my intent was to catch patterns where the prefixes of the sequences tend to be random but the "real" patterns appear somewhere inside the sequences.
User avatar
doranchak
 
Posts: 2360
Joined: Thu Mar 28, 2013 5:26 am

Re: Cycle types

Postby Quicktrader » Tue Nov 28, 2017 3:14 am

Odds to find all cycles for the ETAOIN homophones looks approximately like this (depending on the amount of homophones used for each letter):

For ETAOIN as

8 out of 63
7 out of 55
6 out of 48
5 out of 42
5 out of 37
4 out of 32

the odds are

1 : 3,872,894,697
1 : 202,927,725
1: 12,271,512
1 : 850,668
1 : 435,897
1 : 35,960

leading us to the previous being multiplicated

1.285 e+41

thus only a few hundred sextillion attempts to find the correct configuration..for the six most frequent letters only..

This is way worse than Powerball lottery..one might focus on letters with less homophones, however, which could still make sense (e.g. finding the homophones for the letters YOU), just wanted to comment on that before someone starts to crash his calculation with some memory error :D

QT
*ZODIACHRONOLOGY*
User avatar
Quicktrader
 
Posts: 2384
Joined: Mon Apr 01, 2013 11:23 am
Location: Vienna, Austria (Europe)

PreviousNext

Return to Zodiac Cipher Mailings & Discussion

Who is online

Users browsing this forum: Goodkidmaadtoschi, Shawn, tGkTcy2W9B4p60o and 42 guests

cron