logo

Crowdly

Browser

Add to Chrome

Teoria da Computação LEI & LEI-PL

Looking for Teoria da Computação LEI & LEI-PL test answers and solutions? Browse our comprehensive collection of verified answers for Teoria da Computação LEI & LEI-PL at moodle25.iscte-iul.pt.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Seja M1 = (Q1, S, G1, q1, Z1, A1, d1) AP e M2 = (Q2, S, G2, q2, Z2, A2, d2) AP onde:

Q2 = Q1È{q2, f},

q2,fÏQ1

G2 = G1È{Z2}, Z2ÏG1

A2 = {f}

d2(q,a,X) = d1(q,a,X), se qÎQ1 e X≠Z2

d2(q,a,X) = {(q1,Z1Z2)}, se q= q2, X=Z2 e a=L

d2(q,a,X) ={(f,L)}, se qÎQ1, X=Z2 e a=L

d2(q,a,X) = Æ, nos restantes casos

Qual das seguintes opções apresenta corretamente uma prova de N(M1) = L(M2)?

0%
50%
0%
View this question

Considere a GLC G = ({S,T},{a,b}, S, {S aSb|T, TbTa|L}). Qual dos seguintes APs reconhece a linguagem L(G) pelo critério de pilha vazia?

M1=({q},{a,b}, {a,b,S,T}, q, S, Æ, d1)

(q,a,X)

d1(q,a,X)

(q, L, S)

{(q,aSb),(q,T)}

(q, L, T)

{(q,bTa),(q,L)}

(q,a,a)

{(q,L)}

(q,b,b)

{(q,L)}

Æ

M2=({q,p,h},{a,b}, {a,b,S,T,H}, p, H, {h}, d2)

(q,a,X)

d2(q,a,X)

(p, L, H)

{(q,SH)}

(q, L, H)

{(h, L, H)}

(q, L, S)

{(q,aSb),(q,T)}

(q, L, T)

{(q,bTa),(q,L)}

(q,a,a)

{(q,L)}

(q,b,b)

{(q,L)}

Æ

M3=({q},{a,b}, {a,b,S,T}, q, S, Æ, d3)

(q,a,X)

d3(q,a,X)

(q, L, S)

{(q,aS),(q,T)}

(q, L, T)

{(q,bbTa),(q,L)}

(q,a,a)

{(q,L)}

(q,b,b)

{(q,L)}

Æ

M4=({q,p,h},{a,b}, {a,b,S,T,H}, p, H, {h}, d4)

(q,a,X)

d4(q,a,X)

(p, L, H)

{(q,SH)}

(q, L, H)

{(h, L, H)}

(q, L, S)

{(q,aS),(q,T)}

(q, L, T)

{(q,bbTa),(q,L)}

(q,a,a)

{(q,L)}

(q,b,b)

{(q,L)}

Æ

 

View this question

Considere o AP M=({p,q,r},{a,b,c,d}, {a,b,c,d,W,S,T,R,Z0}, p, Z0, {r}, d)

(q,a,X)

d (q,a,X)

(p, L, Z0)

{(q,WZ0)}

(q, L, Z0)

{(r,Z0),(q,L)}

(q, L, W)

{(q,SR)}

(q, L, T)

{(q,bTc), (q,L)}

(q, L, S)

{(q,aSd), (q,T)}

(q, L, R)

{(q,aR), (q,L)}

(q,a,a)

{(q,L)}

(q,b,b)

{(q,L)}

(q,c,c)

{(q,L)}

(q,d,d)

{(q,L)}

Æ

Qual das seguintes sequências de movimentos justifica que abcdaÎL(M)?

View this question

Seja G1 = (V1, S, S1, P1) em que L1=L(G1). Seja G = (V, S, S, P) GLC onde:

V = V1È{S}

SÏV1

P = P1È{SS1S, SL}

Qual das seguintes opções apresenta corretamente uma prova de L(G)-{L}= L(G1)*-{L}? 

0%
0%
0%
0%
View this question

Considere o AFD M = (Q, S, q0, A, d). Qual das seguintes GRs reconhce a linguagem L(M) –{L}?

G1 = (V1, S, S1, P1) GR onde:

V1 = Q

S1 = q0

P1 = {p | q® apÎP}È{f | q® aÎP}

G2 = (V2, S, S2, P2) GR onde:

V2 = Q

S2 = q0

P2 = {B® aC | d(B,a) = C}È{B® a | d(B,a)ÎA}

G3 = (V3, S, S3, P3) GR onde:

V3 = A

S3 = q0

P3 = {B® aC | d(B,a) = C}È{B® a | d(B,a)ÎA}

G4 = (V4, S, S4, P4) GR onde:

V4 = Q

