Professional Documents
Culture Documents
p- Considering Some path of maximal Aongth through € , 4 Is clear that there are trees &, &, ---) ty © Te CAx}) Such that nz ped, te they tye ots ty, the trees tg, Contain exactly one occurrence of X and have height 2 1., ond tye Ts Cts ts a “Bnear/zation” of t according te Some path). Now Consider the a Stetes Qo = 8ltr~x tn nat) for tséan. Then, 1 Das there Gre two egual Stetes + there are Cg Such that Wa ay and Aste < pt! let usb, auong 9), - ee Ge & sey bey, wt Whee ee ey Ther requirements (i)-(iv) in the Statement of the theorem ave ebvioushs Satisfied. Furthermore in general, if $05.) =8¢5q) , thens8 a * A a 8 (SS) 2 2054, 52). Hence, Since B(vaw) = &(w) , requirement (Vv) is abso Satisfied. WA As @ Corollary to Theorem 3.3] We Obtarh the plurping Leiuma for Contert-free Languages . (3.72) Corellarg For each context-free Aanguage L over A we con find an integer q Such that for au words BEL , if Jzlaq, ther there are Strings Uy My) Mos Ve Aral ty in AY Such that Bou,y, LY els gq], IY) >0 , and, br <¥ nso, 4, Vw, Uru € L. Weve 42 4 Proof. By Theorem 3.62 , dud the fact that each context-free Language Can be generated by a I- free context-free grammar, there is a recognizable tree language U over Z Such that gield(U) = L , where Z,=2 DB and S.-i}, Let p be the integer Correspon— ding to U aécording to Theorem 3.71 ,and put qu 2” Obviously, if zelL and l2leq , then there isa & int Such that Gield(t)=2 anc height (t) > p. Then, by Theorem 3.71 there are tres U,V aud W Such that (W)-Ww) in thet theorem hetd. Thus touyVve, Ww. LE Field(u)= U,xXu, , Giell(v)= V,XV_ ane Giclol(W) = W, (See (4)), Ther B= prelel(t) = = Pidd( Uv. Ww) = qieldlu) », Giell(y) -, grelel(w) = = U,V, Woy tg. Tt ts easy to See that alt other Fequrement ‘tated in the Corollary ave atso Satisfied. MM59 (3.38) Exercise, let 2 be a ranked alphabet Such thet B,-5a,b}, Show that the tree language LE | petit) Aas an equal number of a's and b/s f is not recognizable i From the pumping Cemura the ceciclebihty of both enptiness ard fincteness problen for RECOG follows . (3.74) Theorem . The euptiness problem for recognizable tree Languages 15 decidable . Proof. let L be a recognizable tree Language , and ket p be the integer of Theorem 3.71. Obviousty (using n=o in point (v)) , L is Ronempty if and oat, /7 L Contains a tree of height