Docsity

Ejercicios: boletin1, Ejercicios de Ingeniería Infórmatica

Toggle sidebar
bg1
Introduccion a la teora de automatas y lenguajes formales (TAL).
Enunciados de problemas y cuestiones.
Boletn 1.
1. Demuestrese que
8
x
2
;Seg
(
x
)=
Pref
(
Suf
(
x
))
:
2. >Es cierta la armacion
8
L
1
;L
2
;Pref
(
L
1
[
L
2
)=
Pref
(
L
1
)
[
Pref
(
L
2
)?
3. >Es cierta la armacion
8
L
1
;L
2
;Pref
(
L
1
\
L
2
)=
Pref
(
L
1
)
\
Pref
(
L
2
)?
4. >Son ciertas las siguientes armaciones?
(a)
8
x
2
;Seg
(
x
R
)=(
Seg
(
x
))
R
(b)
8
x
2
;Suf
(
x
R
)=(
Suf
(
x
))
R
5. Sean los lenguajes sobre
f
0
;
1
g
L
1
=
f
0
;
01
;
001
g
L
2
=
f
;
01
;
0011
g
L
3
=
0
x
:
x
2f
0
;
1
g
L
4
=
x
0:
x
2f
0
;
1
g
:
Y sean los homomorsmos
h
:
f
0
;
1
g!f
a; b; c
g
:
h
(0) =
a; h
(1) =
bc
;
g
:
f
a; b; c
g!f
0
;
1
g
:
g
(
a
)=01
;g
(
b
)=10
;g
(
c
)=
;
f
:
f
0
;
1
g!f
0
;
1
g
:
f
(0)=0
;f
(1) = 011
:
Calculese los lengua jes
(a)
L
1
[
L
2
,
L
1
[
L
3
,
L
2
[
L
3
,
L
3
[
L
4
(b)
L
1
\
L
2
,
L
1
\
L
3
,
L
1
\
L
4
,
L
2
\
L
4
,
L
3
\
L
4
(c)
L
3
(d)
L
1
L
2
,
L
2
L
3
,
L
2
L
4
,
L
3
L
4
(e)
L
1
L
2
,
L
1
L
3
,
L
3
L
4
(f)
L
1
L
2
,
L
4
L
3
,
L
2
L
3
,
L
3
L
4
,
L
2
1
,
L
3
2
,
L
5
3
(g)
L
1
,
L
4
,
L
+
1
,
L
+
3
(h)
L
R
2
,
L
R
3
(i)
Pref
(
L
1
),
Pref
(
L
4
),
Pref
(
L
3
),
Seg
(
L
1
),
Seg
(
L
4
),
Suf
(
L
2
)
(j) 0
1
L
1
, 0
1
L
2
, 0
1
L
3
, 0
1
L
4
, 1
1
L
1
, 1
1
L
3
, 1
1
L
4
,(01)
1
L
1
,
(01)
1
L
3
,(01)
1
L
4
(k)
L
1
1
L
2
,
L
1
2
L
1
,
L
1
1
L
3
,
L
1
2
L
4
,
L
1
3
L
4
,
L
1
4
L
3
,
L
1
3
L
3
,
L
1
4
L
4
,
L
2
L
1
1
,
L
1
L
1
2
(l)
h
(
L
1
),
h
(
L
2
),
h
(
L
3
),
h
(
L
4
)
(m)
g
1
(
L
1
),
g
1
(
L
2
),
g
1
(
L
3
),
g
1
(
L
4
)
(n)
f
(
L
1
),
f
(
L
2
),
f
(
L
3
),
f
1
(
L
1
),
f
1
(
L
2
),
f
1
(
L
3
),
f
1
(
L
4
).
1
pf2

Vista previa parcial del texto

¡Descarga Ejercicios: boletin1 y más Ejercicios en PDF de Ingeniería Infórmatica solo en Docsity!

Intro duccion a la teora de automatas y lengua jes formales (TAL).

Enunciados de problemas y cuestiones.

Boletn 1.

  1. Demuestrese que 8 x 2  ; S eg (x) = P r ef (S uf (x)):
  2. Es cierta la a rmacion 8 L 1 ; L 2   ; P r ef (L 1 [ L 2 ) = P r ef (L 1 ) [ P r ef (L 2 )?

  3. Es cierta la a rmacion 8 L 1 ; L 2   ; P r ef (L 1 \ L 2 ) = P r ef (L 1 ) \ P r ef (L 2 )?

  4. Son ciertas las siguientes a rmaciones? (a) 8 x 2  ; S eg (xR^ ) = (S eg (x))R (b) 8 x 2  ; S uf (xR^ ) = (S uf (x))R

  5. Sean los lengua jes sobre f 0 ; 1 g L 1 = f 0 ; 01 ; 001 g L 2 = f; 01 ; 0011 g L 3 =

0 x : x 2 f 0 ; 1 g^  L 4 =

x 0 : x 2 f 0 ; 1 g^  : Y sean los homomor smos h : f 0 ; 1 g! fa; b; cg : h(0) = a; h(1) = bc; g : fa; b; cg ! f 0 ; 1 g : g (a) = 01 ; g (b) = 10 ; g (c) = ; f : f 0 ; 1 g! f 0 ; 1 g : f (0) = 0 ; f (1) = 011 : Calc ulese los lengua jes (a) L 1 [ L 2 , L 1 [ L 3 , L 2 [ L 3 , L 3 [ L 4 (b) L 1 \ L 2 , L 1 \ L 3 , L 1 \ L 4 , L 2 \ L 4 , L 3 \ L 4 (c) L 3 (d) L 1 L 2 , L 2 L 3 , L 2 L 4 , L 3 L 4 (e) L 1  L 2 , L 1  L 3 , L 3  L 4 (f ) L 1 L 2 , L 4 L 3 , L 2 L 3 , L 3 L 4 , L^21 , L^32 , L^53 (g) L 1 , L 4 , L+ 1 , L+ 3 (h) LR 2 , LR 3 (i) P r ef (L 1 ), P r ef (L 4 ), P r ef (L 3 ), S eg (L 1 ), S eg (L 4 ), S uf (L 2 ) (j) 0 ^1 L 1 , 0 ^1 L 2 , 0 ^1 L 3 , 0 ^1 L 4 , 1 ^1 L 1 , 1 ^1 L 3 , 1 ^1 L 4 , (01)^ ^1 L 1 , (01)^1 L 3 , (01)^1 L 4 (k) L 1 1 L 2 , L 2 1 L 1 , L 1 1 L 3 , L 2 1 L 4 , L 3 1 L 4 , L 4 1 L 3 , L 3 1 L 3 , L 4 1 L 4 , L 2 L 1 1 , L 1 L 21 (l) h(L 1 ), h(L 2 ), h(L 3 ), h(L 4 ) (m) g ^1 (L 1 ), g ^1 (L 2 ), g ^1 (L 3 ), g ^1 (L 4 ) (n) f (L 1 ), f (L 2 ), f (L 3 ), f ^1 (L 1 ), f ^1 (L 2 ), f ^1 (L 3 ), f ^1 (L 4 ).

  1. Sea  = fa; bg : Sean L 1 = ^4 L 2 = fam^ bn^ : m; n  0 g L 3 = fam^ bn^ : m; n  1 g L 4 = , L 5 = fg L 6 =

xxR^ : x 2 + L 7 = fx 2  : j xja = jxjb = 2 g L 8 = faxb : x 2 +^ g

A cuales de las siguientes clases p ertenece cada uno de esos lengua jes?

(a) $f i la clase de los lengua jes nitos (b) $co la de los co nitos (c) $ la de los que incluyen a  (d) $par la de aquellos cuyas palabras son to das de longitud par (e) $r ev la de aquellos cuyas palabras son to das palndromos (f ) $ax la de aquellos cuyas palabras comienzan to das p or a y (g) $pr ef la de aquellos que cumplen P r ef (L) = L.

  1. Sea  = f 0 ; 1 g : Sea

(a) $f i la clase de los lengua jes nitos (b) $co la de los co nitos (c) $ la de los que incluyen a  (d) $par la de aquellos cuyas palabras son to das de longitud par (e) $r ev la de aquellos cuyas palabras son to das palndromos (f ) $ax la de aquellos cuyas palabras comienzan to das p or a y (g) $pr ef la de aquellos que cumplen P r ef (L) = L.

Cuales de estas clases son cerradas ba jo cada una de las op eraciones siguientes? (a) Union (b) Interseccion (c) Complementacion (d) Diferencia (e) Reverso (f ) Concatenacion (g) Clausura (h) Clausura p ositiva (i) Pre jos (j) Homomor smos de  sobre  (k) Homomor smos inversos de  sobre  (l) Derivadas