S4 = q0

P4 = {B® aC | d(B,a) = C}

View this question

Considere a GR G = ({A,B,C},{0,1}, A, {A ® 1A|0B|1, B ® 0C|1B|0, C ® 0A|1B})

Qual dos seguintes autómatos finitos reconhece a linguagem L(G)?

M1 = ({A,B,C,D}, {0,1}, A, {D}, d1)

d1

0

1

A

{B}

{A,D}

B

{C,D}

{B}

C

{A}

{B}

D

Æ

Æ

 

M2 = ({A,B,C,D}, {0,1}, A, {D}, d2)

d2

0

1

A

{B}

{A}

B

{C}

{B}

C

{A}

{B}

D

Æ

Æ

 

M3 = ({A,B,C,D}, {0,1}, A, {D}, d3)

d3

0

1

A

B

A

B

C

B

C

A

B

D

Æ

Æ

 

M4 = ({A,B,C}, {0,1}, A, {C}, d4)

d4

0

1

A

{B}

{A}

B

{C}

{B}

C

{A}

{B}

View this question

Considere a GLC T = ({A,B}, {0,1}, A, {A→0A|B, B→1B|1})

Qual das seguintes GLCs reconhece a linguagem L(T)*?

G1 = ({A,B,C}, {0,1}, C, {A→0A|B, B→1B|1, CAC|A })

G2 = ({A,B,C}, {0,1}, C, {A→0A|B, B→1B|1, CAC|L })

G3 = ({A,B}, {0,1}, A, {A→0A|B|AA|L, B→1B|1})

G4 = ({A,B}, {0,1}, B, {A→0A|B, B→1B|1, BAB|L })

View this question

Seja M1 = (Q1,Σ, q1, A1, δ1) AFD e Q1×Q1 a relação em Q1definidapor pq ssexΣ*(δ*(p,x)A1δ*(q,x)A1). Seja M2 = (Q2,Σ, q2, A2, δ2) AFD, onde:

Q2 = {[q]| qQ1}

q2 = [q1]

δ2: Q2×Σ Q2 (qQ1, aΣ):

δ2 ([q],a) = [δ1(q,a)]

A2={[q]| qA1}

Na provaporinduçãoestruturalde (x*) δ2*(q2,x) = [δ1*(q1,x)], qualdasseguintesopçõesapresentacorretamenteumaprovadatesedeindução?

View this question

Na determinação de estados indistinguíveis AFDM=({1,2,3,4,5,6}, {0,1}, 1, {1,2,3,4},d)

d

0

1

1

2

3

2

4

3

3

2

3

4

4

5

5

4

6

6

6

6

 

obteve-se a seguinte tabela:

2

3

 

 

 

 

3

 

3

 

 

 

4

2

2

2

 

 

5

1

1

1

1

 

6

1

1

1

1

2

 

1

2

3

4

5

Qual dos seguintes AFDs reconhece a linguagem L(M)?

M1=({[1],[2],[5],[6]},{0,1}, [1], {[1],[2]≡,[6]},d1)

d1

0

1

[1]

[2]

[1]

[2]

[4]

[1]

[5]

[4]

[6]

[6]

[6]

[6]

 

M2=({[1],[2],[5],[6]},{0,1}, [1], {[1],[2]},d2)

d2

0

1

[1]

[2]

[1]

[2]

[4]

[1]

[5]

[4]

[6]

[6]

[6]

[6]

 

M3=({[1],[2],[4],[5],[6]},{0,1}, [1], {[1],[2]≡,[4]},d3)

d3

0

1

[1]

[2]

[1]

[2]

[4]

[1]

[4]

[4]

[5]

[5]

[4]

[6]

[6]

[6]

[6]

 

M4=({[1],[2],[4],[5],[6]},{0,1}, [1], {[1],[4]},d4)

d4

0

1

[1]

[2]

[1]

[2]

[4]

[1]

[4]

[4]

[5]

[5]

[4]

[6]

[6]

[6]

[6]

 

View this question

Considere o AFDM = ({A,B,C,D}, {a,b}, A, {A,C}, δ)

δ

a

b

A

A

B

B

B

C

C

C

D

D

C

B

 

Qual das seguintes tabelas está completamente preenchida na determinação de estados indistinguiveis?

 T1:

B

1

 

 

C

3

1

 

D

1

 2

1

 

A

B

C

 T2:

B

1

 

 

C

 1

 

D

1

 

1

 

A

B

C

 T3:

B

1

 

 

C

 1

 

D

1

 2

 1

 

A

B

C

T4:

B

1

 

 

C

1

 1

 

D

1

  1

 

A

B

C

View this question

Want instant access to all verified answers on moodle25.iscte-iul.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome