1000 automatically generated exercises with n-gram grammars
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}ab,{\rtimes}bb,aab,aba,abb,baa,bbb,bb{\ltimes},b{\ltimes}{\ltimes}\}\)
- aab
- bb
- abb
- bbb
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,abd,caa,cba,dad,dcc,ddc\}\)
- cba
- dabcdbcd
- dcdbacac
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaac,abaa,abba,abbb,cabb,cbab\}\)
- \(\varepsilon\)
- b
- bcccccca
- bcaa
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,acba,adac,beca,cbdb,cecb,dacd,ebcd\}\)
- d
- deddbed
- baeeedd
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}d,ba,cc,cd,db,dc,a{\ltimes}\}\)
- cabd
- dba
- edced
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}bd,{\rtimes}{\rtimes}da,{\rtimes}da{\ltimes},{\rtimes}bdb,{\rtimes}bcc,accc,bcca,cacc,ccac,cccd,ccdb,cdbc,bdb{\ltimes},dbc{\ltimes},db{\ltimes}{\ltimes},bc{\ltimes}{\ltimes},da{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- bdb
- dd
- da
- cca
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bab,ccb,dac,dba,dbd\}\)
- acab
- bbbdcbba
- d
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,da,de,ed,ee\}\)
- \(\varepsilon\)
- cbab
- e
- bebbec
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}bbb,{\rtimes}b{\ltimes}{\ltimes},aabb,abbb,baab,bbaa,bbba,bbbb,bbb{\ltimes},bb{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- aabb
- b
- aab
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{adc,bdb,bdd,cad\}\)
- baabdd
- bca
- bbaddcb
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}bc,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}bcc,bcbc,bccb,bcdc,bddb,cbcd,cbdd,ccbd,dbcb,ddbc,cdc{\ltimes},dc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- dbaddcdcaaa
- cad
- d
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}a{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ab,{\rtimes}bb,aaa,aab,aba,baa,bab,bba,ab{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- bbabbab
- aabaabbb
- \(\varepsilon\)
- baba
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aba,abb,bab,bba\}\)
- baabb
- baa
- \(\varepsilon\)
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ae,cc,cd,dd,ec\}\)
- daaaeb
- dee
- e
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aac,abc,acb,baa,bab,bca,cbb\}\)
- b
- \(\varepsilon\)
- bc
- aac
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}ab,{\rtimes}ba,aba,abb,acb,bab,bac,bba,bbb,bbc,cbb,bc{\ltimes},ba{\ltimes},c{\ltimes}{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- cccc
- baabbacab
- b
- cab
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acbd,bdbc,cadd,cbab,cbcc,ccca,cdcc,ddca\}\)
- cdab
- c
- \(\varepsilon\)
- bcc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}c,{\rtimes}c{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}cc,aba,acb,bab,bac,bba,bbb,bca,cbb,cbc,ccb,ca{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- bacbccca
- c
- abcbcbccbb
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abb,bad,bbd,bda,dca,dcb,dcd,dda\}\)
- dcccda
- a
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{adaa,baaa,bbdc,caab,ddad\}\)
- \(\varepsilon\)
- bbddada
- cacccbad
- abba
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{adab,cccb,cccc,dccc,dcdd\}\)
- \(\varepsilon\)
- bbadbcd
- b
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{bebb,cbce,cddb,ebaa\}\)
- bbbede
- e
- \(\varepsilon\)
- dea
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}dc,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}cc,{\rtimes}{\rtimes}ad,{\rtimes}cca,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}dc{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}ada,aada,abdd,adab,caad,ccaa,dabd,bdd{\ltimes},ada{\ltimes},dc{\ltimes}{\ltimes},dd{\ltimes}{\ltimes},da{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- cbccbad
- \(\varepsilon\)
- ccc
- ba
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abc,acc,bad,cac,ccd,daa,dbb,dda\}\)
- dcbddbdd
- bdccab
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}bb,aca,ada,bac,bba,bbb,cad,dad,ad{\ltimes},d{\ltimes}{\ltimes}\}\)
- cbabbaba
- bbbacad
- \(\varepsilon\)
- bbacad
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{bacd,bbdd,cbba,ccbb,cccb,dabc,dbbc\}\)
- cd
- dca
- \(\varepsilon\)
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,caa,cab,cba\}\)
- cbccaaa
- c
- cc
- bcbcb
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}d{\ltimes},{\rtimes}{\rtimes}ca,{\rtimes}cab,{\rtimes}d{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},abcd,bcdc,cabc,cdcc,dcca,cca{\ltimes},ca{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes}\}\)
- abcb
- aaacd
- acdbcddb
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ba,bc,cb,da,dc,eb\}\)
- acc
- bd
- dcbec
- aecbdce
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}aaa,{\rtimes}acc,{\rtimes}bc{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},accb,bcbb,cbcb,ccbc,aaa{\ltimes},cbb{\ltimes},aa{\ltimes}{\ltimes},bc{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- bbac
- aababc
- cbbbc
- ccc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,bd,cc,da,db,dc,dd\}\)
- bdddcdcb
- \(\varepsilon\)
- acacbaab
- ddb
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}db,{\rtimes}{\rtimes}bd,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}db{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}bdb,acbd,bacb,bdba,bddb,cbdd,dbac,ddbb,dbb{\ltimes},db{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- abb
- ddc
- aacddddc
- b
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{baaa,baba,bbaa,bbab,bbbb\}\)
- bbbabaabaaab
- bbaa
- bbaababbb
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,abba,bbce,ddea,dded,ecde,edbd,eeee\}\)
- acbb
- b
- e
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}aa,{\rtimes}aae,{\rtimes}aca,aaec,aeac,aece,cedd,daea,ddae,eced,edda,aca{\ltimes},eac{\ltimes},ac{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- dd
- aca
- cbaabbccd
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{caae,cbdb,ccdb,cdce,dceb\}\)
- b
- d
- \(\varepsilon\)
- e
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,aba,abb,baa,bab,bba,bbb\}\)
- aaabbba
- bbbbaab
- \(\varepsilon\)
- baababa
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaba,abaa,baaa,bbba,bbbb\}\)
- \(\varepsilon\)
- babba
- aa
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aabb,abbb,baab,bbaa,bbab,bbbb\}\)
- ab
- baba
- bbbab
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abaa,abab,abba,babb,bbab,bbbb\}\)
- a
- abbaaaaa
- \(\varepsilon\)
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ad,bb,bc,ca,cb,cc\}\)
- cb
- bc
- cabbabbba
- bcbc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}be,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}d{\ltimes},{\rtimes}d{\ltimes}{\ltimes},{\rtimes}bec,{\rtimes}ac{\ltimes},becd,cdce,ecdc,dce{\ltimes},ce{\ltimes}{\ltimes},ac{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes}\}\)
- d
- ab
- abbbe
- bb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}acb,aaab,acaa,acba,baca,caaa,cbac,aab{\ltimes},ab{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- cabcaa
- a
- cbbcccaa
- bbaca
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes},{\rtimes}ca,aab,aba,abc,bab,bca,caa,cab,ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- bbcacbb
- b
- bcbbbbc
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}ca,abb,bbc,bca,cab,ab{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- a
- cab
- ccab
- cbbca
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abaa,bedd,cbbd,cbca,dbcb,eeec\}\)
- ddadbda
- ecc
- eaebdea
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,abb,bab,bba,bbb\}\)
- \(\varepsilon\)
- ababa
- a
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}ab,abc,aca,bac,bcb,cba,ca{\ltimes},a{\ltimes}{\ltimes}\}\)
- cabaca
- bcbcb
- \(\varepsilon\)
- aabcabb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\ltimes},{\rtimes}c{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ee,aad,ada,dad,eaa,eea,ad{\ltimes},d{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- dbdad
- edad
- daccac
- adbe
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bec,cab,cad,cdb,ceb,daa,ebb\}\)
- b
- ed
- e
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aec,bae,bcc,cee,eae,eba\}\)
- b
- abee
- cbcbddca
- dbacc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}eb,{\rtimes}{\rtimes}ce,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}cec,{\rtimes}eb{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},bdce,cbdc,ccbd,cecc,ceee,dcee,eccb,eee{\ltimes},eb{\ltimes}{\ltimes},ee{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- eb
- \(\varepsilon\)
- aaeaedabd
- bee
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,bc,cc,cd,db,b{\ltimes}\}\)
- \(\varepsilon\)
- a
- dacb
- dadcaa
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}b,{\rtimes}cb,{\rtimes}db,{\rtimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes},aba,bbd,bdb,bee,dbb,dbe,eab,eea,cb{\ltimes},ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- cb
- \(\varepsilon\)
- dbddaee
- b
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,{\rtimes}e,bd,ce,db,dc,ed,e{\ltimes},b{\ltimes}\}\)
- b
- eaa
- \(\varepsilon\)
- adaac
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aca,bac,bca,cba,ccc\}\)
- ca
- abcccaa
- acbc
- bcba
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,ba,bc,cb,cc\}\)
- \(\varepsilon\)
- cccbcbac
- abcbcabbbb
- cbbbacacc
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}cc,{\rtimes}{\rtimes}bc,{\rtimes}cca,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}bcb,adcd,cadc,ccad,dcdc,cdc{\ltimes},bcb{\ltimes},dc{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- d
- dcadb
- bcd
- \(\varepsilon\)
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}ca,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}bcb,{\rtimes}ca{\ltimes},{\rtimes}aca,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes}{\ltimes},acad,adad,adcc,cada,dadc,dcc{\ltimes},bcb{\ltimes},cb{\ltimes}{\ltimes},cc{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- aabacbdb
- b
- aca
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ab,{\rtimes}b{\ltimes},{\rtimes}ba,aab,abc,baa,bca,bcc,caa,ccc,ab{\ltimes},cc{\ltimes},b{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- abbbcca
- bbab
- acaacc
- ccbbcca
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaac,babc,caaa,cbab,cbcc\}\)
- caacac
- cab
- \(\varepsilon\)
- abcab
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}cb,{\rtimes}ca,abb,aca,cab,cac,bb{\ltimes},cb{\ltimes},b{\ltimes}{\ltimes}\}\)
- cb
- cabb
- abccb
- bac
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}ab,{\rtimes}aba,{\rtimes}aaa,{\rtimes}ab{\ltimes},aaba,aabb,abaa,abba,baab,bbaa,baa{\ltimes},aaa{\ltimes},ab{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- abaa
- \(\varepsilon\)
- aaa
- ab
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,ab,ac,ba,bb,bc,ca,cb,cc,a{\ltimes},b{\ltimes}\}\)
- ab
- a
- bbabbbbcca
- acb
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,cc,db,dc\}\)
- ddc
- ddaa
- dabdaa
- aaacbcc
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}c,aa,ab,bb,bc,ca,cb,a{\ltimes},c{\ltimes}\}\)
- c
- \(\varepsilon\)
- a
- cbcbb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}aba,{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaba,aabb,abaa,abab,baab,baba,aba{\ltimes},abb{\ltimes},ba{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- babbbbaba
- bbbb
- aba
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ba,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}b{\ltimes}{\ltimes},{\rtimes}baa,aaab,aabb,abbb,baaa,bbaa,bbba,baa{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- aaabbbbbb
- \(\varepsilon\)
- babbbaaaa
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}bb,bac,bbc,bcb,cba,ac{\ltimes},b{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- bcca
- cb
- c
- b
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bac,bcb,cab,cac,cca,ccb\}\)
- acaaaaa
- baccab
- \(\varepsilon\)
- ab
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,abe,bcc,cab,dca,edb,eea\}\)
- dbbe
- cebbbccebb
- cbdbbee
- e
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abe,ada,adc,aed,cad,cea,deb\}\)
- \(\varepsilon\)
- b
- ebbca
- daabeea
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,abab,abbb,baab,bbba,bbbb\}\)
- ba
- \(\varepsilon\)
- b
- bb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{acb,bab,bbb,bbc,cac,cba,cbc\}\)
- bccbbc
- \(\varepsilon\)
- b
- cccbaaca
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}ea,{\rtimes}ead,{\rtimes}{\ltimes}{\ltimes}{\ltimes},adbe,becc,ccea,cead,dbec,eadb,ecce,adb{\ltimes},db{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- eabcc
- e
- adbabdaa
- ebaadcedae
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,ac,ca,cc,c{\ltimes}\}\)
- a
- bbcb
- caabaccc
- c
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,aba,baa,bba,bbb\}\)
- bba
- \(\varepsilon\)
- b
- abbbab
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aabb,abab,abbb,baab,bbbb\}\)
- \(\varepsilon\)
- abbbab
- bbaaaaa
- aaaaaaaa
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,bc,cc,cd,da,db,dc,dd\}\)
- bbc
- abad
- abbacab
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abb,abc,acc,bbc,cab,cbb,cbc,ccc\}\)
- cccc
- \(\varepsilon\)
- aaca
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aad,abc,bbd,bda,bdc,dad,dcb,dcc\}\)
- bacc
- cd
- aa
- adcc
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}e,ad,ba,bb,bc,cb,de,eb,ec,b{\ltimes}\}\)
- eddcddce
- eddcdab
- abbcaeeaba
- c
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}d,ab,bc,cd,da,dd,d{\ltimes}\}\)
- \(\varepsilon\)
- dc
- cb
- bbaada
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,aa,ab,ac,ba,bc,ca,cb,cc,c{\ltimes}\}\)
- cabc
- aa
- bbb
- aaabbaaa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{cabe,cdaa,cdca,cddc,cecc,dddd\}\)
- ade
- dc
- aeda
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}d,{\rtimes}a{\ltimes},{\rtimes}dd,{\rtimes}cc,aad,aca,adb,bac,cad,daa,dba,dda,ad{\ltimes},cc{\ltimes},d{\ltimes}{\ltimes},c{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- a
- dbdbc
- dcacbdbcdc
- cc
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}c{\ltimes},{\rtimes}ba,abc,aee,bae,dab,dda,edd,eed,bc{\ltimes},c{\ltimes}{\ltimes}\}\)
- dbcba
- c
- cdae
- dded
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}bcb,{\rtimes}cbc,{\rtimes}{\ltimes}{\ltimes}{\ltimes},babb,bbab,bbba,bbbb,bcbb,cbbb,cbc{\ltimes},abb{\ltimes},bc{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- cacb
- baccccca
- aac
- abcaabcb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aca,bac,bba,bbd,bcd,dcb,dcc\}\)
- \(\varepsilon\)
- b
- cbddddd
- dda
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aca,bbc,beb,ceb,cee,dde,ded\}\)
- e
- \(\varepsilon\)
- b
- ec
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}ba,{\rtimes}aaa,{\rtimes}baa,{\rtimes}ba{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes}{\ltimes},aaaa,aaab,aabb,abba,baa{\ltimes},bba{\ltimes},ba{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- bbbaa
- \(\varepsilon\)
- baaa
- a
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abca,bbbc,bbcc,bcca,caaa,cbbb,ccbc,ccca\}\)
- b
- a
- \(\varepsilon\)
- abbbaabbbc
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,abb,baa,bab,bbb\}\)
- bb
- a
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes},{\rtimes}bb,{\rtimes}aa,aaa,aab,aba,baa,bb{\ltimes},aa{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- abb
- abababa
- aaabb
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,abbb,baba,babb,bbba\}\)
- baa
- abaaaa
- \(\varepsilon\)
- abbbbaaab
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abab,acce,cbae,ceee,dbba,ddcc,ecdd,edbc\}\)
- eeaecb
- aadaa
- \(\varepsilon\)
- e
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aba,baa,bab,bba\}\)
- b
- \(\varepsilon\)
- bbabaabaa
- aabbabaa
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ba,bb,cb,cc\}\)
- c
- cabaaaa
- \(\varepsilon\)
- accbaaa
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}ba,{\rtimes}aa,aab,abb,baa,bba,bbb,aa{\ltimes},ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- abbbab
- aa
- babaaa
- ba
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abab,abba,abbb,baba,babb,bbab,bbba\}\)
- b
- \(\varepsilon\)
- a
- baabbab
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,bd,cc,dd\}\)
- ab
- bcbddaba
- acadb
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abe,bbb,ccb,ddb,dde,eca,eee\}\)
- \(\varepsilon\)
- e
- b
- eb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes},{\rtimes}aa,aaa,aab,aba,abb,baa,bab,bba,aa{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- b
- baba
- aa
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{adac,adcd,cbed,eaee,ebdc\}\)
- b
- e
- cdbada
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}baa,aabb,abba,baab,baba,bbab,aba{\ltimes},ba{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- babaab
- bbbba
- ab
- abaabb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,aa,ab,ac,ba,ca,cc,c{\ltimes}\}\)
- cbc
- \(\varepsilon\)
- abcaac
- c
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{cdec,dbea,dcba,eebb\}\)
- cd
- caedbdeeb
- \(\varepsilon\)
- aaedbaeec
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,abb,caa,cba,cbb,cca,ccb\}\)
- b
- aac
- \(\varepsilon\)
- ba
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}be,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}bb{\ltimes},{\rtimes}bed,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},acdb,bede,deac,eacd,edea,cdb{\ltimes},db{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- eceab
- dacacaab
- daaeebd
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bcd,bdb,cba,cda,cdd,ced,dbb,eae\}\)
- ddaddcbda
- cdbaaaed
- ced
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aac,baa,bab,bdb,ccc,daa,dcc\}\)
- b
- a
- \(\varepsilon\)
- cabbacbdbd
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,{\rtimes}cd,abd,bab,bdc,cce,cde,cec,dcc,ecd,de{\ltimes},cd{\ltimes},e{\ltimes}{\ltimes},d{\ltimes}{\ltimes}\}\)
- deebebab
- d
- dcddcdcee
- abcdecdbc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abc,bcb,beb,cae,cbd,dcd,ebd\}\)
- ecebabce
- dbaa
- eb
- ccac
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aeb,bce,bea,dbb\}\)
- \(\varepsilon\)
- dddceed
- e
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abbb,baaa,babb,bbbb\}\)
- b
- \(\varepsilon\)
- abbbbabbb
- a
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}ab,{\rtimes}b{\ltimes},aab,abb,baa,bba,bb{\ltimes},ab{\ltimes},b{\ltimes}{\ltimes}\}\)
- aabbab
- b
- abbbaa
- aaaa
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}bb,{\rtimes}bba,{\rtimes}bb{\ltimes},{\rtimes}bbb,babb,bbab,bbba,bbbb,bba{\ltimes},abb{\ltimes},ba{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- bb
- aaaa
- bba
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,aaa,aab,aba,baa,bab,ab{\ltimes},b{\ltimes}{\ltimes}\}\)
- abaaabb
- bbbabbba
- \(\varepsilon\)
- ababbbb
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bcc,cad,ccd,cdc\}\)
- \(\varepsilon\)
- d
- dd
- bacbadb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaca,accb,bacb,cccb\}\)
- acaccbcca
- bcba
- \(\varepsilon\)
- bca
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ae,de,ea,ec\}\)
- badbbacc
- bba
- cdce
- aaa
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abda,adcb,bccc,ccca,daab\}\)
- a
- dcbb
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{adae,ccdc,cebd,dedc\}\)
- adedc
- \(\varepsilon\)
- b
- e
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}aab,aabb,abba,baaa,bbaa,aaa{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- bbbaa
- ab
- \(\varepsilon\)
- abbaba
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}ba,{\rtimes}aa{\ltimes},{\rtimes}aaa,{\rtimes}baa,aaab,aaba,abaa,baab,baa{\ltimes},aba{\ltimes},aa{\ltimes}{\ltimes},ba{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- aa
- \(\varepsilon\)
- ccc
- aacc
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,ab,ac,ad,ba,ca,de,ea,c{\ltimes}\}\)
- a
- ac
- abac
- acac
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abb,acb,bbc,ccb,cce,edc\}\)
- eede
- e
- abaed
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,ac,ad,bc,ca,cb,cc,cd,da,db,c{\ltimes}\}\)
- aacd
- bcadadbd
- ccbbb
- ac
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}d,{\rtimes}d{\ltimes},{\rtimes}ac,aab,aac,abd,aca,acb,bcd,caa,cbc,cda,daa,bd{\ltimes},d{\ltimes}{\ltimes}\}\)
- d
- acaabd
- caac
- cacacbba
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{acd,bac,bda,cbb,daa,dab,dcc,ddb\}\)
- a
- \(\varepsilon\)
- adcac
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}c{\ltimes},{\rtimes}ac,abb,aca,bbb,bbc,bcb,cab,cbb,bb{\ltimes},b{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- bbb
- \(\varepsilon\)
- ca
- abcc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ba,bb,bd,db,a{\ltimes}\}\)
- a
- aa
- dba
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abab,bacc,bccb,caaa,caba,cabb,cbcc\}\)
- \(\varepsilon\)
- cabc
- accb
- bbbaa
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abab,abba,baaa,baab,baba\}\)
- \(\varepsilon\)
- a
- b
- abbab
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acdc,addb,bddd,cbbb,dbdc,ddca\}\)
- b
- \(\varepsilon\)
- da
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,bab,bba,bbb\}\)
- abbabaaba
- \(\varepsilon\)
- baaabaab
- bbbb
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,{\rtimes}c,bc,bd,cb,cc,cd,db,dc,dd,c{\ltimes},d{\ltimes}\}\)
- dabbbca
- c
- \(\varepsilon\)
- abdbc
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aba,abb,bba,bbb\}\)
- abbbaabaa
- baaba
- bbab
- bbb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{babd,bcac,bcdb,cbbd,cdab,ddad,dddd\}\)
- adccca
- \(\varepsilon\)
- bdadcdaad
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}d,{\rtimes}ca,{\rtimes}de,{\rtimes}d{\ltimes},aba,aec,bae,cab,ced,dec,eca,ece,edc,dc{\ltimes},ca{\ltimes},d{\ltimes}{\ltimes},c{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- eadb
- eadbaebeaa
- dedb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}d,ac,bd,da,dd,de,eb,ee,c{\ltimes}\}\)
- \(\varepsilon\)
- accebcbbc
- eecdbbbebe
- beedbebece
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,cc,cd,dc,dd,c{\ltimes}\}\)
- ace
- deeda
- c
- cc
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}ba,{\rtimes}aab,{\rtimes}baa,aabb,abbb,baab,babb,bbab,bbba,aab{\ltimes},abb{\ltimes},ab{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- aabbbbb
- \(\varepsilon\)
- babb
- b
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ea,{\rtimes}ead,adbb,bbee,beee,dbbe,eadb,eddb,eedd,eeed,eeee,ddb{\ltimes},db{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- ebeeacd
- cbceced
- eba
- eadbbeeeddb
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,ac,ad,ba,cd,da,dd,a{\ltimes},b{\ltimes}\}\)
- \(\varepsilon\)
- ababdabc
- b
- ddb
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,abb,baa,bba\}\)
- \(\varepsilon\)
- abaababa
- a
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ba,bd,ca,dc\}\)
- cddbdcc
- ddd
- \(\varepsilon\)
- bba
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,abb,bbc,cca,ccc\}\)
- cbacab
- \(\varepsilon\)
- aacacab
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,ab,ba,bb,a{\ltimes},b{\ltimes}\}\)
- b
- ababbaaaa
- aaba
- bbabba
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}acb,{\rtimes}{\ltimes}{\ltimes}{\ltimes},acbd,bdca,cbdc,acb{\ltimes},dca{\ltimes},cb{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- cccdd
- b
- bacaab
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}bc,{\rtimes}bb,aac,aba,aca,baa,bab,bbb,bbc,bcc,cba,ccb,bc{\ltimes},ca{\ltimes},c{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- bc
- bbbc
- bbc
- cbabaaaab
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}ca,{\rtimes}bca,{\rtimes}cab,aaaa,aaab,aabc,abcd,bcaa,bcda,caaa,cdaa,cab{\ltimes},daa{\ltimes},ab{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- bcaaabcdaa
- dcddcca
- cab
- cdddddcbdad
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,aa,ab,ba,bb,a{\ltimes}\}\)
- abaaaa
- ba
- bbbbbbbba
- bbbbabbabb
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,aa,ac,ad,ca,cd,da,d{\ltimes}\}\)
- cd
- ca
- \(\varepsilon\)
- cad
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaac,aabc,abbc,acaa,bbcb,bcbc,cabc,cbbc\}\)
- abc
- acaccaaa
- bbbacc
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}bba,{\rtimes}a{\ltimes}{\ltimes},aaab,abba,baaa,babb,bbaa,bbab,aab{\ltimes},ab{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- abbbbaa
- baaba
- babbbb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,ba,bc,cb\}\)
- cbacc
- b
- \(\varepsilon\)
- cba
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bc,ca,cb,a{\ltimes},b{\ltimes}\}\)
- bcabccacbabb
- c
- bbccabacaacb
- bbabaa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,aca,bbd,ccd\}\)
- adbd
- abaa
- d
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}c,aa,ac,bb,bc,cb,cc,c{\ltimes}\}\)
- babd
- c
- cc
- ac
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ba,bd,cd,db,dc,dd\}\)
- \(\varepsilon\)
- accaddc
- bcac
- ddacdbada
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\ltimes}{\ltimes},{\rtimes}bc,{\rtimes}aa,abc,bab,bba,bcb,cbb,bc{\ltimes},aa{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- bc
- bab
- \(\varepsilon\)
- aa
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ba,bb,cb,cc\}\)
- \(\varepsilon\)
- ccb
- b
- a
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}a,{\rtimes}{\ltimes}{\ltimes},{\rtimes}ac,acd,ace,cdd,cec,dac,dda,ecd,cd{\ltimes},d{\ltimes}{\ltimes}\}\)
- bbdccceab
- acecd
- \(\varepsilon\)
- acd
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ad,ca,cc,db\}\)
- ea
- \(\varepsilon\)
- dbaea
- abb
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bbc,bcb,bda,bdb,cbd,ccc,dad,dcc\}\)
- bcac
- ddaacaa
- c
- aca
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ba,bb,b{\ltimes}\}\)
- abbbab
- ab
- abbbbabbb
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abcb,beba,cbdb,cddc,ceed,ceee,dcba,eadb\}\)
- e
- b
- dedc
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acab,babb,bcbb,bcca,ccca\}\)
- a
- b
- bcb
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abc,acb,dab,dad,ddb\}\)
- b
- ccdaccdca
- \(\varepsilon\)
- aadcacba
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,{\rtimes}c,ad,bd,cb,da,a{\ltimes},b{\ltimes}\}\)
- dcbbad
- bccc
- \(\varepsilon\)
- dcab
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,{\rtimes}d,aa,ab,bc,bd,cd,da,db,a{\ltimes},c{\ltimes}\}\)
- ca
- dbdc
- \(\varepsilon\)
- ddadcdbca
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,aa,ab,ba,a{\ltimes}\}\)
- aaabbaba
- a
- bba
- baaa
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,abaa,baab,bbaa\}\)
- bbbbb
- aba
- bbaa
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}ab,{\rtimes}aa,aaa,aab,aba,baa,ab{\ltimes},aa{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- abaabaaa
- ab
- bbbbaabaab
- aa
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{cb,ce,da,ea\}\)
- cbeeccadca
- e
- b
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}e{\ltimes},{\rtimes}{\rtimes}ca,{\rtimes}{\rtimes}ba,{\rtimes}cac,{\rtimes}e{\ltimes}{\ltimes},{\rtimes}ba{\ltimes},acbb,bacb,bbac,bbdc,bdcb,cacb,cbba,cbbd,dcb{\ltimes},ba{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- ba
- cacbbdcb
- e
- cbbabaacdc
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bb,b{\ltimes}\}\)
- baaaba
- bb
- baaab
- abbaabaaa
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{bd,cb,cc,cd,da,dc\}\)
- cbcdad
- \(\varepsilon\)
- b
- dcbccdabd
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,baa,bba,bbb\}\)
- \(\varepsilon\)
- b
- aabba
- aaa
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,aa,ac,ca,cc,c{\ltimes}\}\)
- aac
- acc
- cbbc
- ac
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}da,acc,acd,bac,cba,ccb,dac,cd{\ltimes},d{\ltimes}{\ltimes}\}\)
- acededeb
- bbd
- ddbecae
- cca
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}c,{\rtimes}{\ltimes}{\ltimes},{\rtimes}ca,abc,bcc,cab,cba,ccb,ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- ac
- accca
- \(\varepsilon\)
- acbbbc
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{acd,bce,bda,cab,cad,ddb,deb\}\)
- b
- e
- \(\varepsilon\)
- dee
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}ac{\ltimes},{\rtimes}cbb,{\rtimes}{\ltimes}{\ltimes}{\ltimes},abca,babc,bbcb,bcab,bcba,cabc,cbab,cbbc,abc{\ltimes},ac{\ltimes}{\ltimes},bc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- ac
- \(\varepsilon\)
- cbbcba
- ccbbcbabc
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{bcab,dabd,dacd,dbda,dcdc\}\)
- baadacbc
- abdbccddcd
- badddbdc
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ea,{\rtimes}eac,accc,ccca,cccc,eacc,cca{\ltimes},ca{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- eaccca
- cdbcce
- a
- bdc
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ba,bb,db,dc,ec,ed\}\)
- dbced
- daebcaeea
- abdaccece
- baebedaaac
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaab,aabb,babb,bbaa,bbab,bbba\}\)
- aabbaa
- \(\varepsilon\)
- babaab
- bbbb
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ac,aab,acb,baa,bba,cbb,ab{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- bba
- c
- a
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ba,bb,b{\ltimes}\}\)
- \(\varepsilon\)
- bba
- aaabaaba
- a
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abaa,abbc,bbca,bcaa,cbac,cbbc,cccc\}\)
- b
- ababcbca
- cbbcac
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}ba,aaa,aab,aba,abb,baa,bab,bba,ab{\ltimes},b{\ltimes}{\ltimes}\}\)
- baaba
- bab
- bbaaab
- baab
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}de,ace,ada,ced,dac,dda,dea,ead,edd,da{\ltimes},a{\ltimes}{\ltimes}\}\)
- ebaeceda
- daaaaaccac
- \(\varepsilon\)
- deada
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aadc,adde,bacc,bdea,cded,daea,ddcc\}\)
- bac
- bdddb
- e
- abcc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}da,aba,abb,bbe,bed,dab,eda,ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- cdccada
- d
- ab
- daba
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ab,{\rtimes}b{\ltimes},abb,bbb,bb{\ltimes},b{\ltimes}{\ltimes}\}\)
- aaa
- \(\varepsilon\)
- aab
- babaab
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}eb,{\rtimes}{\rtimes}ed,{\rtimes}ebd,{\rtimes}eda,aace,aced,cedb,daac,dbda,edaa,edbd,ebd{\ltimes},bda{\ltimes},bd{\ltimes}{\ltimes},da{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes}\}\)
- ceaee
- aacccca
- aedbb
- beeede
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,ad,bc,da\}\)
- \(\varepsilon\)
- b
- cddaa
- a
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}d{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}cc,{\rtimes}{\rtimes}cd,{\rtimes}cda,{\rtimes}d{\ltimes}{\ltimes},{\rtimes}cc{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},abbe,cdab,dabb,bbe{\ltimes},be{\ltimes}{\ltimes},cc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- d
- \(\varepsilon\)
- b
- da
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,bd,be,db,ea,ec,ed,ee\}\)
- e
- ecbaece
- b
- \(\varepsilon\)
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aaba,abba,bbba\}\)
- \(\varepsilon\)
- abababa
- b
- baaabb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aabd,acbd,baad,bbab,cbba,cddb,cddc,ddbb\}\)
- abbdacb
- cd
- bacdbaa
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}bc,aac,baa,bbc,bcb,bcd,cba,cbb,cdc,dcb,ac{\ltimes},c{\ltimes}{\ltimes}\}\)
- abdba
- abdccca
- cd
- aa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,ba,bb\}\)
- cbcabbba
- baccb
- bbc
- caccbbc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}ab,{\rtimes}bb,aab,aba,baa,bb{\ltimes},ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- aba
- bb
- c
- \(\varepsilon\)
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaed,accb,baec,dcdd,deeb,eacc,ecac,eeac\}\)
- c
- e
- b
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,acba,bbba,cbaa\}\)
- aa
- aabaac
- cabba
- bb
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abdb,baaa,bbbd,bcbb,cdbc,cddc,dbdb,dcad\}\)
- \(\varepsilon\)
- a
- b
- dbbb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,aa,ab,ac,ba,bc,ca,cb,cc,a{\ltimes}\}\)
- aaa
- ab
- a
- aa
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,{\rtimes}c,ac,ca,cc,a{\ltimes},b{\ltimes}\}\)
- accb
- bcbc
- \(\varepsilon\)
- caaac
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}abc,abca,abcb,bcab,bcbb,cabc,cbb{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- cc
- cabcba
- a
- abcbb
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ba,bd,ca,cd\}\)
- \(\varepsilon\)
- b
- a
- daacbacccc
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ad,bd,dd\}\)
- \(\varepsilon\)
- ababbbbccc
- a
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}e,aa,ab,ad,ae,be,de,ea,e{\ltimes}\}\)
- \(\varepsilon\)
- eabcccb
- baddcabece
- adbbcaad
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,abb,bcb,cbb,cbc\}\)
- acabca
- cacacccaac
- accbaacb
- cccbb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}bb,{\rtimes}ad,acb,bac,bba,bbd,bde,cbb,ad{\ltimes},de{\ltimes},e{\ltimes}{\ltimes},d{\ltimes}{\ltimes}\}\)
- caaeac
- bbde
- ad
- abb
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ae,ba,ce,da\}\)
- e
- acbaebe
- \(\varepsilon\)
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}bb,{\rtimes}aa,aab,aba,abb,baa,bab,bba,bbb,aa{\ltimes},ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- b
- aa
- bba
- aaa
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,aba,bba,bbb\}\)
- a
- \(\varepsilon\)
- b
- abbb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{adb,cac,dbd,ece,edb\}\)
- aacaaeda
- eccaed
- cddce
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{acd,bde,ccb,dea\}\)
- abbbcbecbabb
- bedbcbadae
- \(\varepsilon\)
- abcaeeeb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aabb,abaa,abbb,babb,bbab,bbbb\}\)
- aa
- \(\varepsilon\)
- a
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}d,aa,bb,be,cb,cc,ce,dc,ea,ec,a{\ltimes},d{\ltimes}\}\)
- dcea
- d
- dccea
- adcad
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aaba,abbb,baaa,babb,bbaa,bbbb\}\)
- ababa
- bbaaab
- \(\varepsilon\)
- bbaaa
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}d,{\rtimes}{\ltimes}{\ltimes},{\rtimes}d{\ltimes},{\rtimes}aa,{\rtimes}bd,bbc,bcc,bdb,cbd,ccb,dbb,aa{\ltimes},bd{\ltimes},d{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- ab
- badbad
- bd
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}d,ab,ac,ba,bb,be,ca,da,ea,a{\ltimes}\}\)
- beeee
- aca
- a
- deebaeab
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,aa,ac,bc,ca,cb,c{\ltimes}\}\)
- cbcc
- a
- bc
- ccacbca
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abab,abba,baaa,baab,babb\}\)
- bbbba
- babbab
- b
- aababb
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,aab,aba,abb,baa,bab,bb{\ltimes},b{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- aa
- ba
- aab
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aac,aca,acb,ccc\}\)
- c
- \(\varepsilon\)
- b
- ccb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aabb,abaa,baba,babb,bbab,bbbb\}\)
- aabbba
- \(\varepsilon\)
- baa
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,ba,bb,bc,ca,cb\}\)
- a
- cabb
- \(\varepsilon\)
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{baa,bab,bbd,bdc,cda,dbe,ddc,edc\}\)
- ba
- a
- adeaecadcaa
- ceead
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{add,cab,cbc,dad,dbb,dbd,dcd\}\)
- bdacbc
- b
- \(\varepsilon\)
- a
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}aba,{\rtimes}a{\ltimes}{\ltimes},aabb,abaa,baab,abb{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- abbc
- caab
- b
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{da,de,eb,ee\}\)
- \(\varepsilon\)
- e
- dcacdd
- cbdedebc
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ad,bb,cc,cd,da,dd\}\)
- \(\varepsilon\)
- bcccd
- b
- dd
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,b{\ltimes}\}\)
- bbab
- aabb
- abbaa
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ae,ba,ca\}\)
- b
- ad
- \(\varepsilon\)
- ecac
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,bc,ca,cc\}\)
- \(\varepsilon\)
- b
- acbbcc
- a
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}cb,{\rtimes}a{\ltimes},acb,bac,bca,cac,cba,cbc,cb{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- ccacaa
- baabbccc
- bccac
- cb
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,ad,ca,cc,da,db,dd\}\)
- \(\varepsilon\)
- bdbdbadcb
- dbca
- db
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}bb,aab,abd,baa,bba,bdd,daa,dda,ab{\ltimes},b{\ltimes}{\ltimes}\}\)
- deccae
- \(\varepsilon\)
- bbaab
- bbdaedbe
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}a{\ltimes},{\rtimes}bd,aba,bab,bdb,dba,ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- a
- bdba
- d
- dabca
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,ba,bb,bc,ca,cb\}\)
- bbcaa
- \(\varepsilon\)
- bcbb
- a
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,bd,cb,cc,dd\}\)
- da
- d
- ccda
- a
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,bd,ca,cd,db,dd\}\)
- dbaccabb
- ca
- cddbca
- aaa
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aacb,abac,accb,baaa,bbac,bbbb,cacc,cbab\}\)
- b
- abcc
- \(\varepsilon\)
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}a{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,{\rtimes}bb,aab,aba,abb,baa,bab,bba,ab{\ltimes},bb{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- aab
- \(\varepsilon\)
- aaabbbbabbb
- bbabbaa
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,ae,bc,ca,cd,de,eb,ec,ee,c{\ltimes}\}\)
- baccac
- aec
- ce
- aeec
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abc,aca,bab,bcb,caa,cca\}\)
- b
- caabbc
- \(\varepsilon\)
- cba
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ce,db,dc,ec\}\)
- caacbdbedab
- \(\varepsilon\)
- cbdacadd
- a
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ba,ca,cb,cd,db,dc,dd\}\)
- dcbc
- \(\varepsilon\)
- bbcbaaab
- baabbb
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,ab,bc,ca,cb,cc,a{\ltimes}\}\)
- cabcabba
- \(\varepsilon\)
- ca
- ccacca
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,{\rtimes}d,aa,ab,ad,ba,bd,da,db,b{\ltimes},d{\ltimes}\}\)
- b
- \(\varepsilon\)
- d
- dcbb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,bb,bc,bd,cb,cc,dc,b{\ltimes}\}\)
- \(\varepsilon\)
- b
- bdbabac
- dabd
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aadb,bacc,bcac,bdbd,dcca\}\)
- \(\varepsilon\)
- dccccc
- d
- bbabaaad
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\ltimes},{\rtimes}c{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ec,ade,bad,cba,ecb,de{\ltimes},e{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- e
- bec
- aaab
- dbcdcc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,ab,ba,b{\ltimes}\}\)
- \(\varepsilon\)
- abbbb
- aa
- bb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,bc,cb,cc\}\)
- \(\varepsilon\)
- b
- ccbccccc
- bcbcbacaaa
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}ca,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}bac,{\rtimes}acc,{\rtimes}ca{\ltimes},{\rtimes}b{\ltimes}{\ltimes},accc,ccca,cccc,bac{\ltimes},cca{\ltimes},ac{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- cac
- b
- cbc
- ca
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,ba,bb,cb,cc\}\)
- bbb
- a
- \(\varepsilon\)
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{baaa,baab,baba,babb,bbaa,bbba,bbbb\}\)
- aa
- \(\varepsilon\)
- a
- ab
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abcc,adad,bdaa,dacb,dbbc\}\)
- dcddcb
- bdb
- \(\varepsilon\)
- c
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abab,abba,baaa,baba,babb,bbaa\}\)
- baabab
- bb
- \(\varepsilon\)
- a
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,ab,ba,bb,b{\ltimes}\}\)
- \(\varepsilon\)
- bbabba
- bba
- aab
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,caa,dcc,dda\}\)
- \(\varepsilon\)
- b
- cdbca
- ab
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}b,{\rtimes}c{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}bc,{\rtimes}bd,aab,abc,acc,bca,bda,caa,cca,dac,ca{\ltimes},bc{\ltimes},c{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- dde
- aebbdbbcdb
- \(\varepsilon\)
- cebbaebd
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}{\rtimes}cd,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}cdb,{\rtimes}{\ltimes}{\ltimes}{\ltimes},aacd,acda,baac,cdaa,cdba,daac,dbaa,acd{\ltimes},cd{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- badddbbbdba
- dcba
- cddaaabbc
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aba,abb,bba\}\)
- \(\varepsilon\)
- b
- aabaa
- a
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,acb,bba,cca\}\)
- a
- \(\varepsilon\)
- aaaa
- b
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,aa,ab,ba,a{\ltimes}\}\)
- aa
- b
- bbaaaaab
- a
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ba,bb,bc,bd,da,db,dc\}\)
- b
- \(\varepsilon\)
- bcaa
- abdbcca
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}b,aa,ac,bc,ca,cb,cc,a{\ltimes},b{\ltimes}\}\)
- ac
- babcabb
- cacabbc
- bccaba
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,abaa,abba,baaa,babb,bbaa,bbba\}\)
- b
- \(\varepsilon\)
- aaaaa
- a
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{baac,bbba,bcab,bcbc,bccc,cccc\}\)
- abca
- \(\varepsilon\)
- aababbbb
- bcbbacba
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bba,bdb,dde,edd\}\)
- e
- cb
- cbaeebccac
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}ba,{\rtimes}bab,{\rtimes}bb{\ltimes},{\rtimes}baa,abbb,babb,bbab,bbba,bbbb,baa{\ltimes},bab{\ltimes},ab{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- bab
- baa
- bb
- a
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ae,{\rtimes}ea,ade,deb,ead,eba,ae{\ltimes},ba{\ltimes},e{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- ea
- c
- \(\varepsilon\)
- abdde
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}bb,{\rtimes}ad,ada,aec,cac,cda,dae,eca,ecd,bb{\ltimes},ac{\ltimes},b{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- aaebcba
- bb
- \(\varepsilon\)
- adaecac
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ee,{\rtimes}eeb,{\rtimes}ee{\ltimes},abba,bcdc,cdcd,cdda,dabb,dcdd,ddab,ebcd,eebc,bba{\ltimes},ee{\ltimes}{\ltimes},ba{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- ee
- bccddedcbcee
- bedbcb
- eaddab
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bb,b{\ltimes}\}\)
- bab
- \(\varepsilon\)
- abbb
- baaba
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ca,cb,cc,cd,da,dd\}\)
- e
- aaedddc
- \(\varepsilon\)
- c
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,ac,bc,ca,cc,c{\ltimes}\}\)
- aab
- bc
- ba
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ea,{\rtimes}{\rtimes}d{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}cc,{\rtimes}cca,{\rtimes}aa{\ltimes},{\rtimes}d{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}eac,acac,acba,baca,cbac,eacb,cca{\ltimes},cac{\ltimes},ac{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- aabd
- bbdabed
- d
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}b,aa,ab,ba,bb,a{\ltimes}\}\)
- \(\varepsilon\)
- abaaaaabab
- baaaaaabb
- a
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaba,abaa,bbaa,bbba\}\)
- bbbbaa
- \(\varepsilon\)
- baababb
- baa
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}ae,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}c{\ltimes}{\ltimes},{\rtimes}ab{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}aee,aeed,dded,edde,eedd,ded{\ltimes},ab{\ltimes}{\ltimes},ed{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- babedee
- cbcadbb
- \(\varepsilon\)
- cddbaa
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,ae,ba,cd,db,dd,ec,d{\ltimes}\}\)
- dabcbeca
- eaaae
- cbccdd
- cd
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\ltimes},{\rtimes}a{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ab,aac,abb,acb,baa,bba,bca,cbc,ab{\ltimes},ca{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- a
- \(\varepsilon\)
- abca
- abccbaac
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,ab,ac,bc,bd,ca,cd,da,db,dd,a{\ltimes}\}\)
- bca
- dcabdcbadd
- bcdabc
- baabbabaacc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,aa,ab,ba,bb,a{\ltimes}\}\)
- baa
- ba
- bba
- ababbb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}ca,{\rtimes}{\rtimes}ab,{\rtimes}abb,{\rtimes}ca{\ltimes},abba,babc,bbab,abc{\ltimes},bc{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes}\}\)
- aaabb
- ccc
- ca
- ac
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}cc,{\rtimes}bb{\ltimes},{\rtimes}acb,{\rtimes}ccc,{\rtimes}{\ltimes}{\ltimes}{\ltimes},abba,bbac,bbcc,bcca,cabb,cbbc,ccab,ccbb,cccb,acb{\ltimes},bac{\ltimes},ac{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- \(\varepsilon\)
- bbbbcbbcaca
- bb
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,{\rtimes}cc,aad,adc,caa,cbd,cca,dcb,ba{\ltimes},bd{\ltimes},d{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- bccdbbab
- bbac
- c
- addb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}bb,{\rtimes}bba,{\rtimes}ab{\ltimes},abab,baba,bbab,bab{\ltimes},ab{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- aba
- \(\varepsilon\)
- ab
- aa
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}{\rtimes}cd,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}cdb,abda,babd,bbab,bdad,cdbb,dadb,dbba,adb{\ltimes},db{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- dcbcdcbbc
- a
- ddccacac
- dbdda
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,bb,bc,cb,cd,da,db,dd\}\)
- \(\varepsilon\)
- aabc
- bbbb
- dbb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ba,bb,bc,ca,cb\}\)
- a
- caabaaaabcba
- \(\varepsilon\)
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aba,ada,cab,cda,dca,ddb\}\)
- d
- \(\varepsilon\)
- ddd
- cac
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bb,a{\ltimes},b{\ltimes}\}\)
- abbbabbb
- b
- abbbbb
- aaaaaabaaab
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ae,{\rtimes}{\rtimes}ec,{\rtimes}{\rtimes}d{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}bac,{\rtimes}ecb,{\rtimes}d{\ltimes}{\ltimes},{\rtimes}ae{\ltimes},acae,baca,caeb,ecb{\ltimes},aeb{\ltimes},ae{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},eb{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- ae
- \(\varepsilon\)
- b
- d
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,aca,acb,bac,bdd,cac,cbd,dd{\ltimes},d{\ltimes}{\ltimes}\}\)
- bbc
- bcdccb
- cec
- addded
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,{\rtimes}aa,aab,aba,aca,bac,caa,ab{\ltimes},ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- ba
- \(\varepsilon\)
- bb
- ccbccacb
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abba,baab,bbab,bbbb\}\)
- a
- aabb
- b
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}db,{\rtimes}{\rtimes}ea,{\rtimes}{\rtimes}d{\ltimes},{\rtimes}ead,{\rtimes}d{\ltimes}{\ltimes},{\rtimes}dbd,abde,bdda,bded,dabd,dbdd,ddab,dedc,edc{\ltimes},ead{\ltimes},dc{\ltimes}{\ltimes},ad{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes}\}\)
- cd
- eeecc
- aebceeaae
- \(\varepsilon\)
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}bc,aac,acc,bcc,caa,cca,ca{\ltimes},a{\ltimes}{\ltimes}\}\)
- acabcacb
- a
- bcca
- bac
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}d,{\rtimes}db,{\rtimes}bd,bbd,bdd,dbb,ddb,db{\ltimes},bd{\ltimes},b{\ltimes}{\ltimes},d{\ltimes}{\ltimes}\}\)
- aaadda
- \(\varepsilon\)
- db
- bd
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ac,ba,bb,cc,cd,db,a{\ltimes},b{\ltimes}\}\)
- bdccc
- bb
- bbdadbccc
- abaabbbda
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ae,cc,da,dd,ed\}\)
- cbdeda
- bddeae
- dddeb
- ecceecb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,ab,ac,bd,ca,cc,da,a{\ltimes}\}\)
- cca
- ccaccbc
- ca
- \(\varepsilon\)
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ba,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}ba{\ltimes},{\rtimes}bbb,aabb,abaa,abbb,baab,baba,bbab,bbba,bba{\ltimes},ba{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- \(\varepsilon\)
- babaabbaa
- aaaabab
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ac,ad,bb,cc,da,db,dc\}\)
- b
- dbdbd
- \(\varepsilon\)
- a
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abba,abca,bacb,cacc\}\)
- abbb
- accbbbbbac
- aac
- accabbacc
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ba,bb,ca\}\)
- ac
- a
- b
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abdb,acca,adea,ddbc,deac,eacb,ebdc\}\)
- \(\varepsilon\)
- b
- e
- abeacb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}dc,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}ca,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}ca{\ltimes},{\rtimes}c{\ltimes}{\ltimes},{\rtimes}dcc,{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaaa,caaa,ccdc,cdca,dcaa,dccd,aaa{\ltimes},aa{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- ddcb
- ccddacbbcb
- aacbacd
- abbbbdbc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}dd,aca,adb,bdd,caa,dac,dad,dbd,dda,aa{\ltimes},a{\ltimes}{\ltimes}\}\)
- acba
- \(\varepsilon\)
- caabdcaabd
- addcbbbbd
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,bab,bbb\}\)
- aaba
- a
- \(\varepsilon\)
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{baad,bdae,edaa,edee\}\)
- e
- cb
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abb,bbb,cab,cac,ccb\}\)
- b
- \(\varepsilon\)
- a
- cb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaac,bbaa,bbca,bbcc,caab,cdab,dbab\}\)
- b
- a
- dcbcbcabb
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}bb,{\rtimes}bbb,{\rtimes}cb{\ltimes},aaea,aeae,baae,bbaa,bbba,eaee,aee{\ltimes},ee{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- abeada
- aaabdaae
- dcdbea
- ecda
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,bb,bc,cb\}\)
- bba
- cbb
- \(\varepsilon\)
- c
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}bb,{\rtimes}aa{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}bbb,aabb,abbb,baab,bbaa,bbba,baa{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- abab
- abaaabbb
- bbbbb
- abbaabb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}c{\ltimes},{\rtimes}ac,aca,adc,cad,dcb,cb{\ltimes},b{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- ccadaa
- c
- cdbcb
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aacb,aada,accd,addb,dacd,dbcc\}\)
- \(\varepsilon\)
- b
- ddcaaccccbd
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ba,bb,b{\ltimes}\}\)
- ab
- aab
- bbaab
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}da,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}aaa,{\rtimes}dac,{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaad,aada,acab,adac,daca,cab{\ltimes},dac{\ltimes},ac{\ltimes}{\ltimes},ab{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- dacab
- \(\varepsilon\)
- dac
- cacd
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,aabb,abaa,abba,baba,bbaa\}\)
- b
- bababaa
- a
- \(\varepsilon\)
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bb,a{\ltimes}\}\)
- babbaabaaa
- ba
- aabaaba
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,ac,bb,bc,ca,c{\ltimes},b{\ltimes}\}\)
- bb
- b
- ccbac
- bbcbc
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}dd,acb,adc,cac,cad,cba,cca,dca,dcc,ddc,ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- ba
- adcccbddbd
- ddcacba
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,ab,ba,a{\ltimes}\}\)
- ababa
- babab
- a
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,acd,bab,bbb\}\)
- \(\varepsilon\)
- ccdd
- b
- db
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,{\rtimes}d,aa,ac,ae,ba,be,cb,ea,ec,ee,c{\ltimes},d{\ltimes}\}\)
- cacdeebde
- \(\varepsilon\)
- d
- b
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bb,a{\ltimes}\}\)
- ababaa
- \(\varepsilon\)
- abaaba
- b
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}d,ab,bb,bc,ce,da,e{\ltimes}\}\)
- dabce
- ae
- \(\varepsilon\)
- ce
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,abaa,abab,abbb,baaa,babb\}\)
- bba
- aab
- bb
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aac,bab,bbb,caa,cbb,ccb\}\)
- b
- \(\varepsilon\)
- a
- acbcacc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ac,ba,bb,bc,ca,cb,cc\}\)
- aaccaaac
- aa
- b
- ccbbbcccaac
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aac,abc,baa,cac\}\)
- b
- \(\varepsilon\)
- bbbccc
- aabbab
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abba,abca,acaa,bbaa,bbab,cabc,cccb\}\)
- bba
- a
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abcd,aebc,bade,baec,beeb,cadd,cdcb,decc\}\)
- daddcba
- b
- ad
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}bb,{\rtimes}aa,aaa,aba,baa,bab,bba,bbb,aa{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- bababbb
- bbabab
- bbb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{adb,bcd,bda,bdb,cbb,cdb,dca,dcc\}\)
- \(\varepsilon\)
- ba
- b
- dbdd
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aac,abb,bca,bcb,bcc,caa,cca,ccb\}\)
- aacc
- bcbabcaabcca
- ccc
- acaccbbacaa
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,abbc,baab,cabb,caca,ccaa\}\)
- b
- \(\varepsilon\)
- aabcacbbbccb
- acccaaabcb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,{\rtimes}e,bd,de,eb,ed,ee,e{\ltimes},b{\ltimes}\}\)
- bcbbba
- \(\varepsilon\)
- e
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,ac,ca,cc,a{\ltimes}\}\)
- aaacc
- bababcb
- a
- \(\varepsilon\)
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}db,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}dbb,{\rtimes}ab{\ltimes},{\rtimes}b{\ltimes}{\ltimes},aabd,abda,babd,bbab,bdaa,daab,dbba,abd{\ltimes},ab{\ltimes}{\ltimes},bd{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- ddaa
- ab
- ebaecacbbb
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aadd,bddd,dabb,dbbb,dcbb,ddda\}\)
- dbbdabdb
- aadbada
- db
- cbdbcd
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ba,bc,db,dc,eb,ed,ee\}\)
- b
- bc
- \(\varepsilon\)
- e
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ac,ba,bb,bc,ca,cb,cc,a{\ltimes},b{\ltimes}\}\)
- abcaab
- accaaaacaca
- aaa
- bcb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}b,{\rtimes}{\ltimes}{\ltimes},{\rtimes}be,{\rtimes}dc,aac,acc,caa,cba,cca,ccb,ccc,dcc,be{\ltimes},ba{\ltimes},e{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- be
- eddbb
- dccba
- \(\varepsilon\)
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,aa,ab,ad,bd,da,dc,dd,c{\ltimes}\}\)
- adc
- aadc
- abdc
- \(\varepsilon\)
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}bd,{\rtimes}{\rtimes}ce,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}ceb,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}aa{\ltimes},{\rtimes}bdd,{\rtimes}{\ltimes}{\ltimes}{\ltimes},aeec,bcea,cbdd,ceae,cebc,eaee,ebce,ecbd,eecb,bdd{\ltimes},aa{\ltimes}{\ltimes},dd{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- ebcdcddcba
- \(\varepsilon\)
- ba
- aeeddeabddcb
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aba,abb,bba,bbc,cbb,cca,ccc\}\)
- bbbcbbaab
- b
- a
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}ea,aad,adc,ade,caa,dca,deb,ead,ebe,be{\ltimes},e{\ltimes}{\ltimes},b{\ltimes}{\ltimes}\}\)
- ad
- adba
- caede
- b
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,acc,baa,bcc,cbb,cbc,cca\}\)
- b
- abababab
- \(\varepsilon\)
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,aa,ab,ac,ba,bd,cb,da,dd,c{\ltimes}\}\)
- cbac
- cbcbdccccb
- \(\varepsilon\)
- c
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aada,abac,abdb,bbac,cbbb,daca\}\)
- cbdaaadda
- a
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{acb,bac,bbb,bbc,cbb\}\)
- \(\varepsilon\)
- c
- accabbc
- cacca
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acaa,addd,beec,cacc,cccd,dccd\}\)
- ddedea
- \(\varepsilon\)
- e
- bacdbcaa
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}e,{\rtimes}d,ab,ba,be,cc,ce,dc,eb,ec,e{\ltimes},c{\ltimes}\}\)
- e
- ababadbb
- aeceeab
- ec
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}dd,{\rtimes}{\rtimes}de,{\rtimes}{\rtimes}d{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}ddd,{\rtimes}d{\ltimes}{\ltimes},{\rtimes}deb,{\rtimes}bc{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},abba,babb,bade,bbad,bceb,ceba,debc,ebab,ebce,ddd{\ltimes},ade{\ltimes},de{\ltimes}{\ltimes},bc{\ltimes}{\ltimes},dd{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- eaaadeceddc
- \(\varepsilon\)
- baaede
- abc
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abab,aeae,bded,dbee,ddec\}\)
- dbdeea
- d
- edaaa
- cb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abba,abbc,acab,ccbc\}\)
- aaccbac
- cacaaabc
- aaabb
- c
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},ab,ac,ad,ba,ce,ea,d{\ltimes}\}\)
- ebcc
- eb
- \(\varepsilon\)
- eeeb
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}aaa,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}bbb,{\rtimes}ba{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaab,aaba,aabb,abaa,abba,baaa,bba{\ltimes},bbb{\ltimes},ba{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- aaba
- bbaba
- bbbabb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,ab,ba,bb,b{\ltimes}\}\)
- aaababb
- bb
- baabbaa
- aabbba
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}ba,aab,aba,abb,baa,bab,bba,bb{\ltimes},b{\ltimes}{\ltimes}\}\)
- bababa
- ababa
- baaaba
- abbbbbbbb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}ca,{\rtimes}be,aba,abb,bab,bbe,bea,beb,eab,ebc,bc{\ltimes},ca{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- bca
- badb
- bebc
- ca
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}da,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}da{\ltimes},{\rtimes}dab,{\rtimes}bbe,{\rtimes}{\ltimes}{\ltimes}{\ltimes},acca,bbea,beac,cacd,ccac,eacc,acd{\ltimes},dab{\ltimes},cd{\ltimes}{\ltimes},ab{\ltimes}{\ltimes},da{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- e
- abdded
- cbdaddc
- ecdbaaebc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{bdcc,bdcd,cacd,cdab,cddc\}\)
- dbbbac
- \(\varepsilon\)
- a
- ba
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,bd,ca,dc,ed,ee\}\)
- adddbe
- ea
- e
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ba,bb\}\)
- aabbabb
- bba
- abbbbab
- aba
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}aad,{\rtimes}c{\ltimes}{\ltimes},aadd,addc,ddcd,dcd{\ltimes},cd{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- bb
- aabdb
- \(\varepsilon\)
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,baa,bab,bba,bbb\}\)
- bbbaababbb
- aaaabbbbb
- abaab
- aaabbbaaa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}db,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}dbb,bbdb,bdbd,dbbd,dbdb,bdb{\ltimes},db{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- daddaa
- \(\varepsilon\)
- d
- dcd
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}cc,{\rtimes}{\rtimes}ad,{\rtimes}cbd,{\rtimes}cc{\ltimes},{\rtimes}ada,acbd,bdac,cbda,cbdd,dacb,bdd{\ltimes},ada{\ltimes},cc{\ltimes}{\ltimes},dd{\ltimes}{\ltimes},da{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- d
- \(\varepsilon\)
- cdc
- ccaba
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,ab,ba,bc,bd,cb,cd,db,b{\ltimes}\}\)
- bbbdca
- cbadaacab
- cb
- cdddbdd
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ca,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}bab,{\rtimes}cab,{\rtimes}{\ltimes}{\ltimes}{\ltimes},aacb,abba,abca,babb,babc,bbab,bcaa,caac,acb{\ltimes},cab{\ltimes},ab{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- babcaacb
- bbbccb
- cab
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aabb,aadb,bbad,bbbb,dada,dbad\}\)
- a
- b
- dddac
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}db,{\rtimes}ba,acb,bac,bda,cbd,dba,da{\ltimes},ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- ccdc
- d
- db
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,ac,bb,bc,bd,ca,cb,cc,cd,db,dc,c{\ltimes}\}\)
- cc
- bdbbabda
- \(\varepsilon\)
- c
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}e,ac,ae,cd,da,ea,e{\ltimes}\}\)
- e
- ba
- edc
- \(\varepsilon\)
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}e,{\rtimes}{\ltimes}{\ltimes},{\rtimes}d{\ltimes},{\rtimes}bc,{\rtimes}ed,acc,bcb,cbc,ccb,dac,dda,ddd,edd,cb{\ltimes},bc{\ltimes},d{\ltimes}{\ltimes},c{\ltimes}{\ltimes},b{\ltimes}{\ltimes}\}\)
- cdbbadd
- dcdeceab
- acad
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,bab\}\)
- b
- abbaa
- a
- ba
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}b,ab,ac,ba,bd,cb,b{\ltimes},d{\ltimes}\}\)
- bcddcbad
- b
- ab
- ccc
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},ab,ba,bb,a{\ltimes},b{\ltimes}\}\)
- \(\varepsilon\)
- abbb
- a
- ab
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bda,dce,dee,eaa,ebc\}\)
- be
- \(\varepsilon\)
- bbabb
- dcbdb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ac,bb,bc,ca,cc\}\)
- b
- cbbb
- a
- \(\varepsilon\)
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}aba,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},abab,abea,babe,bea{\ltimes},ea{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- abe
- c
- \(\varepsilon\)
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}d,aa,ad,ba,cd,db,dc,a{\ltimes},d{\ltimes}\}\)
- \(\varepsilon\)
- a
- d
- cbbb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,acca,baab,bacb,bcca,cbba,cbcb\}\)
- ccbccc
- b
- \(\varepsilon\)
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}{\rtimes}bc,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}bcc,aacc,accc,bccc,caac,ccaa,ccca,cccc,ccc{\ltimes},cc{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- aabc
- bbaa
- bccc
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abab,babc,bcab,caab,ccbc\}\)
- abaca
- \(\varepsilon\)
- cbacca
- aaabbcbc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}e{\ltimes},{\rtimes}{\rtimes}da,{\rtimes}dae,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}e{\ltimes}{\ltimes},aeaa,daea,eaad,aad{\ltimes},ad{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- ddaebe
- e
- c
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,baa,bab,bba,bbb\}\)
- bbb
- \(\varepsilon\)
- bababab
- baaabbbabb
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,{\rtimes}c,bb,bc,cb,cc,b{\ltimes}\}\)
- cb
- bb
- babbaa
- b
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abdc,bbac,bccb,bccd,bcdc,ccbd,dbbc\}\)
- bdcadab
- c
- ca
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}ec,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}bbb,{\rtimes}ecc,{\rtimes}{\ltimes}{\ltimes}{\ltimes},cccb,cccc,eccc,ccb{\ltimes},bbb{\ltimes},cb{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- eeee
- ecba
- ea
- badc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ae,bb,be,ca,dd,ed\}\)
- b
- \(\varepsilon\)
- d
- e
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aac,aca,bbb,bbc,bca,cbb\}\)
- \(\varepsilon\)
- aca
- a
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}bd,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}bde,{\rtimes}bc{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},bdee,deeb,ebac,eeba,bac{\ltimes},ac{\ltimes}{\ltimes},bc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- dceabe
- \(\varepsilon\)
- cabac
- cececcd
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bb,a{\ltimes}\}\)
- aaba
- aba
- \(\varepsilon\)
- b
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ba,cc,cd,ce,dd,eb,ec\}\)
- acdddeaa
- ac
- badbdedd
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,aaa,aab,aba,abb,baa,bab,bba,ab{\ltimes},b{\ltimes}{\ltimes}\}\)
- bbabaa
- aabbabbbba
- aaaa
- aba
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abda,bddd,dadd,dbaa,dbca,ddda\}\)
- \(\varepsilon\)
- b
- ac
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{badd,beae,bebc,caca,ccad,dbce\}\)
- cc
- cccb
- adb
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,bd,cc,cd,dc,dd\}\)
- \(\varepsilon\)
- bababba
- bbdacbc
- b
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{accb,cabe,cada,ccec,dabb,dbdd\}\)
- \(\varepsilon\)
- b
- cbade
- addbdcbb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ba,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}b{\ltimes}{\ltimes},{\rtimes}baa,{\rtimes}ba{\ltimes},aaab,aabb,baaa,abb{\ltimes},ba{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- aabaa
- \(\varepsilon\)
- ab
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}d{\ltimes},{\rtimes}ce,acb,bac,bce,cbc,ceb,ced,dce,eba,edc,ed{\ltimes},d{\ltimes}{\ltimes}\}\)
- dbdcd
- aeeddbcaa
- bcdebb
- da
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaae,adab,baca,bbca,bccb,bdbc,ddcc,ddcd\}\)
- \(\varepsilon\)
- ccbedca
- a
- cceedd
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ba,bb,bc,ca,cc\}\)
- ba
- babb
- ac
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,bb,bc,ca\}\)
- cbc
- b
- \(\varepsilon\)
- aaca
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}d,{\rtimes}c{\ltimes},{\rtimes}de,bec,ceb,dec,ebe,ece,ec{\ltimes},c{\ltimes}{\ltimes}\}\)
- c
- ecc
- dccbdb
- dec
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,bb,bc,cb,cc,c{\ltimes}\}\)
- acac
- cc
- bcb
- b
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aabb,abaa,abab,abba,baaa,babb,bbaa\}\)
- b
- a
- \(\varepsilon\)
- baab
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bba,bbc,bcc,bdb,bdc,cdd,dad\}\)
- a
- cbdacb
- b
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}aba,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}abc,{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaaa,abab,abbc,acaa,babb,bbca,bcac,caaa,caca,abc{\ltimes},aaa{\ltimes},aa{\ltimes}{\ltimes},bc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- ccca
- bbabcab
- aba
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}cc,{\rtimes}cca,abbb,bbbb,bbbc,bbcc,cabb,ccab,bcc{\ltimes},cc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes}\}\)
- ccabbbcc
- ba
- cababaccc
- cabccaaaa
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abba,accb,accc,bcbb,bccc\}\)
- \(\varepsilon\)
- caba
- b
- acabbabc
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes},{\rtimes}ba,aaa,aab,aba,baa,bab,aa{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- ba
- bbabb
- bbbabaabbbbb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acdb,badc,bcaa,cbda,cbdb,ddbc\}\)
- bbcd
- a
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abe,acb,adc,cca,edb,eea,eed,eee\}\)
- \(\varepsilon\)
- e
- b
- aac
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ea,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}ae,{\rtimes}{\rtimes}da,{\rtimes}ea{\ltimes},{\rtimes}aea,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}dae,aeae,aeec,eaee,ecdd,eecd,dae{\ltimes},cdd{\ltimes},ae{\ltimes}{\ltimes},ea{\ltimes}{\ltimes},dd{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- ea
- cdbe
- aaeabc
- c
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aabb,abab,baab,baba\}\)
- \(\varepsilon\)
- ab
- bbabbba
- baabaaa
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}dd,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}ddd,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}cbb,bbdd,bddc,cbbd,cdda,daaa,dcdd,ddaa,ddcd,ddd{\ltimes},aaa{\ltimes},aa{\ltimes}{\ltimes},dd{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- c
- bcccddbbbab
- aac
- ddd
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}abb,{\rtimes}bbb,aaaa,aaab,baaa,bbaa,bbba,aab{\ltimes},abb{\ltimes},ab{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- ab
- aaaabaaa
- abb
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,acb,acc,bab,bac,cab,cbb,ccb\}\)
- ca
- abc
- bbbabbcba
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aaba,aabb,abaa,abab,abba,baab,bbba\}\)
- b
- bbb
- aaab
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}aaa,{\rtimes}bb{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaac,aacc,accb,adbd,badb,cbad,ccba,dbdd,bdd{\ltimes},dd{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- dddaddbacd
- bdbcdbcd
- bb
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,ba,bb,bc,ca,cb\}\)
- bbaaba
- a
- \(\varepsilon\)
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bb,b{\ltimes}\}\)
- baaabaab
- abb
- \(\varepsilon\)
- bababaaaa
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}ac,{\rtimes}acc,{\rtimes}aca,{\rtimes}cb{\ltimes},abcb,acca,baac,bcba,cabc,cbaa,ccab,aca{\ltimes},aac{\ltimes},ac{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- ac
- caccac
- aacc
- abbccc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abca,bbbc,bcac,cacb,cbbb,ccbc\}\)
- b
- aab
- \(\varepsilon\)
- c
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}ac,aca,acb,bca,cac,cbc,ca{\ltimes},a{\ltimes}{\ltimes}\}\)
- abcb
- ac
- bdca
- ccdaabb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,aa,ac,ca,a{\ltimes}\}\)
- cbbb
- c
- \(\varepsilon\)
- bccb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}aaa,aaab,aabb,abba,baaa,bbaa,abb{\ltimes},bb{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- aaabb
- abbabbba
- \(\varepsilon\)
- bbaaabaaa
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}c{\ltimes},{\rtimes}bb,bbc,bcb,cbb,bc{\ltimes},c{\ltimes}{\ltimes}\}\)
- c
- bbbcac
- \(\varepsilon\)
- bab
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bb,b{\ltimes}\}\)
- a
- bbbbabb
- \(\varepsilon\)
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}ad,{\rtimes}acc,{\rtimes}ad{\ltimes},accb,cbcd,ccbc,bcd{\ltimes},cd{\ltimes}{\ltimes},ad{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- ad
- \(\varepsilon\)
- a
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,ba,bb,bc,ca,cb,cc\}\)
- bcbbacb
- accaaaacbc
- b
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,baa,bab,bba\}\)
- baaba
- ba
- bbbab
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\ltimes},{\rtimes}a{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ab,{\rtimes}aa,aba,abb,bab,bba,aa{\ltimes},ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- a
- b
- baba
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}e{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}ce,{\rtimes}{\rtimes}ad,{\rtimes}e{\ltimes}{\ltimes},{\rtimes}cee,{\rtimes}ab{\ltimes},{\rtimes}adb,adbd,bddc,cade,dbdd,dcad,ddca,ade{\ltimes},cee{\ltimes},de{\ltimes}{\ltimes},ab{\ltimes}{\ltimes},ee{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- eddade
- abccbdece
- bddaebbac
- de
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,acb,adb,cdb,daa,dbd\}\)
- dbb
- b
- \(\varepsilon\)
- cc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ac,bc,ca,cb,cc\}\)
- \(\varepsilon\)
- c
- b
- aa
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}bcb,{\rtimes}acd,{\rtimes}cb{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},acda,adcd,cdad,dadc,bcb{\ltimes},dcd{\ltimes},cd{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- cb
- \(\varepsilon\)
- babca
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ad,aac,abd,acc,ada,bdd,ccd,daa,dab,dda,ddd,cd{\ltimes},ad{\ltimes},d{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- ad
- a
- acdb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,ad,ba,bb,cb,cc,dc,dd,de,ec,c{\ltimes}\}\)
- abbb
- adc
- e
- adec
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{bb,ca,cd,dd\}\)
- dbbadbbcabd
- b
- dacbbaccda
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,a{\ltimes}\}\)
- aaaba
- aa
- ab
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaab,abaa,abba,baab,bbbb\}\)
- aaaaaa
- bbababbab
- bbba
- aaa
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abaa,accb,bcae,bebe,ecdb\}\)
- b
- dedbcacdceca
- bcc
- caeaabebb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,{\rtimes}d,bb,bc,cb,cc,cd,db,dc,c{\ltimes},d{\ltimes}\}\)
- c
- \(\varepsilon\)
- d
- aabbddccaa
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,abb,baa,bab,bba\}\)
- b
- bbbaa
- \(\varepsilon\)
- aa
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ad,bb,bd,cb,cd\}\)
- d
- dccbd
- bdadaadab
- cbad
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}b,{\rtimes}dd,{\rtimes}bc,aca,cad,dac,dda,bc{\ltimes},ad{\ltimes},d{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- dbdadb
- badc
- dc
- abae
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}db,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}aa{\ltimes},{\rtimes}dbb,{\rtimes}{\ltimes}{\ltimes}{\ltimes},acdc,bbca,bcac,cacd,cdcd,dbbc,dcd{\ltimes},cd{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- aa
- \(\varepsilon\)
- cbdbabb
- acbadcaa
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}cc,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}ccb,{\rtimes}b{\ltimes}{\ltimes},abea,aecd,babe,beae,cbab,ccba,eaec,ecda,cda{\ltimes},da{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- aedaaadae
- bbb
- b
- ecaccbacccd
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaac,baab,cbba,cccb\}\)
- babba
- cac
- abacab
- ca
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaab,abaa,abba,baaa,baab,babb\}\)
- baa
- aababaabaa
- abaa
- aababbb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{cbda,ccda,cdcb,ecea\}\)
- acbabbce
- de
- ea
- eaeaeda
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}acb,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}cb{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},acbb,bbcb,bcbc,cbbc,cbcb,bcb{\ltimes},cb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- acaab
- \(\varepsilon\)
- cababa
- acacac
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aac,acd,bab,bac,bca,cdb,dcd\}\)
- \(\varepsilon\)
- a
- abcddba
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,bc,cd,db\}\)
- adadaccd
- \(\varepsilon\)
- dadccddcbdad
- bccdbd
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,abd,adc,bbb,cbd,cdd,dba,dca\}\)
- \(\varepsilon\)
- a
- cbc
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ba,bb\}\)
- abaab
- a
- baaa
- aabab
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abd,acc,bac,cdd,dab,dbc\}\)
- ddddbbb
- dbacabbdcdb
- bacb
- \(\varepsilon\)
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{ace,adb,cab,cdd\}\)
- dbdabaeaccca
- dacaea
- dcea
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,aa,ab,ba,bb,a{\ltimes}\}\)
- aaa
- \(\varepsilon\)
- aba
- ba
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abd,baa,bac,bbc,cda\}\)
- cdcaaccc
- \(\varepsilon\)
- ccadcda
- cbdcbabba
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}db,{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}bb,{\rtimes}bbc,{\rtimes}bc{\ltimes},{\rtimes}dbd,bbcd,bcdc,bcdd,bddb,cddb,dbcd,dbdd,ddbc,ddbd,cdc{\ltimes},dbd{\ltimes},dc{\ltimes}{\ltimes},bd{\ltimes}{\ltimes},bc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes}\}\)
- addbdbdddb
- dbbcbcba
- dabb
- cadadda
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aac,bcc,bda,bdd,cba,dab,ddb\}\)
- b
- bdbddddca
- \(\varepsilon\)
- dc
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaab,aaba,aabb,baab,baba,bbba\}\)
- baabab
- bbaa
- bab
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aac,abc,bca,cba,cbb\}\)
- cbac
- ba
- bab
- babccbca
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,bb,ca,cb,cc\}\)
- \(\varepsilon\)
- abcbccccacb
- b
- a
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}ba,aab,aad,abd,add,baa,bda,daa,dd{\ltimes},b{\ltimes}{\ltimes},d{\ltimes}{\ltimes}\}\)
- bbd
- ccadcbda
- \(\varepsilon\)
- aabab
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}eb,bdb,bdd,dbc,dbd,ddb,ddd,ebd,bc{\ltimes},c{\ltimes}{\ltimes}\}\)
- aeed
- ebdbc
- ee
- c
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}b,{\rtimes}e{\ltimes},{\rtimes}bb,add,bbc,bce,cea,ead,dd{\ltimes},e{\ltimes}{\ltimes},d{\ltimes}{\ltimes}\}\)
- aba
- cc
- \(\varepsilon\)
- c
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ad,ba,bb,ca,db,dd\}\)
- bbca
- abbdccddac
- a
- acabcaddbc
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}cc,{\rtimes}aa,aad,adc,ccc,ccd,cdd,dcc,dcd,ddc,cc{\ltimes},cd{\ltimes},d{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- bbababdac
- acdc
- \(\varepsilon\)
- caabab
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}e,ab,bd,ca,cc,ce,db,ec,b{\ltimes}\}\)
- bdde
- cbdbbb
- ecab
- eee
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}aa,aac,acc,cbb,ccb,bb{\ltimes},aa{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- aa
- caaabc
- acacc
- aaca
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acac,accb,bbcb,bcac,cbcb,cbcc,ccbc,cccc\}\)
- \(\varepsilon\)
- aaacbc
- a
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,bbca,bbcc,bcbc,caaa,caba,cabb\}\)
- a
- b
- \(\varepsilon\)
- acaaaaac
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ac,bc,ca,cb,a{\ltimes},b{\ltimes}\}\)
- c
- bca
- \(\varepsilon\)
- bc
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}dd,{\rtimes}ddc,bcbd,bdcd,cbcb,cbdc,dcbc,dcda,ddcb,cda{\ltimes},da{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- bbcdd
- bdacb
- \(\varepsilon\)
- aca
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aabb,abaa,abba,babb,bbab,bbba,bbbb\}\)
- \(\varepsilon\)
- abbbba
- baabaabbb
- bbbbabbabbaa
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abd,adb,ceb,daa,dba\}\)
- cecaaadaab
- cecdbbdebd
- ecaecbbbab
- ebc
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes},{\rtimes}ba,aab,aba,abb,baa,bab,bba,bbb,bb{\ltimes},b{\ltimes}{\ltimes}\}\)
- babb
- b
- \(\varepsilon\)
- abaaab
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}ba,{\rtimes}bb,bac,bbc,bcc,cba,cbc,ccb,ccc,ac{\ltimes},ba{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- cabac
- ba
- c
- aacbcbcaacc
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}bbb,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},acba,baca,bacb,bbbc,bbcb,bcba,cbac,aca{\ltimes},ca{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- bcacccbaa
- bbbcbaca
- c
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}ab,{\rtimes}b{\ltimes},{\rtimes}ba,aab,aba,abb,baa,bba,bbb,ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- baaaaaba
- b
- aabba
- a
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}bb,{\rtimes}aa,aaa,aab,abb,baa,bba,bbb,ab{\ltimes},bb{\ltimes},b{\ltimes}{\ltimes}\}\)
- a
- aababa
- baabbb
- aabbbaaa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}ba,{\rtimes}aba,{\rtimes}baa,aaba,abaa,abab,baaa,baab,baba,aba{\ltimes},aaa{\ltimes},aa{\ltimes}{\ltimes},ba{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- ab
- bababaa
- abbb
- baabaaba
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}c{\ltimes},{\rtimes}ac,{\rtimes}ba,aca,acb,bac,cac,cbc,bc{\ltimes},ac{\ltimes},c{\ltimes}{\ltimes}\}\)
- babc
- abbcba
- cca
- c
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}ac,abd,acb,bab,bba,cbb,bd{\ltimes},d{\ltimes}{\ltimes}\}\)
- ccacc
- abbddae
- \(\varepsilon\)
- edeba
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acde,baab,bbdd,ceab,ebdc\}\)
- e
- cbebdb
- eeaccba
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abc,cbd,cce,ddb\}\)
- aacca
- ec
- eacac
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aba,abc,bca,caa,cab\}\)
- ccacccc
- \(\varepsilon\)
- a
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}ba,{\rtimes}aaa,{\rtimes}ba{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaab,aaba,abab,abba,abbb,babb,bbab,bbbb,bbb{\ltimes},ba{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- aaaaababa
- abbbabab
- abbbbaaa
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aaba,abaa,abbb,bbbb\}\)
- ba
- \(\varepsilon\)
- bba
- bb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{baa,bca,cab,cbc,cca\}\)
- ccbaab
- acabbcccc
- acc
- bcaccaa
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}a{\ltimes},{\rtimes}ba,aaa,aab,aba,baa,bab,ab{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- babbaa
- abbbab
- \(\varepsilon\)
- aaaaa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abbc,adbc,cbab,cbad,dbbb,dddc\}\)
- dbd
- abcdcaabc
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}abb,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes}{\ltimes},abab,abba,abbb,baab,baba,babb,bbaa,bbab,bbba,aab{\ltimes},ab{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- ababbabaaab
- \(\varepsilon\)
- b
- abbaab
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ba,cb,cc\}\)
- aaaa
- bcaca
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,bb,bc,ca,cc\}\)
- b
- \(\varepsilon\)
- abaccacc
- bbcaabbba
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aaba,baab,baba,bbaa,bbba\}\)
- bbbaaa
- baaabbab
- a
- aababbbb
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}c,ab,ac,bb,bc,ca,c{\ltimes}\}\)
- \(\varepsilon\)
- baca
- aaba
- aaa
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}ac,abc,aca,acc,bca,cab,cac,cca,ac{\ltimes},c{\ltimes}{\ltimes}\}\)
- bc
- \(\varepsilon\)
- b
- babac
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,baa,bab,bba,bbb\}\)
- bbaaba
- \(\varepsilon\)
- baa
- aaa
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}ac,{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,abc,acb,bab,bba,bbb,bcc,cbb,cbc,ccb,bc{\ltimes},ba{\ltimes},c{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- ba
- cccbcbbca
- ac
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}db,{\rtimes}ba,adb,bad,bee,dbe,db{\ltimes},ee{\ltimes},e{\ltimes}{\ltimes},b{\ltimes}{\ltimes}\}\)
- cab
- ebca
- abcd
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}cc,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}ccb,aaaa,baaa,bbaa,cbba,ccbb,aaa{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- cc
- ccbbaaa
- a
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,aac,bab,bbc,cac\}\)
- bacbbc
- bbccababc
- bbaaaabacc
- bccbacaaaa
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}ba,abb,bab,bbc,bcc,ccc,cc{\ltimes},c{\ltimes}{\ltimes}\}\)
- ca
- babbcc
- bacbbb
- \(\varepsilon\)
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,adb,bbd,cdb,dba,dda\}\)
- a
- \(\varepsilon\)
- b
- ba
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{bb,bd,be,cd,da,dd,eb\}\)
- \(\varepsilon\)
- bb
- ccabaeccabe
- dbdeacbddaa
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aca,bcb,caa,cbc\}\)
- b
- \(\varepsilon\)
- a
- ba
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{acb,bad,bcd,caa,dca,ddd\}\)
- aadbbc
- ad
- bcbaaa
- cadcadb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}cb,aad,adb,baa,bba,cbb,dba,ba{\ltimes},cb{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- abaa
- a
- cb
- adcdab
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}ba,{\rtimes}bb,aaa,aab,abb,baa,bba,bb{\ltimes},ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- bb
- bba
- a
- ba
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ae,be,ea,eb\}\)
- ee
- ea
- aec
- \(\varepsilon\)
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}e,ab,bd,be,ca,da,db,dd,ec,ed,b{\ltimes}\}\)
- a
- aaee
- dddeadebc
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}ba,aaa,aab,abb,baa,bba,bbb,ab{\ltimes},b{\ltimes}{\ltimes}\}\)
- a
- b
- bbbaaaaabba
- baababbbb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}da,abe,bed,dab,dac,eda,ac{\ltimes},c{\ltimes}{\ltimes}\}\)
- eb
- bbe
- dac
- a
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}aa,aaa,aab,abb,baa,bba,bbb,aa{\ltimes},a{\ltimes}{\ltimes}\}\)
- abbaaaabaaa
- aaa
- aa
- a
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aad,abd,adb,caa,cca,dbd\}\)
- b
- \(\varepsilon\)
- bad
- cddaacc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}b,ab,ba,bb,a{\ltimes},b{\ltimes}\}\)
- abbaaab
- a
- b
- ab
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}ab,{\rtimes}aa,aab,aba,abb,baa,bab,bba,ab{\ltimes},b{\ltimes}{\ltimes}\}\)
- abbbbaaabba
- bbb
- babbbbb
- bbbbbbbbbab
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,bab,bba,caa,cab,cca,ccc\}\)
- b
- \(\varepsilon\)
- cb
- aabcac
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}bd,{\rtimes}{\rtimes}ce,{\rtimes}bb{\ltimes},{\rtimes}cee,{\rtimes}bdd,abde,bded,cabd,ceec,dabc,deda,ecab,edab,eeca,abc{\ltimes},bdd{\ltimes},bc{\ltimes}{\ltimes},dd{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- bb
- baaecd
- acbca
- edeebb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aabb,abbb,acbb,baca,bbba,cbcc,cccc\}\)
- \(\varepsilon\)
- a
- b
- acc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{adc,cba,cca,ddc\}\)
- accdbd
- abbcc
- dda
- daddc
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,ab,ba,bd,da,b{\ltimes}\}\)
- cdcbbc
- b
- ddddca
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}d,{\rtimes}{\ltimes}{\ltimes},{\rtimes}d{\ltimes},{\rtimes}ab,abd,aee,bdc,cae,cde,dca,dcd,dee,edc,eed,ee{\ltimes},d{\ltimes}{\ltimes},e{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- c
- abdcdee
- d
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaab,aabb,abaa,abab,abba,baaa,bbab\}\)
- a
- bbababbaaab
- b
- \(\varepsilon\)
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aca,acb,bbb,cab,ccb\}\)
- b
- aacaabca
- a
- \(\varepsilon\)
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bed,ccc,cce,dee,eaa\}\)
- dc
- eddbae
- bdcb
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}bb,acc,bac,bba,cac,cca,ccb,ccc,cb{\ltimes},b{\ltimes}{\ltimes}\}\)
- bbaccb
- a
- b
- caaacac
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}aaa,{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaab,aaba,aabb,abaa,abab,baaa,baba,abb{\ltimes},bb{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- abbbbbabaab
- aaabbba
- \(\varepsilon\)
- aaabb
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abca,acca,baaa,babb,bccc,cabb,cabc,ccbc\}\)
- a
- \(\varepsilon\)
- caaca
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,bb,bc,ca,cb,a{\ltimes}\}\)
- aabaac
- c
- abacc
- cba
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acbc,adab,cabd,cada,ceee\}\)
- cbaaedadcd
- edbcbdac
- d
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,ba,bd,dd\}\)
- \(\varepsilon\)
- b
- a
- dcdb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,baa,bab,bba\}\)
- aabbbba
- \(\varepsilon\)
- bbabaabaab
- b
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}cc,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}ccd,bccd,cbcc,ccda,ccdd,cdad,cddc,dcbc,ddcb,dad{\ltimes},ad{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes}\}\)
- c
- ccdad
- ddbaaaabcab
- cdaba
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{bbeb,ddbe,dedb,ecbe,eeea\}\)
- beceaa
- acdc
- cdbaddc
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,abaa,abab,abbb\}\)
- ba
- aabbb
- baa
- \(\varepsilon\)
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}ce,{\rtimes}aae,{\rtimes}cee,aaeb,aebe,bedc,caee,dcae,ebed,edca,aee{\ltimes},cee{\ltimes},ee{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- cee
- be
- e
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,aba,abb,bab,bba\}\)
- b
- bbbba
- baabaabbbba
- \(\varepsilon\)
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}ca,aaa,aba,baa,cab,aa{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- b
- aacaaa
- cabaa
- \(\varepsilon\)
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,da,dd,ec\}\)
- d
- dabac
- db
- acb
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}e{\ltimes},{\rtimes}{\rtimes}eb,{\rtimes}ebc,{\rtimes}e{\ltimes}{\ltimes},bccb,ccbc,ebcc,cbc{\ltimes},bc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- edcc
- \(\varepsilon\)
- beeb
- e
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acaa,baba,bcbc,cbcc,ccab,ccac\}\)
- c
- \(\varepsilon\)
- a
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}c,ad,bd,be,cc,db,dd,ec,c{\ltimes}\}\)
- aacdeeecee
- c
- \(\varepsilon\)
- ccaeeccbeb
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes},{\rtimes}aa,{\rtimes}bc,aab,abb,baa,bab,bba,bcc,caa,cca,aa{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- b
- \(\varepsilon\)
- bbbc
- cbacbbacab
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,be,cc,ed\}\)
- ea
- bbacbcb
- \(\varepsilon\)
- bace
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ad,ba,ca,de,ed\}\)
- bbb
- aa
- a
- dedbd
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}d,ad,da,dd,a{\ltimes},d{\ltimes}\}\)
- b
- aecee
- d
- a
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aada,abaa,abbc,abda,baba,bcda,dbca\}\)
- acab
- \(\varepsilon\)
- aaacccddbd
- ada
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}ee,{\rtimes}{\rtimes}ce,{\rtimes}ee{\ltimes},{\rtimes}cea,aacc,abdb,acca,cabd,ccab,ceaa,eaac,bdb{\ltimes},db{\ltimes}{\ltimes},ee{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- c
- \(\varepsilon\)
- ee
- abae
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ba,bb,a{\ltimes}\}\)
- baaabbbb
- \(\varepsilon\)
- abbaaaaa
- aaaaaaaba
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}ba,{\rtimes}{\rtimes}da,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}da{\ltimes},{\rtimes}bab,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaab,aabc,abaa,abcd,baaa,baba,bcdc,cdcd,dcdc,cdc{\ltimes},dc{\ltimes}{\ltimes},da{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- ba
- cdcabccbd
- \(\varepsilon\)
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}ab,aab,aba,baa,ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- ccc
- bb
- bcabaa
- aabca
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bdd,cab,dbd,dcd\}\)
- bdd
- ad
- dcccadc
- adcac
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,ab,ba,bb,b{\ltimes}\}\)
- aa
- bb
- bbb
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ac,bc,ca,cb,cc,a{\ltimes},c{\ltimes}\}\)
- aacaabaabc
- ccaaaba
- abbb
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaab,abaa,abbb,baab,bbaa,bbab,bbbb\}\)
- babab
- bba
- \(\varepsilon\)
- aabaa
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}a,{\rtimes}{\ltimes}{\ltimes},{\rtimes}ad,abc,ada,bbc,bca,bcd,cad,cbb,cdc,dab,dcb,ad{\ltimes},d{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- bdbbbb
- dcada
- dacbddb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}c{\ltimes},{\rtimes}cc,{\rtimes}{\ltimes}{\ltimes},{\rtimes}aa,acc,cac,cca,ccb,ccc,aa{\ltimes},cb{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- babcbc
- \(\varepsilon\)
- cbbccba
- bc
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}c,aa,ab,ac,ba,cc,cd,da,a{\ltimes},d{\ltimes}\}\)
- cbccccbbd
- aa
- \(\varepsilon\)
- a
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}d,aa,ab,ac,bb,bc,ca,cd,da,d{\ltimes}\}\)
- d
- ccaad
- \(\varepsilon\)
- ccbb
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}ca,{\rtimes}caa,{\rtimes}ac{\ltimes},aabc,abcc,bccc,caaa,caab,ccaa,ccca,aaa{\ltimes},aa{\ltimes}{\ltimes},ac{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- ac
- bcacabcb
- bbcbabccca
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,ca,cb\}\)
- c
- babcccc
- acaac
- b
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}cb,adb,bad,bba,bbb,bbc,cbb,dbb,bc{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- cddbd
- aa
- c
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}cb,abc,bab,bcb,cba,ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- bac
- cba
- aa
- bba
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ea,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}ce,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}ea{\ltimes},{\rtimes}cee,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},ceee,eeac,eeea,eac{\ltimes},ac{\ltimes}{\ltimes},ea{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- cece
- c
- bdbac
- cdca
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ae,ba,bc,ca,dd,eb\}\)
- e
- \(\varepsilon\)
- daed
- adbabb
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ad,bd,cb,cd,da,dc\}\)
- aadcc
- b
- \(\varepsilon\)
- adcbcbb
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{cba,cbd,cda,dcd\}\)
- b
- ababddccacbc
- ddbacdadbba
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}bb,{\rtimes}aaa,{\rtimes}bbb,aaab,baaa,bbaa,bbba,aab{\ltimes},aaa{\ltimes},ab{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- aaab
- baaab
- ba
- aaa
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}ab,{\rtimes}aa,abc,bcc,cba,ccb,aa{\ltimes},ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- bbcbcc
- caab
- \(\varepsilon\)
- cbcbbb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{bb,cb,de,ea,ec\}\)
- ce
- \(\varepsilon\)
- c
- d
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{caba,ccaa,ccdc,cdad,ceeb,dbaa,ddea\}\)
- b
- \(\varepsilon\)
- e
- cbc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,aabb,abab,abbb,baaa,baab,baba\}\)
- aaaba
- abba
- aaaa
- aaaabbaabb
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,ac,bc,ca,cb,a{\ltimes}\}\)
- bca
- \(\varepsilon\)
- bcbca
- bcbcbca
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abbc,abcb,bbab,bcac,caac,cbba,ccba\}\)
- b
- a
- abba
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aabc,abca,bcbb,bccb,cbac,dbac,dcba\}\)
- adbbcb
- bc
- caaaad
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abbb,accc,bcac,cbab,cdbb\}\)
- bcdacad
- b
- a
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,bab,bba,bbb\}\)
- a
- b
- \(\varepsilon\)
- bbbbba
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,aa,ae,bc,ce,ea,eb,ec,ee,e{\ltimes}\}\)
- ae
- aee
- cb
- aae
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}aaa,{\rtimes}ba{\ltimes},aaaa,aaab,aabb,abb{\ltimes},ba{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- ba
- \(\varepsilon\)
- b
- aaabb
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaab,aaba,abba,baaa,baab,bbba\}\)
- bbbbaaa
- baaaabaaba
- aaabbaab
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,abb,bab,bba\}\)
- baab
- aabbabaa
- bb
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,baac,babb,bbaa,bbbb,bcba\}\)
- a
- \(\varepsilon\)
- ccabcbaa
- b
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{baae,bebc,ceac,eaac,eaec,ebcb,ebed\}\)
- b
- ecceb
- ad
- eae
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,cb,cd,db,dc,dd\}\)
- b
- aaaa
- ccddadd
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}ae,{\rtimes}ae{\ltimes},{\rtimes}cbb,addb,aead,bbca,bcae,caea,cbbc,ddbd,eadd,dbd{\ltimes},ae{\ltimes}{\ltimes},bd{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- deeaabc
- bebebb
- cdbcbabeed
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}da,{\rtimes}dae,{\rtimes}c{\ltimes}{\ltimes},aeeb,daee,eebe,ebe{\ltimes},be{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- deeb
- \(\varepsilon\)
- dceaac
- c
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{acc,ada,bbd,cba,ccb,dab,ddb,ddc\}\)
- cabca
- c
- \(\varepsilon\)
- cadbc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ac,ba,cb,a{\ltimes}\}\)
- aa
- adaaac
- \(\varepsilon\)
- a
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aca,acb,bac,bca,cac,cba,cca\}\)
- c
- bcaacc
- bbbbcba
- \(\varepsilon\)
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}ba,{\rtimes}bab,{\rtimes}aac,{\rtimes}{\ltimes}{\ltimes}{\ltimes},abca,babc,bcac,cacb,acb{\ltimes},aac{\ltimes},ac{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- aac
- aca
- a
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abb,aca,baa,bcc,cba,cbc\}\)
- cb
- cbcbca
- cca
- bb
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,aabb,bacb,bccb,bccc,caaa,cacb,cbca\}\)
- accbc
- abbb
- aab
- bacbca
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,bba,bcb,caa,cba\}\)
- bcbcb
- cb
- ac
- bbac
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,aa,ab,ac,ba,bc,ca,cb,c{\ltimes}\}\)
- baabaccabac
- aac
- abc
- ac
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ac,{\rtimes}cd,aad,ada,cdd,daa,dad,dda,ac{\ltimes},da{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- adbcccbaa
- ac
- cccbbbcd
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aac,abb,acb,bbb,bca,caa,cac,cbc\}\)
- cbbb
- \(\varepsilon\)
- acbccccb
- abccb
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,ab,ba,bb,bc,cb,cc,a{\ltimes}\}\)
- aacbaba
- bbb
- bcaca
- acbbabbb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ea,{\rtimes}ead,adbc,dbcb,eadb,bcb{\ltimes},cb{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- \(\varepsilon\)
- c
- dcdcbd
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}db,aea,aeb,bea,dbe,eae,eba,ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- dadbbb
- dbeaeba
- c
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}ad,{\rtimes}b{\ltimes}{\ltimes},{\rtimes}adc,adcd,cbdb,cdcb,dcbd,dcdc,bdb{\ltimes},db{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- bad
- acbccb
- c
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ad,ba,bc,cc,ec,ee\}\)
- \(\varepsilon\)
- e
- eaccb
- bcba
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\ltimes},{\rtimes}eb,{\rtimes}{\ltimes}{\ltimes},{\rtimes}d{\ltimes},bed,cde,dcd,ebe,edc,de{\ltimes},e{\ltimes}{\ltimes},d{\ltimes}{\ltimes}\}\)
- acd
- ccdc
- eacbdab
- dcebc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ad,db,dd\}\)
- \(\varepsilon\)
- dc
- da
- caa
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}bd,{\rtimes}bde,{\rtimes}cba,aace,aced,bdec,cdda,cedb,daac,ddaa,decd,ecdd,edb{\ltimes},cba{\ltimes},ba{\ltimes}{\ltimes},db{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- dbdeaab
- \(\varepsilon\)
- cba
- ebeae
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,aab,abb,baa,bbc,bc{\ltimes},c{\ltimes}{\ltimes}\}\)
- aaaac
- bba
- bbc
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,bebe,cbee,ddba,debe\}\)
- cbeeeb
- ccdaa
- e
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}a{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}bb,{\rtimes}aa,aaa,aab,aba,abb,baa,bab,bba,bb{\ltimes},ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- bb
- abbaabbbaaa
- bbaaaaba
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ca,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}ad,{\rtimes}ad{\ltimes},{\rtimes}caa,{\rtimes}b{\ltimes}{\ltimes},aaac,aaca,acaa,caaa,caac,aac{\ltimes},ac{\ltimes}{\ltimes},ad{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- baa
- a
- b
- ad
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,ab,bc,ca,cb,cc,a{\ltimes}\}\)
- ccabcaac
- \(\varepsilon\)
- baaaab
- abcaacbb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}dc,{\rtimes}{\rtimes}ab,{\rtimes}abb,{\rtimes}dcc,abbc,adee,bbca,bcad,becd,cade,deeb,ebec,eebe,ecd{\ltimes},dcc{\ltimes},cd{\ltimes}{\ltimes},cc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes}\}\)
- dcc
- eceddede
- ceaadadb
- a
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{adcb,bbcb,bcca,caaa,caad,cbbc,dbad,dbba\}\)
- a
- dadcdc
- dabccbabacc
- dacbdbdbac
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ad,bb,bc,cc,cd,db,dd\}\)
- adaa
- d
- abababac
- bcad
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}ba,{\rtimes}aba,{\rtimes}aab,{\rtimes}ba{\ltimes},aaab,aabb,abbb,baaa,bbaa,bbba,aba{\ltimes},bba{\ltimes},ba{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- aaaaabaaabab
- bbabaaab
- ba
- bb
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}dd,abd,adb,bbc,bda,dab,dad,dbb,dda,ddd,bc{\ltimes},c{\ltimes}{\ltimes}\}\)
- aabccbcebaa
- ddadbbc
- ddddadbbc
- dddadbbc
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}e,bc,cd,db,ed,ee,d{\ltimes}\}\)
- bdc
- eadbc
- dedbbb
- caaa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},ac,ad,be,ce,da,db,ed,ee,e{\ltimes},a{\ltimes}\}\)
- \(\varepsilon\)
- eebae
- acab
- bdecd
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}be,{\rtimes}{\rtimes}ae,{\rtimes}aba,{\rtimes}be{\ltimes},{\rtimes}aed,aedb,bddc,cadc,dbdd,dcad,ddca,edbd,adc{\ltimes},aba{\ltimes},dc{\ltimes}{\ltimes},ba{\ltimes}{\ltimes},be{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- ab
- be
- da
- decd
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aee,ced,dca,dda,dea,ded,ead\}\)
- dbccce
- \(\varepsilon\)
- b
- e
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}cc,abc,acc,bca,cab,cac,cca,cc{\ltimes},c{\ltimes}{\ltimes}\}\)
- ba
- ccbc
- \(\varepsilon\)
- bccba
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}cc,{\rtimes}cca,{\rtimes}cbb,bbcc,bccc,cbbc,cccc,ccc{\ltimes},cca{\ltimes},cc{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes}\}\)
- cca
- ab
- bac
- cbbccc
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ea,{\rtimes}{\rtimes}ed,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}ead,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}ede,decd,ecdd,edec,cdd{\ltimes},ead{\ltimes},ad{\ltimes}{\ltimes},dd{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- e
- a
- dd
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acaa,acca,baab,baac,bacb,bcac,caaa,cccc\}\)
- b
- a
- baabcaacc
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaba,abaa,abab,babb,bbaa,bbab,bbbb\}\)
- abbba
- aba
- \(\varepsilon\)
- ba
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acdc,adec,bbcd,bdda,ccbb,eaca,ecba,eeca\}\)
- e
- bdecdbabdb
- baeeeedae
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ba,bb,bd,ca,cc,da,dc\}\)
- caccab
- cacacdccbcd
- addbaccbb
- dcabcdcdca
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aba,abb,baa,bab,bba,bbb\}\)
- b
- aaaabbbbaaba
- a
- \(\varepsilon\)
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}d,aa,ae,bd,db,de,ea,ed,ee,e{\ltimes},d{\ltimes}\}\)
- eabdaab
- cd
- aa
- aebbc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{acd,baa,cba,dec,ece\}\)
- \(\varepsilon\)
- e
- ed
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ae,bb,ca,cd,ec\}\)
- e
- b
- \(\varepsilon\)
- aaea
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}b,{\rtimes}cb,{\rtimes}db,{\rtimes}b{\ltimes},aad,adb,adc,bdc,caa,cad,dbc,dbd,dca,cb{\ltimes},bc{\ltimes},c{\ltimes}{\ltimes},b{\ltimes}{\ltimes}\}\)
- b
- cb
- dbc
- cdacaadbc
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ea,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}bd,{\rtimes}{\rtimes}ec,{\rtimes}ece,{\rtimes}ea{\ltimes},{\rtimes}bde,{\rtimes}c{\ltimes}{\ltimes},aabd,abdc,bdcc,ccdb,ceaa,dccd,eaab,ecea,cdb{\ltimes},bde{\ltimes},db{\ltimes}{\ltimes},de{\ltimes}{\ltimes},ea{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- c
- ebdede
- ecdccaeeebe
- ea
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,ab,ba,bc,ca,cb,cc,a{\ltimes}\}\)
- bca
- \(\varepsilon\)
- ccbaacacca
- ba
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{bacd,badd,bbda,cbcc,cdca,dbcd,ddac\}\)
- \(\varepsilon\)
- bb
- ddbbbccad
- bcaaa
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abb,aca,bac,cba,cbb,cca,ccc\}\)
- bbcaaaabcb
- cbbbcbbb
- ca
- bcccaaa
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,abb,abc,aca,bbc,cac,ccc\}\)
- b
- accb
- a
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}cc,{\rtimes}cca,{\rtimes}bc{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aacc,accb,bbaa,caac,cbba,ccaa,ccbb,baa{\ltimes},aa{\ltimes}{\ltimes},bc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- c
- accbcacb
- aaaab
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,abba,abbb,bbba\}\)
- abbaa
- \(\varepsilon\)
- a
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,bab,bba,bbb\}\)
- aa
- baa
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,bc,ca,cc,b{\ltimes}\}\)
- \(\varepsilon\)
- ca
- b
- a
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,ab,bc,ca,cc,b{\ltimes}\}\)
- bbaccb
- bc
- acabc
- bcab
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}ab,aab,aba,abb,baa,bab,bb{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- aaaab
- bbba
- bbbabbbb
- bbbbaa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,baa,bab,bba,bbb\}\)
- a
- aaaa
- \(\varepsilon\)
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,bc,ea,ec\}\)
- dcaccbece
- \(\varepsilon\)
- eebdcbdbbbec
- ec
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{badb,bccc,bebc,cabe,deda,dedb,deed,eabd\}\)
- e
- dd
- ceaa
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abcc,abcd,cdbd,ddbc\}\)
- b
- \(\varepsilon\)
- ccbddca
- dbdbda
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acbc,bbba,bbca,bcac,caab,cccb\}\)
- cba
- b
- \(\varepsilon\)
- abb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}b,{\rtimes}cb,{\rtimes}c{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,aac,abc,aca,bab,bcc,caa,cab,cca,cb{\ltimes},ab{\ltimes},c{\ltimes}{\ltimes},b{\ltimes}{\ltimes}\}\)
- c
- \(\varepsilon\)
- abccbbcab
- cb
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}cc,acd,add,bad,cce,cdb,ceb,dac,dda,eba,db{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- bccedcbb
- eeecddc
- d
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abbb,accb,cbbb,ccaa,ccba,cccc\}\)
- b
- a
- bbab
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}d,{\rtimes}{\ltimes}{\ltimes},{\rtimes}d{\ltimes},{\rtimes}ba,aac,acc,baa,bcc,cbc,ccb,ccc,cb{\ltimes},b{\ltimes}{\ltimes},d{\ltimes}{\ltimes}\}\)
- bbca
- d
- ccbcd
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,ac,bb,bd,ca,cb,cc,d{\ltimes}\}\)
- cabbdbd
- bad
- \(\varepsilon\)
- cbd
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,aa,ac,bc,ca,a{\ltimes}\}\)
- bca
- bcaa
- bcaaa
- cbaa
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aabd,aadc,adda,caaa,caba,cada,dbcb\}\)
- b
- a
- bcbdcdcd
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ba,bb,bc,cc\}\)
- accbabacb
- baaa
- accb
- acbabbac
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acac,babe,bdee,cabd,cacd,cbae,ccbe,edcb\}\)
- adce
- de
- bdbabe
- cdbc
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ba,bb,bc,cc\}\)
- cbbaccc
- bbaaccb
- \(\varepsilon\)
- ccbb
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,aa,ab,ac,ba,bb,bc,ca,a{\ltimes}\}\)
- caa
- \(\varepsilon\)
- cabac
- ca
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ba,bb,b{\ltimes}\}\)
- ab
- aaab
- \(\varepsilon\)
- aab
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aabd,adda,cdaa,cdba,cdca\}\)
- \(\varepsilon\)
- aa
- bdbbbcabcbbd
- abbacc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}bb,abb,abc,bab,bba,bbb,bbc,bca,bcb,cab,cb{\ltimes},b{\ltimes}{\ltimes}\}\)
- bbcb
- b
- accbbab
- \(\varepsilon\)
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}d,ac,ad,cc,ce,dd,ea,d{\ltimes}\}\)
- cbad
- \(\varepsilon\)
- bdcaeac
- d
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aba,abb,baa,bab\}\)
- aaa
- \(\varepsilon\)
- b
- a
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}ac,{\rtimes}aca,acac,acba,cacb,cba{\ltimes},ba{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- c
- cbccb
- baa
- acccab
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aba,abb,baa,bab,bbb\}\)
- \(\varepsilon\)
- baab
- aa
- abab
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,abaa,abab,abbb,baaa,bbaa,bbba\}\)
- bbaaababa
- \(\varepsilon\)
- b
- bbbbbb
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,aba,abb,acb,bdc,cdb\}\)
- bc
- adcbb
- abcd
- dbdbac
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,bab,bba,bbb\}\)
- babaaab
- \(\varepsilon\)
- babababab
- babbbabb
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{adab,bdca,dccb,eaec\}\)
- e
- \(\varepsilon\)
- ceaaecbccbea
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}e,ac,ae,ca,cd,da,ec,ee,c{\ltimes}\}\)
- \(\varepsilon\)
- bbdbd
- edbbded
- acecdddbc
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aca,baa,bac,bbb,caa,ccb\}\)
- bacbb
- bcaabbacabc
- \(\varepsilon\)
- ca
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ba,bb,b{\ltimes}\}\)
- abbaba
- aab
- \(\varepsilon\)
- ab
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}b{\ltimes}{\ltimes},{\rtimes}acb,acbb,bbca,cbbc,bca{\ltimes},ca{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- aa
- b
- bbb
- c
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aba,baa,bdd,cba,ddc\}\)
- b
- cbdabbcdbbdc
- dbdbacbaca
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abbb,bbee,cada,caea,dcda,ddec,dece,ebee\}\)
- e
- \(\varepsilon\)
- aeadeaa
- ba
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abb,adc,add,bbc,cdd,dba,eed\}\)
- edeedd
- \(\varepsilon\)
- dac
- cbbac
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acbc,baad,bbcd,ccaa,ddad\}\)
- \(\varepsilon\)
- bd
- a
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}e{\ltimes},{\rtimes}ab,abb,add,bad,bbd,bdb,beb,dbe,ddb,eba,db{\ltimes},b{\ltimes}{\ltimes},e{\ltimes}{\ltimes}\}\)
- eeebc
- cbbeee
- aabcbddbca
- cecd
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bb,b{\ltimes}\}\)
- \(\varepsilon\)
- aabbbaa
- bababbbaabab
- aaabbabbab
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}db,{\rtimes}{\rtimes}dd,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}ddb,{\rtimes}db{\ltimes},{\rtimes}dbb,{\rtimes}b{\ltimes}{\ltimes},aaab,aabd,abdc,baaa,bbaa,bbba,dbbb,ddbb,dbb{\ltimes},bdc{\ltimes},dc{\ltimes}{\ltimes},db{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- ababcb
- dcd
- bbccbaddbc
- dcdcccaadab
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}dc,{\rtimes}{\rtimes}ca,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}dca,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}cad,{\rtimes}{\ltimes}{\ltimes}{\ltimes},adcd,caaa,cadc,cdca,dcaa,dcad,dcdc,aaa{\ltimes},cad{\ltimes},ad{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- bbd
- acbbabcb
- cbcb
- a
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ba,bb\}\)
- bbabbaa
- ba
- abbbbab
- aaaa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,bba,bca,bcc,cac\}\)
- bb
- \(\varepsilon\)
- bbbbbbb
- cccaba
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}be,ace,bac,beb,bee,eba,ebe,eeb,ce{\ltimes},e{\ltimes}{\ltimes}\}\)
- cccabbd
- ccaecbea
- d
- a
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abcc,adad,badd,bbdb,bddb,ccda,dbcb\}\)
- dddb
- dbbcb
- dbd
- ddbcbddba
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,ab,ba,ca,cc,ce,ec,a{\ltimes}\}\)
- eada
- dcbbda
- cca
- ca
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}dd,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}ddb,{\rtimes}abd,{\rtimes}b{\ltimes}{\ltimes},bbbb,dbbb,ddbb,abd{\ltimes},bbb{\ltimes},bd{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- bbca
- cc
- dcadbd
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aba,baa,bab,bba\}\)
- a
- b
- bb
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}d{\ltimes},{\rtimes}da,acb,adc,bdd,cbd,dac,dad,dcd,dda,cd{\ltimes},d{\ltimes}{\ltimes}\}\)
- d
- baabad
- dadcd
- acbcacbcbd
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aace,abdd,cabe,cbdd,ccda,eddb,eecd\}\)
- ecaadd
- e
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}baa,{\rtimes}bba,{\rtimes}ab{\ltimes},{\rtimes}b{\ltimes}{\ltimes},aaba,abab,abbb,baab,babb,bbaa,bbba,baa{\ltimes},bba{\ltimes},ba{\ltimes}{\ltimes},ab{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- ab
- baa
- bba
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{bddd,bedc,cbea,cdce,ebca,ecab\}\)
- \(\varepsilon\)
- becaae
- bcebadc
- e
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ad,ca,cb,cd\}\)
- ddb
- adaabdda
- c
- \(\varepsilon\)
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}e{\ltimes},{\rtimes}{\rtimes}ea,{\rtimes}{\rtimes}be,{\rtimes}{\rtimes}ba,{\rtimes}e{\ltimes}{\ltimes},{\rtimes}bea,{\rtimes}eaa,{\rtimes}ba{\ltimes},abac,aeab,beae,eaba,eaea,eaa{\ltimes},bac{\ltimes},ba{\ltimes}{\ltimes},ac{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- eaa
- ba
- e
- accadead
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{bbba,bbbb,bcdd,cbac,dacb\}\)
- bacaaac
- bcdcdba
- cbcdaabc
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,ca,ce,dc,ec,ed,ee,a{\ltimes}\}\)
- b
- cdaa
- ddd
- ca
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ae,{\rtimes}{\rtimes}e{\ltimes},{\rtimes}aeb,{\rtimes}e{\ltimes}{\ltimes},aebb,bbeb,bebe,ebbe,ebe{\ltimes},be{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- edadaea
- a
- edb
- aa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aadd,abba,addb,bacb,cbec,cdcb\}\)
- b
- e
- \(\varepsilon\)
- ce
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}b,{\rtimes}dd,{\rtimes}ba,bac,cdb,dba,dcd,ddc,ac{\ltimes},ba{\ltimes},c{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- ba
- bbbadab
- babdaab
- bac
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ac,ba,bb,ca,cb,b{\ltimes}\}\)
- cabc
- \(\varepsilon\)
- ccaabbb
- c
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ca,cd,eb\}\)
- e
- ddede
- \(\varepsilon\)
- eeecbad
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,bc,be,ca,cc,da,db,dc\}\)
- bdcaec
- \(\varepsilon\)
- bdabdb
- cbccbc
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bbb,bcb,bce,bed,cea,daa,dbc\}\)
- dcedc
- \(\varepsilon\)
- e
- d
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,baa,bab,bbb\}\)
- \(\varepsilon\)
- b
- a
- ababa
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ab,{\rtimes}b{\ltimes},{\rtimes}ba,abb,bab,bba,ab{\ltimes},b{\ltimes}{\ltimes}\}\)
- a
- \(\varepsilon\)
- abb
- bbbaab
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,baa,bab,bba,bbb\}\)
- abaaa
- aaaaa
- aaaaabaaa
- bbbbbb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aacd,abad,acbb,cade,cdee,ddad,edac\}\)
- \(\varepsilon\)
- edceee
- ce
- acacae
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}cd,{\rtimes}bd,ace,bda,ced,dac,dcb,edc,cd{\ltimes},cb{\ltimes},b{\ltimes}{\ltimes},d{\ltimes}{\ltimes}\}\)
- abadad
- becba
- dbdedca
- dbb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}baa,{\rtimes}bca,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aabb,abbb,baab,bca{\ltimes},bbb{\ltimes},ca{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- aac
- c
- bca
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaab,abab,abba,abbb,baaa,babb,bbbb\}\)
- b
- \(\varepsilon\)
- a
- abbb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bb,b{\ltimes}\}\)
- \(\varepsilon\)
- abbbaa
- bbabaa
- aabbbbbaaaaa
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,bb,bc,cb,c{\ltimes}\}\)
- \(\varepsilon\)
- b
- a
- ab
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{acc,bdc,cbd,ccc,daa,dab,dcd,ddc\}\)
- \(\varepsilon\)
- bacbbc
- b
- dcaabda
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}d{\ltimes},{\rtimes}dc,{\rtimes}bc,bcc,cce,ced,edb,dc{\ltimes},db{\ltimes},b{\ltimes}{\ltimes},d{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- ebd
- dc
- d
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes},{\rtimes}aa,aaa,aab,aba,abb,baa,bab,bb{\ltimes},b{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- aaababab
- bbbab
- b
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,cb,cc\}\)
- b
- \(\varepsilon\)
- aba
- bcacb
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}a{\ltimes},{\rtimes}bb,aab,abb,baa,bab,bba,bb{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- bbbbba
- aaba
- a
- bb
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,ba,bb,da\}\)
- a
- b
- bcc
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}aaa,{\rtimes}abb,{\rtimes}ab{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes}{\ltimes},aaaa,aaab,aaba,abaa,baaa,aaa{\ltimes},abb{\ltimes},ab{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- ab
- bab
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}d,aa,ac,ae,bc,ca,cb,ce,dc,dd,ea,eb,b{\ltimes}\}\)
- eecbbdbdb
- ccc
- cbdbead
- dcbebca
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}baa,aabc,abcb,baab,bcba,cba{\ltimes},ba{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- caaaba
- a
- bac
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,{\rtimes}c,ad,bb,bc,ca,cd,db,dc,dd,c{\ltimes}\}\)
- \(\varepsilon\)
- dbb
- bdaabddcca
- ccabbacbcd
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}cb,{\rtimes}{\ltimes}{\ltimes},{\rtimes}ac,aca,bac,bba,cbb,ac{\ltimes},ca{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- ddcd
- daada
- ca
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{baaa,bbcb,bccb,bdaa,cdab,cdcd,ddbd,dddc\}\)
- dbcc
- \(\varepsilon\)
- cabda
- adcdda
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}da,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}dad,{\rtimes}cb{\ltimes},{\rtimes}b{\ltimes}{\ltimes},aaab,aaba,abaa,adca,baaa,caab,dadc,dcaa,aab{\ltimes},ab{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- caaddaccada
- cb
- b
- dadcaab
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aabb,abba,baaa,bbbb\}\)
- babab
- b
- bbb
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,b{\ltimes}\}\)
- b
- abbabb
- ababab
- \(\varepsilon\)
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}c{\ltimes},{\rtimes}bc,aac,acb,baa,bca,bcb,cba,cbc,bc{\ltimes},ca{\ltimes},c{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- ca
- aabbc
- baa
- \(\varepsilon\)
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,abba,baab,babb,bbaa,bbab,bbba\}\)
- baaaaaaaba
- bababbbba
- ba
- aabbb
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,aa,ab,ba,bb,a{\ltimes}\}\)
- abab
- aabbaba
- bb
- aa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}db,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}dbc,{\rtimes}cb{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},abad,acab,adac,bada,bcda,cdab,daba,daca,dbcd,cab{\ltimes},ab{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- cb
- \(\varepsilon\)
- bc
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aacc,bbcc,cbac,cbcb\}\)
- aa
- bc
- ba
- bbbac
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ac,ba,db,dc\}\)
- b
- \(\varepsilon\)
- aaaba
- bdb
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ca,dd,ee\}\)
- cc
- adaaeab
- e
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}d,bc,bd,cd,db,de,ea,eb,ed,a{\ltimes}\}\)
- dea
- ecdbedacba
- bedcdcdbdd
- beecaceda
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}a,{\rtimes}eb,{\rtimes}aa,aac,acd,bba,cdb,dbb,eb{\ltimes},ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- c
- eeeb
- dddbb
- ddeda
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}aba,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aacc,abaa,accb,baac,bbca,bcab,cabc,cbbc,ccbb,abc{\ltimes},bc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes}\}\)
- aabcaab
- c
- \(\varepsilon\)
- cabacaac
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,ba,ca,cb\}\)
- acc
- \(\varepsilon\)
- a
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ac,ad,cb,db,dc,dd\}\)
- bdaad
- \(\varepsilon\)
- b
- a
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}c{\ltimes},{\rtimes}ac,ace,ade,bad,ceb,ded,eba,eda,da{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- beee
- c
- ecbbbab
- b
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}cb,bbc,bcc,cbb,cca,ca{\ltimes},a{\ltimes}{\ltimes}\}\)
- cbbc
- c
- b
- a
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ad,ba,bb,bc,db,dd\}\)
- bccabbbd
- a
- \(\varepsilon\)
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}db,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}cc,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}dbb,{\rtimes}cc{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaba,acaa,bbdc,bdca,caab,caca,dbbd,dcac,aba{\ltimes},ba{\ltimes}{\ltimes},cc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- abaddeddc
- dbabdebbbe
- edcaccde
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abaa,baba,bbaa,bbba\}\)
- \(\varepsilon\)
- ababaaa
- bbabbb
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}b,ab,ac,ba,cb,cc,a{\ltimes},b{\ltimes}\}\)
- \(\varepsilon\)
- cab
- cc
- cacab
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ac,ba,bb,bc,ca,cb,cc\}\)
- \(\varepsilon\)
- bbba
- a
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,{\rtimes}aa,acb,bac,bcc,cbc,ccc,ccd,cda,da{\ltimes},aa{\ltimes},a{\ltimes}{\ltimes}\}\)
- c
- bacbccda
- \(\varepsilon\)
- aa
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}bb,aab,baa,bba,bbb,ab{\ltimes},b{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- ba
- abba
- bbaab
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}ba,{\rtimes}aaa,{\rtimes}bb{\ltimes},{\rtimes}bab,{\rtimes}b{\ltimes}{\ltimes},abba,babb,bbab,bab{\ltimes},aaa{\ltimes},ab{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- bb
- aaa
- aaaaaaaa
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ac,bb,cc,cd,da,dc,dd\}\)
- aacdccb
- \(\varepsilon\)
- ccaabdcd
- b
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ad,bd,cd,dc,dd\}\)
- b
- \(\varepsilon\)
- dcccaca
- a
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,baa,bab,bbb\}\)
- abba
- b
- bba
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aba,baa,bbb\}\)
- aa
- baaabb
- baabbbaba
- aab
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}cd,{\rtimes}bd,aab,abc,acd,aea,bca,cae,cda,daa,dac,ea{\ltimes},bd{\ltimes},d{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- cdaabcaea
- daedeeabad
- bebcdbbbd
- bd
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,ab,ad,bc,bd,ca,db,dc,dd,c{\ltimes}\}\)
- aada
- cdccdaad
- \(\varepsilon\)
- bdcb
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}cc,{\rtimes}{\rtimes}ba,{\rtimes}acc,{\rtimes}baa,{\rtimes}cc{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aabc,abcc,baab,bccb,ccba,acc{\ltimes},cba{\ltimes},ba{\ltimes}{\ltimes},cc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- acc
- \(\varepsilon\)
- cabacc
- cc
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}bab,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}bb{\ltimes},abba,abbb,babb,bbab,bbbb,bbb{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- abbaaa
- \(\varepsilon\)
- babbaabb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}ba,{\rtimes}aa,aab,aba,abb,bab,bbc,bcb,cbc,bc{\ltimes},ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- b
- bc
- ba
- cab
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,bb,bc\}\)
- \(\varepsilon\)
- acccb
- ba
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abc,acd,baa,bdc,dac,dcd\}\)
- b
- \(\varepsilon\)
- bdabddbbd
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{bd,cb,eb,ec,ee\}\)
- eecde
- \(\varepsilon\)
- eadaab
- eaebdebbd
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,ba,bc,ca,cb\}\)
- ccca
- acca
- c
- acbcb
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ad,bc,bd,cd,da,dd\}\)
- ddcaddaa
- cbdadad
- \(\varepsilon\)
- daccacbacd
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aadb,abbb,adbd,cdac,dcac,dcdb\}\)
- a
- b
- \(\varepsilon\)
- cadcb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,ba,bb,bc,ca,cb\}\)
- cacbba
- cb
- ccbbac
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}cb,{\rtimes}aa,bcc,bdb,cbd,dbc,cc{\ltimes},aa{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- aa
- acc
- a
- bcc
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}cc,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}ccb,{\rtimes}b{\ltimes}{\ltimes},bccb,bccc,cbcc,ccbc,cccb,cccc,ccb{\ltimes},cb{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- ccb
- b
- acbccacbbbc
- ccbccb
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}ba,{\rtimes}cbd,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}baa,aaba,abab,baab,cbd{\ltimes},bab{\ltimes},ab{\ltimes}{\ltimes},bd{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- cbbcbc
- aac
- cbd
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}d,aa,ad,da,dd,d{\ltimes}\}\)
- d
- ddd
- bd
- dd
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}e{\ltimes},{\rtimes}ca,aab,abb,abc,baa,bba,bca,cab,cac,ac{\ltimes},e{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- bbabea
- cbeccbcad
- aceaae
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}aba,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes}{\ltimes},aaab,aabb,abaa,abbb,baaa,bbaa,bbba,baa{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- abaa
- b
- \(\varepsilon\)
- aabaa
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}aba,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}bba,{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaac,aaca,acaa,acca,bacc,bbac,caaa,caca,ccac,aca{\ltimes},aba{\ltimes},ba{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- bbaccabca
- acbccbccbcb
- \(\varepsilon\)
- a
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ac,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}aca,{\rtimes}ba{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aacc,acaa,accc,caac,cccc,ccc{\ltimes},ba{\ltimes}{\ltimes},cc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- baaaa
- ccaa
- bccac
- cab
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}bb,{\rtimes}aab,{\rtimes}bbb,aaba,abaa,baab,bbb{\ltimes},aba{\ltimes},ba{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- abbbaa
- abbabba
- aaabb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ba,bb\}\)
- \(\varepsilon\)
- a
- bbbabb
- abb
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}da,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}dad,{\rtimes}bc{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},adad,adbc,bcda,cdad,dada,dadb,dbcd,dad{\ltimes},ad{\ltimes}{\ltimes},bc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes}\}\)
- badcc
- bc
- \(\varepsilon\)
- cbcdad
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aabc,abab,abba,acab,cabb\}\)
- acacccbab
- \(\varepsilon\)
- cc
- bacbbccccc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ba,bb,ca,cc,ce,db,eb\}\)
- bebecda
- \(\varepsilon\)
- b
- e
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,ac,ba,bb,ca,cd,db,a{\ltimes}\}\)
- ddda
- dbad
- \(\varepsilon\)
- ca
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}aa,{\rtimes}aab,aaab,aabb,abba,baaa,bbaa,aab{\ltimes},ab{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- aab
- baa
- abbbaab
- abbb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{bb,bc,be,ca,cb,ea,eb,ee\}\)
- \(\varepsilon\)
- a
- bacacbc
- dbcae
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaca,aacb,abba,abbb,abca,abcb,babc,ccaa\}\)
- \(\varepsilon\)
- ac
- b
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aad,ada,baa,bcb,bcc,cab,ccd,dcd\}\)
- aaabddabd
- \(\varepsilon\)
- dbaaa
- abacd
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aac,abc,aca,baa,cac,cbb,cbc\}\)
- \(\varepsilon\)
- acbcbcbaccb
- ab
- bbcca
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}d,{\rtimes}cb,{\rtimes}dc,add,bca,cad,cbc,dcc,ddc,ddd,dc{\ltimes},cc{\ltimes},c{\ltimes}{\ltimes}\}\)
- ddccc
- dc
- bbbaaa
- dcc
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,bac,bcd,bdc,cca,cdb\}\)
- b
- \(\varepsilon\)
- cadc
- acacdd
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}e,{\rtimes}d,be,de,eb,ed,ee,e{\ltimes},d{\ltimes}\}\)
- ed
- a
- d
- e
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,{\rtimes}d,ab,ad,ba,bb,bc,cb,da,db,dd,c{\ltimes},b{\ltimes}\}\)
- accaacd
- cccbbcab
- b
- caddad
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aabb,abba,baab\}\)
- bbababbbabab
- ba
- \(\varepsilon\)
- aaababaaa
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{baaa,baeb,bcaa,ccce,ebea\}\)
- bcdddbe
- de
- a
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}d,ac,bc,cb,cd,da,dc,dd,b{\ltimes}\}\)
- bdbdaaa
- dbbba
- adddc
- cca
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,bba\}\)
- aaababaabb
- bb
- bba
- aaaab
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{acbb,acec,bcaa,cbad,cead,ebee\}\)
- \(\varepsilon\)
- cdebcbb
- dad
- eed
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}aba,{\rtimes}abb,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes}{\ltimes},aabb,abba,abbb,baab,bbaa,bbba,bbbb,aba{\ltimes},bba{\ltimes},ba{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- \(\varepsilon\)
- aaa
- aba
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}bbc,{\rtimes}cba,{\rtimes}b{\ltimes}{\ltimes},aacb,acba,bbca,bcaa,caac,cbab,bab{\ltimes},cba{\ltimes},ba{\ltimes}{\ltimes},ab{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- abc
- acaccb
- caaaaca
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{cabd,cbbc,daeb,eccc\}\)
- deeaaab
- \(\varepsilon\)
- adba
- ddadbced
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{adac,cbcd,dacb,dacc,dcaa\}\)
- abcbbbdaad
- b
- dbcddddda
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}da,abc,aca,bcb,bda,cab,cbd,dac,ac{\ltimes},c{\ltimes}{\ltimes}\}\)
- bdbb
- bddeecacce
- \(\varepsilon\)
- dac
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,bb,cc,cd,da,dc\}\)
- bbda
- a
- \(\varepsilon\)
- b
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aeed,baae,baea,bdec,caad,ecbd\}\)
- eddc
- \(\varepsilon\)
- deacdaa
- deddcbdd
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}aa,aab,aba,abb,baa,bab,bba,aa{\ltimes},a{\ltimes}{\ltimes}\}\)
- a
- abbbaaaabb
- bbbbbaaaa
- \(\varepsilon\)
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}baa,{\rtimes}aba,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaba,abaa,abab,baab,baa{\ltimes},bab{\ltimes},ab{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- baaa
- bbaaab
- aaabaaa
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,baa,bab,bba,bbb\}\)
- ababa
- ab
- abbbaa
- b
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,aa,ab,ba,bb,b{\ltimes}\}\)
- babbb
- b
- aaaabb
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aed,bea,cee,dbe,dcd,ded,edd\}\)
- cee
- baceaa
- \(\varepsilon\)
- ce
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abba,abcb,acaa,acab\}\)
- b
- \(\varepsilon\)
- a
- c
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,ab,bb,bc,ca,cb,cc,b{\ltimes}\}\)
- \(\varepsilon\)
- aacbbbcb
- abbbcb
- cabbabbb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,abab,baba,bbab,bbbb\}\)
- \(\varepsilon\)
- bb
- abaab
- bbaaaa
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}aaa,{\rtimes}cbc,{\rtimes}{\ltimes}{\ltimes}{\ltimes},aaac,aaba,aacb,abaa,acbc,baab,bcaa,caab,cbca,aab{\ltimes},cbc{\ltimes},ab{\ltimes}{\ltimes},bc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- cbc
- ccbccb
- aaa
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}c,{\rtimes}c{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}cc,cab,cca,ccc,ab{\ltimes},b{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- acbbaacacaa
- \(\varepsilon\)
- ca
- c
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}db,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}d{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}db{\ltimes},{\rtimes}d{\ltimes}{\ltimes},{\rtimes}bba,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}bbd,acac,bbdc,bdca,caca,cacc,dcac,acc{\ltimes},bba{\ltimes},ba{\ltimes}{\ltimes},db{\ltimes}{\ltimes},cc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- dcbaadd
- db
- \(\varepsilon\)
- d
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,aa,ab,ba,bb,a{\ltimes}\}\)
- bbb
- ba
- bba
- baaab
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,acbd,cbad,cbcb,ddbc\}\)
- dbcabcdcda
- ca
- ccbaabdbd
- abccbada
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}b,aa,bb,bc,ca,cc,a{\ltimes}\}\)
- \(\varepsilon\)
- bbbca
- abb
- cbbaba
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ba,bc,cb,db,dd,ee\}\)
- \(\varepsilon\)
- bcdcb
- eeecdedc
- becb
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}b,aa,ab,ba,b{\ltimes}\}\)
- b
- aba
- aaab
- aaabbabaa
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abbb,cbcd,ccbb,dccc\}\)
- c
- a
- b
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}da,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}aba,{\rtimes}dac,{\rtimes}{\ltimes}{\ltimes}{\ltimes},abac,acac,acdb,baca,cacd,cdb{\ltimes},dac{\ltimes},db{\ltimes}{\ltimes},ac{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- addd
- \(\varepsilon\)
- dac
- bdcbbcbd
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,acac,cbaa,cbcb,ccaa,ccca\}\)
- ccac
- ccbbc
- b
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}da,{\rtimes}dad,abec,adda,adea,beca,cade,dabe,dadd,ddab,ecad,dea{\ltimes},ea{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- bbdeb
- ebcac
- aee
- cbada
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}bc,{\rtimes}ca,adb,bcc,bda,cad,cca,daa,dbd,aa{\ltimes},ca{\ltimes},a{\ltimes}{\ltimes}\}\)
- abb
- \(\varepsilon\)
- bcca
- ca
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,{\rtimes}d,ac,bb,bc,ca,cb,b{\ltimes},d{\ltimes}\}\)
- da
- bca
- ca
- dbadc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}aa,aaa,aab,abb,bbb,bb{\ltimes},aa{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- aa
- aaa
- abaaaa
- ba
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}cd,{\rtimes}cdd,{\rtimes}bbb,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}bc{\ltimes},cdda,daca,ddac,aca{\ltimes},bbb{\ltimes},bc{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- c
- abba
- bb
- dba
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}c,aa,ab,ba,bb,bc,ca,cb,cc,b{\ltimes}\}\)
- dcaaba
- cb
- ccb
- cbb
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}bb,aaa,abb,baa,bab,bba,bbb,aa{\ltimes},a{\ltimes}{\ltimes}\}\)
- bbaa
- b
- bbaaa
- bbbaa
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,aa,ab,ba,bb,bd,db,d{\ltimes}\}\)
- bd
- \(\varepsilon\)
- cdacaa
- bbd
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,bba,bca,bcb,cbb\}\)
- bbac
- bbc
- bbccb
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}d,bb,bc,bd,cd,db,dc,dd,c{\ltimes}\}\)
- cbaaa
- \(\varepsilon\)
- cacda
- ddcbccdbd
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}b,aa,ab,ba,a{\ltimes},b{\ltimes}\}\)
- babb
- a
- b
- aa
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}e,aa,bd,be,db,dd,ea,eb,e{\ltimes},a{\ltimes}\}\)
- \(\varepsilon\)
- e
- ea
- ddd
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}d{\ltimes},{\rtimes}{\rtimes}da,{\rtimes}d{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}dad,adcb,adcd,bcad,cadc,cbca,dadc,dcbc,dcd{\ltimes},cd{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes}\}\)
- ccaddcbcc
- a
- d
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}aa,{\rtimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes},aaa,aac,ace,adb,bae,bda,ceb,dad,dba,ebd,ae{\ltimes},e{\ltimes}{\ltimes},b{\ltimes}{\ltimes}\}\)
- daad
- dcaa
- \(\varepsilon\)
- b
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}e,{\rtimes}db,{\rtimes}{\ltimes}{\ltimes},{\rtimes}ed,bbd,bdc,bee,cde,ceb,dbe,dcd,ebb,ece,eec,ed{\ltimes},de{\ltimes},d{\ltimes}{\ltimes},e{\ltimes}{\ltimes}\}\)
- ed
- \(\varepsilon\)
- badde
- eaccecaed
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,abb,bab,bba,bbb,bb{\ltimes},b{\ltimes}{\ltimes}\}\)
- babb
- \(\varepsilon\)
- babbb
- aa
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ae,bc,bd,cb,dc\}\)
- bcbcdba
- d
- bceecaabbee
- ab
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb,baa,bab,bba,bbb\}\)
- bbbaba
- bbabbba
- b
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abd,dae,dbc,eab\}\)
- \(\varepsilon\)
- eaaccb
- bacaecec
- dabedb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bed,cce,cdb,cdd\}\)
- \(\varepsilon\)
- be
- abbaddd
- cdcd
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{adbd,badd,bdbd,ccba,dbdb,deab,eacb\}\)
- aa
- ebce
- dead
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aaba,baaa,baba,bbaa,bbab,bbba,bbbb\}\)
- babbb
- \(\varepsilon\)
- aaaabbab
- b
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}ba,aaa,abc,bab,bca,caa,aa{\ltimes},a{\ltimes}{\ltimes}\}\)
- aabbaa
- ccbcaabc
- bcbbcca
- ccbab
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}d,{\rtimes}{\ltimes}{\ltimes},{\rtimes}dc,{\rtimes}cc,bda,cbd,ccb,ccc,dac,dc{\ltimes},ac{\ltimes},c{\ltimes}{\ltimes}\}\)
- cbabdca
- dc
- abdd
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}d,ab,ba,bc,cb,cc,b{\ltimes},d{\ltimes}\}\)
- dbbbabdc
- d
- abbbdd
- ddab
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aac,ada,cad,dad\}\)
- a
- baabbaba
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}aa,{\rtimes}aad,aadb,abdd,adba,babd,dbab,bdd{\ltimes},dd{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes}\}\)
- cb
- aad
- bbc
- adcb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aeb,bbe,bdb,cad,cba,dcb,eac,edc\}\)
- dabcecbbccbe
- \(\varepsilon\)
- e
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ba,bc,ca\}\)
- cbb
- bb
- cccbabb
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,abb,baa,bbb\}\)
- bbb
- aaaaaabba
- ababaaba
- bba
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aba,abb,bba\}\)
- aaaaa
- b
- \(\varepsilon\)
- babba
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,abb,bab,bba\}\)
- bb
- b
- a
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ba,bb,bd,db,dc,dd\}\)
- abca
- \(\varepsilon\)
- b
- badbab
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}c,{\rtimes}{\ltimes}{\ltimes},{\rtimes}cc,cbd,ccb,ccc,bd{\ltimes},d{\ltimes}{\ltimes}\}\)
- a
- c
- ccbd
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aabb,abaa,abab,abbb,baba,babb,bbba\}\)
- bbbab
- \(\varepsilon\)
- abbbb
- b
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}cc,aba,abb,bab,bbc,bcc,cab,cba,cca,ccb,ccc,ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- ccbabccbc
- ccba
- ccccabbaaaba
- cccba
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abb,ada,add,bdc,cba,dad,dcb\}\)
- \(\varepsilon\)
- dbddc
- b
- ddc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}d,aa,ab,ba,bc,cb,cc,cd,da,a{\ltimes}\}\)
- \(\varepsilon\)
- dbabdcc
- a
- aa
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aaba,abba,baaa,baba,bbab,bbba\}\)
- \(\varepsilon\)
- aaab
- bbbab
- ababbb
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ab,{\rtimes}bb,aab,aba,abb,baa,bab,bba,bbb,bb{\ltimes},ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- baabaa
- \(\varepsilon\)
- bbb
- aabbab
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}ac,{\rtimes}ba,aba,abc,bab,bcc,ac{\ltimes},cc{\ltimes},c{\ltimes}{\ltimes}\}\)
- ac
- bb
- babcc
- acbacb
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}c{\ltimes},{\rtimes}bc,{\rtimes}ca,aac,acc,bbb,caa,cbb,ccb,bb{\ltimes},bc{\ltimes},b{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- caabcbc
- c
- bc
- aacba
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,aba,bba,bbb\}\)
- babba
- \(\varepsilon\)
- abaababaa
- baabbb
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ad,ca,cc,cd,ed\}\)
- bd
- cecd
- abcaeb
- abdbadad
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{acc,aeb,aed,bba,cde,ded,edd\}\)
- bdc
- \(\varepsilon\)
- aa
- e
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,abcb,acbc,bcac,bcba,cabb,cbbc,ccaa\}\)
- a
- ac
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,abab,abba,bbbb,caab,cbac,ccac,ccba\}\)
- bcbbcaccbbcb
- ab
- abbbacbbaaa
- aacbacbbab
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,ba,bb,bc,cb,cc\}\)
- aca
- \(\varepsilon\)
- b
- a
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ad,bb,bc,cb,cd,db,dd\}\)
- aabc
- bdd
- \(\varepsilon\)
- ccbb
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaac,aaba,babb,bbba,bcac,bcbc,caaa,ccba\}\)
- aabc
- b
- bbbaccaca
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}aba,{\rtimes}{\ltimes}{\ltimes}{\ltimes},abac,acde,bacd,cdec,decc,eccc,ccc{\ltimes},cc{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes}\}\)
- adbaebec
- \(\varepsilon\)
- edcedaae
- b
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaba,abba,baaa,baba,babb\}\)
- babba
- b
- baaabb
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}d,cc,cd,ce,da,dc,dd,ec,a{\ltimes}\}\)
- abdb
- dd
- \(\varepsilon\)
- eccdcaadca
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,accb,bbbb,cadc,cbcd,ccbb,ddcb,dddb\}\)
- cbbb
- ddcca
- acb
- ccdbbcd
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abc,aca,acb,bab,bbb,bcc,cba,ccb\}\)
- bbcbabcb
- cbbcabaaca
- bb
- baaabb
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,{\rtimes}c,ab,ac,ba,bb,bc,cb,cc,c{\ltimes},b{\ltimes}\}\)
- aacbabbbccab
- bbacbcbbbaa
- acaaaccabbca
- bcabcbcc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aabb,abaa,abba,baaa,baab,baba,bbaa,bbab\}\)
- \(\varepsilon\)
- aaaaba
- abb
- abbba
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}bd,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}bdb,{\rtimes}c{\ltimes}{\ltimes},aaab,aaba,baaa,bbaa,bdbb,dbba,aba{\ltimes},ba{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes}\}\)
- ddcbaaac
- dbbabc
- \(\varepsilon\)
- c
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ac,ad,bb,bd,ca,ee\}\)
- b
- e
- \(\varepsilon\)
- c
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}ee,{\rtimes}ee{\ltimes},{\rtimes}aba,{\rtimes}c{\ltimes}{\ltimes},abac,abdc,acab,baca,bdce,cabd,ceeb,dcee,eeb{\ltimes},eb{\ltimes}{\ltimes},ee{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- dbdbc
- c
- beba
- ee
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}cb,{\rtimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes},{\rtimes}ab,aab,abb,aca,bbc,bca,bcb,caa,cac,cba,cbc,ab{\ltimes},ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- acc
- cabccacbbcba
- \(\varepsilon\)
- baaabaabaabb
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,bc,bd,cb,da\}\)
- \(\varepsilon\)
- aaa
- cbad
- cdbcc
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}bd,aec,bca,bde,cae,cbc,dcb,ded,ecc,edc,cc{\ltimes},c{\ltimes}{\ltimes}\}\)
- aaa
- d
- \(\varepsilon\)
- aebdc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}cc,{\rtimes}ccb,{\rtimes}bbb,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}ab{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},accb,bacc,cbac,cbcc,ccba,ccbc,bcc{\ltimes},bbb{\ltimes},ab{\ltimes}{\ltimes},cc{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- c
- \(\varepsilon\)
- cbacaacab
- ab
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}b,ab,ba,bb,a{\ltimes}\}\)
- a
- aaabbabb
- \(\varepsilon\)
- bbbb
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,addb,aeba,ddcc\}\)
- e
- \(\varepsilon\)
- b
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}e,ae,ba,ce,de,eb,ec,ed,ee,c{\ltimes},a{\ltimes}\}\)
- \(\varepsilon\)
- bbadbed
- a
- beaadcec
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}d,{\rtimes}de,{\rtimes}ee,{\rtimes}d{\ltimes},adb,bdc,ceb,dbd,dce,dea,ead,eb{\ltimes},ee{\ltimes},b{\ltimes}{\ltimes},e{\ltimes}{\ltimes},d{\ltimes}{\ltimes}\}\)
- eec
- bdcad
- deddaaae
- d
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes},{\rtimes}bc,aaa,aab,aba,aca,bac,bca,caa,bc{\ltimes},aa{\ltimes},b{\ltimes}{\ltimes},c{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- baaacabaac
- b
- bc
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}bc,{\rtimes}{\rtimes}c{\ltimes},{\rtimes}{\rtimes}da,{\rtimes}{\rtimes}ce,{\rtimes}ced,{\rtimes}c{\ltimes}{\ltimes},{\rtimes}bc{\ltimes},{\rtimes}dac,abcb,acdc,bcbd,cbdb,cdab,cdcd,dabc,dacd,dcda,ced{\ltimes},bdb{\ltimes},db{\ltimes}{\ltimes},bc{\ltimes}{\ltimes},ed{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- a
- beeddbbaecb
- dcc
- bbcc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}eb,{\rtimes}{\rtimes}dc,{\rtimes}{\rtimes}ed,{\rtimes}ebe,{\rtimes}dc{\ltimes},{\rtimes}edd,bccd,bedb,ccdc,cdce,ceba,dbcc,dceb,ebed,edbc,eba{\ltimes},edd{\ltimes},dc{\ltimes}{\ltimes},ba{\ltimes}{\ltimes},dd{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- adcaedeeea
- dc
- abbccb
- edd
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,bbcb,cacb,cbab,ccbb\}\)
- ca
- ababcab
- \(\varepsilon\)
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}e{\ltimes},{\rtimes}{\rtimes}eb,{\rtimes}{\rtimes}ec,{\rtimes}{\rtimes}cd,{\rtimes}eca,{\rtimes}cda,{\rtimes}e{\ltimes}{\ltimes},{\rtimes}eb{\ltimes},aede,cdae,daed,deae,eaed,edea,eca{\ltimes},aed{\ltimes},eb{\ltimes}{\ltimes},ed{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- cbcccbbba
- ddaca
- \(\varepsilon\)
- eadab
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aabd,abdc,acbb,acbc,adda,ddab\}\)
- baac
- caaacdcbaba
- cccbaac
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaca,abad,abca,bacd,daaa\}\)
- dadbdac
- \(\varepsilon\)
- b
- cbcdc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,ae,cb,cc,ce,da\}\)
- cbae
- bda
- dcbbeea
- dba
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,bb,bc,cb,cc,c{\ltimes}\}\)
- bc
- bbc
- bca
- c
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}ab,{\rtimes}aaa,{\rtimes}abc,aaac,aaca,acac,cacb,abc{\ltimes},acb{\ltimes},bc{\ltimes}{\ltimes},cb{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- aac
- acac
- cbc
- abc
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},{\rtimes}c,aa,ab,ac,ba,bc,ca,cb,a{\ltimes},c{\ltimes}\}\)
- bcabc
- \(\varepsilon\)
- baaaa
- ccaabc
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaba,aabb,baba,bbba\}\)
- ab
- bbaaab
- b
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}ba,{\rtimes}ca,abb,aca,bbb,bbc,bcc,cab,cac,cca,bb{\ltimes},ba{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- bbcbaaa
- bacbabaa
- bbcc
- baacabc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aba,baa,bab,bba,bbb\}\)
- aabababa
- bab
- baab
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}c,aa,ab,ac,ba,ca,cb,b{\ltimes}\}\)
- cbbab
- c
- \(\varepsilon\)
- a
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,aaa,aab,aba,abb,baa,bab,bba,ab{\ltimes},b{\ltimes}{\ltimes}\}\)
- abab
- bbaaaaaba
- \(\varepsilon\)
- baabba
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,aa,ab,ac,ba,bb,ca,cc,a{\ltimes}\}\)
- cacc
- babb
- acaacabba
- cc
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}aaa,{\rtimes}bab,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes}{\ltimes},aaab,aaba,abab,abba,baba,babb,bbab,bab{\ltimes},abb{\ltimes},ab{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- b
- bab
- bbaabab
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ac,ba,bb,cc,cd,eb,ee\}\)
- dbaa
- \(\varepsilon\)
- dd
- a
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abaa,abba,acab,bccb,cbbb,cbcb,cccc\}\)
- bababc
- baccacaab
- \(\varepsilon\)
- aaabbabcab
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aba,abb,baa,bab,bba,bbb\}\)
- a
- \(\varepsilon\)
- abaaa
- b
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ac,{\rtimes}ba,acb,adc,bca,cad,cbc,dc{\ltimes},ba{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- cc
- ba
- dcacdbb
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}ba,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}b{\ltimes}{\ltimes},{\rtimes}bba,{\rtimes}bab,{\rtimes}{\ltimes}{\ltimes}{\ltimes},abbb,babb,bbba,bba{\ltimes},ba{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- bba
- abbab
- \(\varepsilon\)
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}d,bb,bc,cd,db,dc,c{\ltimes}\}\)
- ca
- dc
- dbc
- bcbbad
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abac,abbb,acba,baba,babc,bcaa,ccab,ccac\}\)
- \(\varepsilon\)
- ccabaac
- b
- a
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{daca,dbeb,ebbc,ebed,ecda\}\)
- cebeee
- abebdebe
- eaadd
- beeeccc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ba,bb,b{\ltimes}\}\)
- b
- \(\varepsilon\)
- aab
- ab
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ba,bc,ca,dd\}\)
- bbacacaba
- cd
- dcbbbdbbc
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,aa,ab,ba,bb,b{\ltimes}\}\)
- baa
- aaaa
- bbabaaaabaa
- babaaa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},aa,ab,ba,bb,a{\ltimes}\}\)
- bbab
- a
- aa
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}cb,{\rtimes}{\rtimes}ba,{\rtimes}baa,{\rtimes}cbc,{\rtimes}ba{\ltimes},aaab,aaba,abaa,baaa,bcaa,caaa,cbca,baa{\ltimes},aaa{\ltimes},ba{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- baaa
- baa
- ba
- aabb
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}bab,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},abcb,babc,bacc,bcba,cbac,acc{\ltimes},cc{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes}\}\)
- bcbc
- ababcc
- c
- \(\varepsilon\)
- No
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,ab,ba,bb,b{\ltimes}\}\)
- baa
- ab
- babbbb
- \(\varepsilon\)
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}ba,{\rtimes}aa,aab,abb,baa,bab,bba,ab{\ltimes},aa{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- bbabba
- aab
- b
- aa
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}ba,{\rtimes}{\rtimes}ca,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}cac,{\rtimes}bab,{\rtimes}ba{\ltimes},{\rtimes}b{\ltimes}{\ltimes},aaca,abaa,baac,baba,aca{\ltimes},cac{\ltimes},ba{\ltimes}{\ltimes},ac{\ltimes}{\ltimes},ca{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- acbc
- caaca
- bbac
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}b,{\rtimes}e{\ltimes},{\rtimes}bd,aad,aba,add,baa,bde,cda,dab,ddb,dec,ecd,db{\ltimes},b{\ltimes}{\ltimes},e{\ltimes}{\ltimes}\}\)
- a
- e
- ebecaeeedab
- dceacaaaa
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aca,bda,cbb,daa,dcb\}\)
- daa
- \(\varepsilon\)
- cbb
- b
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}b,aa,ac,ba,bb,bc,cb,cc,a{\ltimes},b{\ltimes}\}\)
- bbccacabbb
- cabba
- bbca
- ccb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}bb,{\rtimes}{\rtimes}ed,{\rtimes}{\rtimes}d{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}ed{\ltimes},{\rtimes}d{\ltimes}{\ltimes},{\rtimes}bbc,{\rtimes}{\ltimes}{\ltimes}{\ltimes},addb,bbca,bcad,beea,cadd,dbee,ddbe,eea{\ltimes},ea{\ltimes}{\ltimes},ed{\ltimes}{\ltimes},d{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- eabecdd
- cacba
- dddaa
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,aba,acb,bba,cbb\}\)
- cca
- aabba
- \(\varepsilon\)
- a
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,aaba,aabb,abba,baab,baba,bbab,bbbb\}\)
- bbabb
- bbaa
- bbbbbb
- a
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ac,bb,ca,cc,cd\}\)
- cddcbccddd
- ab
- bdc
- bdcbacbacdc
- No
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,accb,baca,bcba,caca,cacc,ccbc\}\)
- bc
- \(\varepsilon\)
- cac
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}c{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}bb,{\rtimes}aa,aab,abb,baa,bba,bb{\ltimes},aa{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- abbb
- \(\varepsilon\)
- ab
- babcc
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}cc,{\rtimes}{\rtimes}ba,{\rtimes}baa,{\rtimes}cc{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},aacc,abbc,acca,baac,bbca,bcaa,cabb,ccab,caa{\ltimes},cc{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},c{\ltimes}{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- \(\varepsilon\)
- b
- cbbc
- abbbaaaa
- Yes
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aabb,abaa,abab,abba,baaa,baab,babb\}\)
- aaaba
- b
- aaababb
- baba
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{adc,bdc,ccb,dbd\}\)
- \(\varepsilon\)
- abdab
- cdcdb
- dcadacad
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{ab,bb,bc,ca,cb,da,dd\}\)
- cbbbbd
- b
- dbac
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aac,abb,abc,aca,acb,bca,cca\}\)
- \(\varepsilon\)
- cc
- bbaaabcb
- bbcabbcc
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{bd,ca,cb,cc,da\}\)
- b
- ac
- \(\varepsilon\)
- cbc
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ac,ba,bb,ca,cc\}\)
- \(\varepsilon\)
- cc
- c
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}d,aa,ac,ad,ae,ca,ce,da,dc,ed,e{\ltimes}\}\)
- cddecac
- aeaccccedbda
- ddcedbaceae
- ebedbdcceadc
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aed,bce,cea,ced\}\)
- e
- eabddb
- eeae
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,bba,bbc,bca,bcb,cba,cbc\}\)
- ccc
- aa
- ccbbaccaa
- cb
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}e,{\rtimes}{\rtimes}c,{\rtimes}cb,{\rtimes}ee,adb,dad,eda,eed,db{\ltimes},cb{\ltimes},b{\ltimes}{\ltimes}\}\)
- cc
- \(\varepsilon\)
- ee
- bd
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ba,bc,bd,cd,db\}\)
- cadccd
- cdcbdcadb
- b
- \(\varepsilon\)
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaab,aaba,abab,baab\}\)
- aaab
- a
- b
- \(\varepsilon\)
- No
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}{\ltimes},{\rtimes}c{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ac,{\rtimes}ab,aca,acb,bca,cab,cac,cbc,ab{\ltimes},b{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- cc
- bb
- cabac
- abbcb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ad,bc,bd,da,db,dd\}\)
- b
- \(\varepsilon\)
- ccd
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aec,cac,cce,dad\}\)
- a
- \(\varepsilon\)
- d
- b
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aba,abb\}\)
- abbbbba
- abbbaabbabba
- aaaaabaabab
- bbbaaabaa
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}ab,{\rtimes}{\rtimes}b{\ltimes},{\rtimes}b{\ltimes}{\ltimes},{\rtimes}aaa,{\rtimes}abb,aaaa,aaab,aaba,abb{\ltimes},aba{\ltimes},ba{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- bbaaba
- b
- \(\varepsilon\)
- a
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,bb,ca,cb\}\)
- cbcbb
- \(\varepsilon\)
- bb
- abcab
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aaa,aab,aca,acc,cab\}\)
- bac
- \(\varepsilon\)
- b
- bc
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{bbd,ccd,dcc,dda,ddb,ddc\}\)
- b
- adcacab
- abcbccb
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abcd,bbdd,bddc,ccac,ddbc\}\)
- bab
- ccddbb
- \(\varepsilon\)
- dbacbaa
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}a{\ltimes},{\rtimes}bb,acc,bac,bba,cab,cca,ab{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- cba
- a
- bcccbbb
- bcaacba
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,{\rtimes}{\ltimes},ab,ac,bc,bd,cb,cd,da,db,dc,c{\ltimes}\}\)
- dbbaccbcbaac
- cbcd
- addaa
- ccdbd
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaaa,accc,babb,bbbc,bcab,cacc\}\)
- aac
- cbcaac
- abcaac
- cb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,ac,ae,ba,bb,ca,ec,ee,c{\ltimes}\}\)
- bbac
- bac
- baec
- d
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}a,ab,ba,bb,a{\ltimes}\}\)
- abaab
- b
- aba
- a
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{aaed,adba,beae,ccdb,cddb,ceab\}\)
- d
- eabcbdcbace
- ddbceccce
- \(\varepsilon\)
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}{\ltimes},{\rtimes}b,{\rtimes}c,aa,ac,ba,cb,c{\ltimes},b{\ltimes}\}\)
- acac
- \(\varepsilon\)
- bbbb
- cbba
- No
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}d,{\rtimes}dc,{\rtimes}ac,acb,bcb,bdc,cbc,cbd,dca,dc{\ltimes},ca{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- cddaa
- ba
- \(\varepsilon\)
- dabbbb
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ac,bb,bc,cb,cc\}\)
- a
- b
- \(\varepsilon\)
- abba
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}a{\ltimes},{\rtimes}{\rtimes}ad,{\rtimes}a{\ltimes}{\ltimes},{\rtimes}ade,aade,adea,deaa,eaad,ade{\ltimes},de{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},e{\ltimes}{\ltimes}{\ltimes}\}\)
- ade
- becccdc
- a
- cdee
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}b,aa,ab,ba,bb,b{\ltimes}\}\)
- bab
- \(\varepsilon\)
- bb
- b
- Yes
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,{\rtimes}bb,aab,aba,abb,baa,bab,bba,bbb,bb{\ltimes},aa{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- bbbbbbbb
- b
- bbaabaaaba
- bbbbababaa
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}ac,{\rtimes}{\ltimes}{\ltimes},{\rtimes}bc,abb,acb,baa,bab,bba,bbb,bca,cac,cba,aa{\ltimes},ac{\ltimes},c{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- bcac
- ac
- \(\varepsilon\)
- bcbccabc
- Yes
- Yes
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}a,{\rtimes}a{\ltimes},{\rtimes}ca,ade,bbc,bcc,cad,ccb,dbb,ded,edb,cb{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes}\}\)
- bb
- eadda
- a
- aaaacd
- No
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}aa,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}bb,{\rtimes}aab,{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}bb{\ltimes},aaba,abaa,baab,aab{\ltimes},ab{\ltimes}{\ltimes},bb{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- bb
- \(\varepsilon\)
- aabaa
- bbba
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}{\rtimes}d,{\rtimes}{\rtimes}dd,{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}a{\ltimes},{\rtimes}a{\ltimes}{\ltimes},{\rtimes}ddc,{\rtimes}{\ltimes}{\ltimes}{\ltimes},bada,bddb,cbdd,ccbd,dbad,dccb,ddba,ddcc,ada{\ltimes},da{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes}\}\)
- abdcbbab
- a
- abcc
- \(\varepsilon\)
- No
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{aab,abb,abc,acb,baa,bab,bcb,cba\}\)
- \(\varepsilon\)
- aacba
- b
- ccba
- Yes
- No
- Yes
- No
For each one of the strings below say whether it is generated by the
following negative 2-gram grammar:
\(G^-\): \(\{aa,ab,ba,bb\}\)
- babba
- ab
- \(\varepsilon\)
- b
- No
- No
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 3-gram grammar:
\(G^-\): \(\{abc,ace,ade,bee,eba,ecc\}\)
- \(\varepsilon\)
- eedb
- b
- dcbdda
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{babb,bacc,bbaa,bcab,bcbc,ccab\}\)
- b
- \(\varepsilon\)
- ab
- a
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following positive 4-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\rtimes}{\ltimes},{\rtimes}{\rtimes}b{\ltimes},{\rtimes}{\rtimes}{\ltimes}{\ltimes},{\rtimes}{\rtimes}ba,{\rtimes}bab,{\rtimes}ba{\ltimes},{\rtimes}{\ltimes}{\ltimes}{\ltimes},{\rtimes}b{\ltimes}{\ltimes},aaaa,abba,baaa,babb,bbaa,aaa{\ltimes},ba{\ltimes}{\ltimes},aa{\ltimes}{\ltimes},a{\ltimes}{\ltimes}{\ltimes},b{\ltimes}{\ltimes}{\ltimes}\}\)
- b
- ba
- bbba
- a
- Yes
- Yes
- No
- No
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}c,{\rtimes}{\rtimes}b,{\rtimes}b{\ltimes},{\rtimes}ca,aab,aba,bac,caa,ac{\ltimes},ca{\ltimes},b{\ltimes}{\ltimes},a{\ltimes}{\ltimes},c{\ltimes}{\ltimes}\}\)
- b
- c
- cabcbc
- ca
- Yes
- No
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 2-gram grammar:
\(G^+\): \(\{{\rtimes}d,ac,ad,bd,cb,da,db,dc,dd,c{\ltimes}\}\)
- dc
- ddc
- adcbdaacdc
- dac
- Yes
- Yes
- No
- Yes
For each one of the strings below say whether it is generated by the
following positive 3-gram grammar:
\(G^+\): \(\{{\rtimes}{\rtimes}a,{\rtimes}{\rtimes}b,{\rtimes}{\rtimes}{\ltimes},{\rtimes}a{\ltimes},{\rtimes}{\ltimes}{\ltimes},{\rtimes}ba,{\rtimes}bb,aba,abb,baa,bab,bba,aa{\ltimes},ba{\ltimes},a{\ltimes}{\ltimes}\}\)
- bbbaaaa
- aababb
- bbbbbba
- aaaab
- No
- No
- No
- No
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{adaa,bceb,ccab,cebb\}\)
- \(\varepsilon\)
- bcc
- cbcdcbeac
- addedb
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abcc,adaa,cdcc,daad,dccd\}\)
- \(\varepsilon\)
- cddbb
- cadadaba
- dbdbd
- Yes
- Yes
- Yes
- Yes
For each one of the strings below say whether it is generated by the
following negative 4-gram grammar:
\(G^-\): \(\{abbc,cbbb,cccc,cdba\}\)
- ca
- dddd
- bdcd
- dbd
- Yes
- Yes
- Yes
- Yes