• No results found

àl : 7: : àl : l: X: 2: : t,*;tïll

N/A
N/A
Protected

Academic year: 2021

Share "àl : 7: : àl : l: X: 2: : t,*;tïll"

Copied!
1
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

LIACS

Leiden Universi

Examination Fundamentele Informatica

2

14 January 2015,10:00

-

13:00

Qgestion 1:

Give five

distinguishable strings

for the

language

L :

pairwise distinguishable.

Question

2:

t2 Pointsl

a)

Give a deterministic finite automaton M1

recogrizíngthe

language L1 over the alphabet

X:

{a,b}

containing all strings

with

no two consecutive equal alphabet symbols.

b)

Constru ct a determinisfic fttitte automaton M2 rècogniztngthe language Lz denoted by the regular expression (a+ab)*bb*

c)

Give a deterministic finite automaton M3 recognizing the complement of the above language L2' [1,5 Points]

language

L(G)

generated bY the

B-+bSlÀ

b)

Use the powerset construction Ío construct a deterministic ïrrute automaton

N

recognizing the same language as the above nondeterministic attomaton

M.

c)

Use thè automaton

N

above to construct.a regttlar grammar generating the same language accepted by N.

It

may be helpfuI to rename the states of the automaton

N'

[1 Point]

Question 4:

Use the state

elimination

method

of

Brzozowski and McCluskey to construct a regular expression for the language recognized by the

following finite

automaton

{o,r}*{oo} {0,1}

and show why

t,*;tïll

Question 3:

u)

Construct a nondeterministic

finite

automaton

M

recognizing the regular grammar G

with

the following productions

S-+bA A+aAlaSlaBlÀ

Question 5:

Use the pumping lemma to show that the language

l:

{anb'a- I n >0,

m)n}

is not regUlar'

:LrLz.

[1

pointl

[2 points]

Question 6:

àl

Find a context-free gËrnmar G1 génerating the language L1

:

{a%n

I

n > 0

}.

b)

Find a context-fre"

g.u*rrru.

G2 generating the language L2

:

{bo

I

n > 0

}.

c)

Use the above two grammar to give a context free grammar for the language L3

d)

Find a-context-free gralnmar G generating the language

La:

L3*'

Question

7:

[1'5 Points]

àl Draw

a pushdown automaton

M

recogruzíng

the

language

L : {u%- | m > n > 0 } using

as

alphabet symbols only

A aídZs

(the

initial

stack symbol).

b)

Use the above pushdown automaton

M

to construct a new pushdown automaton IM" accepting the above language

Lby

empty srack (thus without accepting states).

The final score is glven by the sum of the points obtained.

Referenties

GERELATEERDE DOCUMENTEN

The high temporal resolution of EEG can provide more information about time course of the spoken word production when combined with tasks that require overt speech

Neem in dit model aan dat vrouwtjes- en mannetjessnoeken bij hun geboorte even lang zijn, namelijk 5,6 cm, en dat de factor K gelijk is. Omdat vrouwtjessnoeken veel ouder

The varieties of languages and registers used during different religious practices, like praying, engaging with a sermon, studying the scriptures, participating in liturgy,

Het doel van de impliciete veiling is de efficiënte allocatie van de landsgrensoverschrijdende capaciteit voor dag-vooruittransporten, die wordt uitgevoerd door middel van

ACM merkt op dat Enexis met haar betoog dat voor de waardering van de EHD-netten moet worden uitgegaan van de afschrijvingstermijnen zoals die zijn vastgelegd in de RAR kennelijk

In this research the independent variable (use of native or foreign language), the dependent variable (attitude towards the slogan) and the effects (country of origin,

Naar het oordeel van ACM ontstaat daarmee ten onrechte de situatie dat gebruikers van de nieuwe transportdienst voor gasopslagen (voor zowel de niet afschakelbare

Kort gezegd acht ACM zich bevoegd om ook voor de reguleringsperiode 2011-2013 de x-factoren te herzien nu zij heeft geconstateerd dat deze x-factoren ten onrechte mede zijn