280 likes | 295 Views
Explore groupoids, primitive words, binary word-operations, closures, properties, and examples in medical imaging lab. Learn about primitive, E-closed, and shuffle-closed languages.
E N D
Languages and Codes Chapter 10 第 10章
Operations of Words and Languages • A groupoid is a non-empty closed set for a given binary operation. • When the operation is associative, groupoids are called semigroups. • Properties of operations will affect the properties of those languages that operations are applied to. 醫學影像處理實驗室
Catenation & Primitive Words • One of the main results about primitivity is that every non-empty word can be uniquely expressed as a power of a primitive word. • If we define the ◦-primitive words analogous to the primitive words, then every ◦-primitive word is primitive whenever ◦ is the catenation of words and ins-primitive whenever ◦ is the insertion of words. 醫學影像處理實驗室
Binary Word-Operations • A binary word-operation with right identity (shortly bw-operation) is defined as a mapping ◦:A*A*2A* with ◦(u,1)={u}. • Define ◦(L1,L2)=uL1,vL2◦(u,v) and ◦(L1,)= =◦(,L2). • Often identify singleton sets with their elements. 醫學影像處理實驗室
Iterated Bw-Operations • The iterated bw-operation ◦i is defined by ◦0(L1,L2)=L1 and ◦i(L1,L2)=◦(◦i–1(L1,L2),L2) whenever i1 for languages L1 and L2. • The i-th◦-power of a non-empty language L is defined as L◦(0)={1} and L◦(i)=◦i–1(L,L) for i1. 醫學影像處理實驗室
◦-Primitive Words • A non-empty word w is called ◦-primitive if wu◦(i) for some word u and i1 yields i=1 and w=u. • Example. a2ba2ba2(a2ba)(2) and a2ba2ba2(aba2)(2). A word could be obtained from many ins-primitive words by self-inserted. 醫學影像處理實驗室
+-Closures of Languages • The +-closure of a non-empty language L with respect to a bw-operation ◦, denoted by L◦(+), is defined as L◦(+)=k1L◦(k). • A language L is ◦-closed if u,vL imply ◦(u,v)L. 醫學影像處理實驗室
E-Closed, c-Closed andi-Closed • For LA*, consider (1) uvL wL uwvL, (2) uwvL wL uv1 uvL, (3) uvL uwvL wL. • A language satisfying (1), (2) or (3) is called e-closed, c-closed or i-closed, respectively. 醫學影像處理實驗室
Examples • Example. The following two languages are examples of e-closed and c-closed languages: (a) The Dyck language LDyck. LDyck does not satisfy condition (3). (b) The balance language Lab. Lab satisfies condition (3). 醫學影像處理實驗室
Insertion Closures • Let [L]=L(+)=n1L(n). • Then [L] is the smallest e-closed language containing L. [L] is called the e-closed language generated by L. • L1L2 [L1][L2], L1,L2A+. 醫學影像處理實驗室
Ins-Primitive Words • Let Qins denote the set of all ins-primitive words. • a2baQins, [a2ba] is e-closed but neither c-closed nor i-closed for a3b(a2ba)[a2ba] a2ba[a2ba] but a3b[a2ba], and a2b(a3b)a[a2ba] a2ba[a2ba] but a3b[a2ba]. 醫學影像處理實驗室
Properties • Prop. If uD(1), then wj[u] for j1 implies w[u]. • Prop. Let uA+. Then (1) [u] is regular; (2) ua+ for some aA; (3) [u] is i-closed. 醫學影像處理實驗室
Shuffle-Closures • For LA*, consider (1) u,vL uvL, (2) uL uvL vL. • A language satisfying (1) is called shuffle-closedor sh-closed. A language satisfying (1) and (2) is called strongly shuffle-closedor ssh-closed. 醫學影像處理實驗室
Examples • Let A={a,b}, k a fixed positive integer and Lk(a) the language consisting of all words containing at least k letters a. Then Lk(a) is sh-closed, but not ssh-closed. • The balance language Lab is ssh-closed. • L(+) is the smallest sh-closed language containing L. 醫學影像處理實驗室
Properties • Rem. L1L2 L1(+)L2(+), L1,L2A*. • Rem. (L(+))(+)=L(+), LA*. • Prop. ssh-closed language is a commutative language and a free submonoid of A*. 醫學影像處理實驗室
Shuffle-Free Languages • A non-empty language LA+ is called -free if (L(+),L)L=. • For LA*, if a -free language BL\{1} s.t. B(+)=(L\{1})(+), then B is called a -base of L. 醫學影像處理實驗室
Construction • For a non-empty LA+, define K1=L Ii={w|wKi and lg(w)lg(y) for all yKi}, i1, Ki=L\(1ji–1Ij)(+) for i2, (L)=i1Ii. • Fact. (L)L. 醫學影像處理實驗室
Properties • Prop. L((L))(+) and (L) is -free. • Prop. If LA+ is sh-closed, then L=((L))(+). • Fact. For LA*, (L) is a -base of L. • Prop. The -base of a language LA* is unique. • Prop. If a language L{1} is ssh-closed, then the -base of L is a commutative hypercode. 醫學影像處理實驗室
Generalization • Consider a bw-operation ◦. • A non-empty language LA+ is called ◦-free if ◦(L◦(+),L)L=. • For LA*, if a ◦-free language BL\{1} s.t. B◦(+)=(L\{1})◦(+), then B is called a ◦-base of L. 醫學影像處理實驗室
Construction • For a non-empty LA+, define K1=L Ii={w|wKi and lg(w)lg(y) for all yKi}, i1, Ki=L\(1ji–1Ij)◦(+) for i2, ◦(L)=i1Ii. • Fact. ◦(L)L. 醫學影像處理實驗室
Properties 1 • A bw-operation ◦ is called plus-closed if for any non-empty language L, L◦(+) is ◦-closed. • A bw-operation ◦ is called length-increasing if for any u,vA+ and w◦(u,v), lg(w)>max{lg(u),lg(v)}. • Prop. Let ◦ be plus-closed and length-increasing. Then L(◦(L))◦(+) and ◦(L) is ◦-free. 醫學影像處理實驗室
Properties 2 • Prop. Let ◦ be plus-closed and length-increasing. If LA+ is ◦-closed, then L=(◦(L))◦(+). • Fact. Let ◦ be plus-closed and length-increasing. For any non-empty language LA* with L{1}, ◦(L) is a ◦-base of L. 醫學影像處理實驗室
Properties 3 • Prop. Let ◦ be plus-closed and length-increasing. Then the ◦-base of a language LA* is unique. 醫學影像處理實驗室
General Properties • A bw-operation ◦ is called left-inclusive if for u,v,wA*, ◦(◦(u,v),w)◦(u,◦(v,w)). • Lem. If ◦ is left-inclusive then for any non-empty language L, L◦(+)is ◦-closed. • Lem. If ◦ is plus-closed then for any uA*, ◦m(◦n(u,u),◦p(u,u))u◦(+), for all m,n,p0. 醫學影像處理實驗室
◦-Primitivity 1 • Prop. Let ◦ be plus-closed and length-increasing. Then for wA+, ◦-primitive word uand an integer n1 wu◦(n). • A bw-operation ◦ is called propagating if for any u,vA* and w◦(u,v), na(w)=na(u)+na(v) any aA. 醫學影像處理實驗室
◦-Primitivity 2 • Prop. Let ◦ be plus-closed and propagating. Then for wA+, ◦-primitive word uand a uniqueintegern1 wu◦(n). • Lem. Let ◦ be plus-closed and propagating and let |A|2. If wA+, aA, wa+ then an integer m1 s.t. all the words v1◦(w,wm–1a), v2◦(awm–1,w), v3wma, and v4awm are ◦-primitive. 醫學影像處理實驗室
◦-Primitivity 3 • Let Q◦(A) denote the set of all ◦-primitive words over A. • A language LA* is called right (resp. left) ◦-dense if for each wA+, uA* s.t. ◦(w,u)L (resp. ◦(u,w)L). • Prop. Let ◦ be plus-closed and propagating and let |A|2. Then Q◦(A) is right and left ◦-dense. 醫學影像處理實驗室
Home Work • How to define the ◦-density of languages? • A bw-operation ◦ must be equipped with what properties to make the set Q◦(A) ◦-dense. • How to define the ◦-disjunctivity of languages? 醫學影像處理實驗室