100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Samenvatting Hoofdstuk 2: Eindige Automaten

Rating
-
Sold
-
Pages
9
Uploaded on
29-07-2022
Written in
2020/2021

Dit is de samenvatting van het tweede hoofdstuk van het vak Automaten en Berekenbaarheid. In deze samenvatting werd alle relevante informatie uit de slides alsook uit eigen notities opgenomen. Eindresultaat: 16/20

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Connected book

Written for

Institution
Study
Course

Document information

Summarized whole book?
No
Which chapters are summarized?
Chapter 2
Uploaded on
July 29, 2022
Number of pages
9
Written in
2020/2021
Type
Summary

Subjects

Content preview

Hoofdstuk 2: Eindige automaten
Overzicht

• DFAs (Deterministic Finite Accepters)
• NFAs (Non-deterministic)
o Relation with DFAs
• Minimal DFAs

1 Deterministic finite accepter
Voorbeeld:




Indien de automaat in de finale staat is wanneer er geen invoer meer is m te lezen, wordt de string
(invoer) geaccepteerd.

1.1 Dfa: Definition
Een DFA is een 5-tuple 𝑀 = (𝑄, Σ, 𝛿, 𝑞0 , 𝐹)

• Q is een verzameling interne toestanden (q0,q1 en q2 in het
voorbeeld)
• Σ is een eindig alfabet waaruit de invoer moet bestaan
• 𝛿: 𝑄 × Σ → 𝑄 is de transitiefunctie
o Bepaalt aan de hand van huidige toestand en huidige invoer welke de volgende
toestand is.
• 𝑞0 ∈ 𝑄 is de initiële toestand van de automaat
• 𝐹 ⊆ 𝑄 is een verzameling eindtoestanden.

If M is a DFA, GM denotes its transition graph. (zie voorbeeld voor een transition graph)

Voorbeeld:




1

, Wat is mis met volgende DFA?

Vanuit q0 zijn twee uitgaande pijlen met 1. Dit is niet-deterministisch
gedrag en is natuurlijk niet toegestaan voor een DFA. In vanuit toestand q1
vertrekt ook geen pijl met 1 als label waardoor de automaat niet compleet
is. Dit is niet toegestaan.

1.2 Languages and dfa’s




We kunnen de transitiefunctie uitbreiden: 𝛿: 𝑄 × Σ → 𝑄
𝛿 ∗ (𝑞, 𝜆) = 𝑞 (𝑙𝑒𝑔𝑒 𝑠𝑡𝑟𝑖𝑛𝑔 → 𝑏𝑙𝑖𝑗𝑓 𝑖𝑛 𝑠𝑡𝑎𝑡𝑒)
𝛿 ∗ : 𝑄 × Σ∗ → 𝑄
𝛿 ∗ (𝑞, 𝑤𝑎) = 𝛿(𝛿 ∗ (𝑞, 𝑤), 𝑎)
Merk op:
𝑤𝑎 ∈ Σ∗ , 𝑎 ∈ Σ, 𝛿 ∗ (𝑞, 𝑤) ∈ 𝑄
Bij tweede regel wordt string 1 teken minder lang → eindig proces

String altijd reduceren tot
lambda = eindtoestand 𝛿 ∗




Accepted language 𝐿(𝑀) = {𝑤 ∈ Σ∗ : 𝛿 ∗ (𝑞0 , 𝑤) ∈ 𝐹} = {𝑎𝑛 𝑏: 𝑛 ≥ 0}
̅̅̅̅̅̅̅
𝐿(𝑀) = {𝑤 ∈ Σ∗ : 𝛿 ∗ (𝑞0 , 𝑤) ∉ 𝐹}

Vraag: Bestaat nu ook een DFA voor ̅̅̅̅̅̅̅
𝐿(𝑀)?

• Ja en we kunnen deze bekomen door in de DFA voor 𝐿(𝑀) de states te vervangen door finale
states en de finale states te vervangen door gewone states.
o Deze methode werkt altijd omdat een state ofwel een finale ofwel een gewone state
was in de DFA voor L(M). Wanneer we deze omwisselen zal elke string die eindigede
in een finale state bij de DFA voor L(M) nu in een niet finale state eindigen en niet
geaccepteerd worden.



2
$4.22
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Document also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
lennyS Vrije Universiteit Brussel
Follow You need to be logged in order to follow users or courses
Sold
163
Member since
5 year
Number of followers
62
Documents
34
Last sold
2 weeks ago

4.5

6 reviews

5
4
4
1
3
1
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions