Computational Models

Ähnliche Dokumente
Einführung in die Computerlinguistik

Automatentheorie und formale Sprachen endliche Automaten

Einführung in die Computerlinguistik reguläre Sprachen und endliche Automaten

Automatentheorie und formale Sprachen reguläre Ausdrücke

Einführung in die Computerlinguistik reguläre Sprachen und endliche Automaten

Einführung in die Computerlinguistik reguläre Sprachen und endliche Automaten

Automatentheorie und formale Sprachen Pumping-Lemma für reguläre Sprachen

Unit 4. The Extension Principle. Fuzzy Logic I 123

Willkommen zur Vorlesung Komplexitätstheorie

Willkommen zur Vorlesung Komplexitätstheorie

Automaten und formale Sprachen. Lösungen zu den Übungsblättern

Fundamentals of Electrical Engineering 1 Grundlagen der Elektrotechnik 1

Aus FanLiebe zu Tokio Hotel: von Fans fã¼r Fans und ihre Band

Einführung in die Computerlinguistik Satz von Kleene

Wie man heute die Liebe fürs Leben findet

VGM. VGM information. HAMBURG SÜD VGM WEB PORTAL USER GUIDE June 2016

Martin Luther. Click here if your download doesn"t start automatically

p^db=`oj===pìééçêíáåñçêã~íáçå=

Ein Stern in dunkler Nacht Die schoensten Weihnachtsgeschichten. Click here if your download doesn"t start automatically

Rätsel 1: Buchstabensalat klassisch, 5 5, A C (10 Punkte) Puzzle 1: Standard As Easy As, 5 5, A C (10 points)

Sagen und Geschichten aus dem oberen Flöhatal im Erzgebirge: Pfaffroda - Neuhausen - Olbernhau - Seiffen (German Edition)

Reparaturen kompakt - Küche + Bad: Waschbecken, Fliesen, Spüle, Armaturen, Dunstabzugshaube... (German Edition)

NOREA Sprachführer Norwegisch: Ein lustbetonter Sprachkurs zum Selbstlernen (German Edition)

Unit 1. Motivation and Basics of Classical Logic. Fuzzy Logic I 6

Nürnberg und der Christkindlesmarkt: Ein erlebnisreicher Tag in Nürnberg (German Edition)

Analyse und Interpretation der Kurzgeschichte "Die Tochter" von Peter Bichsel mit Unterrichtsentwurf für eine 10. Klassenstufe (German Edition)

Sinn und Aufgabe eines Wissenschaftlers: Textvergleich zweier klassischer Autoren (German Edition)

Fachübersetzen - Ein Lehrbuch für Theorie und Praxis

Die Bedeutung neurowissenschaftlicher Erkenntnisse für die Werbung (German Edition)

Soziale Arbeit mit rechten Jugendcliquen: Grundlagen zur Konzeptentwicklung (German Edition)

PONS DIE DREI??? FRAGEZEICHEN, ARCTIC ADVENTURE: ENGLISCH LERNEN MIT JUSTUS, PETER UND BOB

Warum nehme ich nicht ab?: Die 100 größten Irrtümer über Essen, Schlanksein und Diäten - Der Bestseller jetzt neu!

Level 2 German, 2015

VGM. VGM information. HAMBURG SÜD VGM WEB PORTAL - USER GUIDE June 2016

Teil 2.2: Lernen formaler Sprachen: Hypothesenräume

Hund, Katze, Maus - Wie du mit Tieren sprechen kannst: Ein Tier-Sprachkurs für Kinder von 7-14 Jahren (German Edition)

A Classification of Partial Boolean Clones

How to get Veränderung: Krisen meistern, Ängste loslassen, das Leben lieben! (German Edition)

Thomas Mosenthin. Click here if your download doesn"t start automatically

Zu + Infinitiv Constructions

Einführung in die Computerlinguistik Satz von Kleene

Max und Moritz: Eine Bubengeschichte in Sieben Streichen (German Edition)

Stochastic Processes SS 2010 Prof. Anton Wakolbinger. Klausur am 16. Juli 2010

Der Topos Mütterlichkeit am Beispiel Bertolt Brechts "Der kaukasische Kreidekreis" und "Mutter Courage und ihre Kinder" (German Edition)

Duell auf offener Straße: Wenn sich Hunde an der Leine aggressiv verhalten (Cadmos Hundebuch) (German Edition)

Statistics, Data Analysis, and Simulation SS 2015

Willkommen zur Vorlesung Komplexitätstheorie

Methoden der empirischen Kommunikationsforschung: Eine Einführung (Studienbücher zur Kommunikations- und Medienwissenschaft) (German Edition)

Die besten Chuck Norris Witze: Alle Fakten über den härtesten Mann der Welt (German Edition)

FEM Isoparametric Concept

Introduction FEM, 1D-Example

Wer bin ich - und wenn ja wie viele?: Eine philosophische Reise. Click here if your download doesn"t start automatically

Flow - der Weg zum Glück: Der Entdecker des Flow-Prinzips erklärt seine Lebensphilosophie (HERDER spektrum) (German Edition)

Die einfachste Diät der Welt: Das Plus-Minus- Prinzip (GU Reihe Einzeltitel)

Ausführliche Unterrichtsvorbereitung: Der tropische Regenwald und seine Bedeutung als wichtiger Natur- und Lebensraum (German Edition)

Ab 40 reif für den Traumjob!: Selbstbewusstseins- Training Für Frauen, Die Es Noch Mal Wissen Wollen (German Edition)

Spagate in der Spirale und ihre Anerkennung als Schwierigkeitsteile Difficulty recognition of splits in spiral

Data Structures and Algorithm Design

Bayesian Networks. Syntax Semantics Parametrized Distributions Inference in Bayesian Networks. Exact Inference. Approximate Inference

Level 2 German, 2013

PONS DIE DREI??? FRAGEZEICHEN, ARCTIC ADVENTURE: ENGLISCH LERNEN MIT JUSTUS, PETER UND BOB

E.T.A. Hoffmann: Kindermärchen - "Nussknacker und Mausekönig": Abhandlung einer These (German Edition)

Automaten und Formale Sprachen Endliche Automaten und Reguläre sprachen

Unit 6. Fuzzy Inference. Fuzzy Logic I 159

SOKO Ponyhof - Erster Roman: Gefahr in den Ferien (German Edition)

FACHKUNDE FüR KAUFLEUTE IM GESUNDHEITSWESEN FROM THIEME GEORG VERLAG

Aus FanLiebe zu Tokio Hotel: von Fans fã¼r Fans und ihre Band

Max Metzger. Click here if your download doesn"t start automatically

Kursbuch Naturheilverfahren: Curriculum der Weiterbildung zur Erlangung der Zusatzbezeichnung Naturheilverfahren (German Edition)

C++ kurz & gut (German Edition)

DIBELS TM. German Translations of Administration Directions

Selbstbild vs. Fremdbild. Selbst- und Fremdwahrnehmung des Individuums (German Edition)

BA63 Zeichensätze/ Character sets

Harry gefangen in der Zeit Begleitmaterialien

My Reading-Log. Eine Hilfe beim Lesen von englischen Ganzschriften in der Schule. Hinweise zur technischen Umsetzung:

Was Sie schon immer über Teneriffa wissen wollten: Erklärungen & Wissenswertes, Tipps & Highlights (German Edition)

User Guide Agile Scorecard

In 1900, David Hilbert outlined 23 mathematical problems to the International Congress of Mathematicians in Paris. Here is the first:

Im Fluss der Zeit: Gedanken beim Älterwerden (HERDER spektrum) (German Edition)

DAS ZUFRIEDENE GEHIRN: FREI VON DEPRESSIONEN, TRAUMATA, ADHS, SUCHT UND ANGST. MIT DER BRAIN-STATE-TECHNOLOGIE DAS LEBEN AUSBALANCIEREN (GE

Where are we now? The administration building M 3. Voransicht

Fußballtraining für jeden Tag: Die 365 besten Übungen (German Edition)

Schöpfung als Thema des Religionsunterrichts in der Sekundarstufe II (German Edition)

SICHERHEITSMITTEILUNG für Gurtzeuge

Level 1 German, 2014

CABLE TESTER. Manual DN-14003

There are 10 weeks this summer vacation the weeks beginning: June 23, June 30, July 7, July 14, July 21, Jul 28, Aug 4, Aug 11, Aug 18, Aug 25

Weihnachten anno Domini 2014: Geschichten, Sprüche und anderes (German Edition)

Wortdekodierung. Vorlesungsunterlagen Speech Communication 2, SS Franz Pernkopf/Erhard Rank

DAS ERSTE MAL UND IMMER WIEDER. ERWEITERTE SONDERAUSGABE BY LISA MOOS

Mein Weg aus der Depression:: Wieso ein erfolgreicher Familienvater, Sportler und Banker plötzlich an Selbstmord dachte (German Edition)

Nürnberg und der Christkindlesmarkt: Ein erlebnisreicher Tag in Nürnberg (German Edition)

Die Kunst der Gotik: Eine Einführung (German Edition)

Die einfachste Diät der Welt: Das Plus-Minus- Prinzip (GU Reihe Einzeltitel)

Algebra. Übungsblatt 2 (Lösungen)

Analyse und Interpretation der Kurzgeschichte "Die Tochter" von Peter Bichsel mit Unterrichtsentwurf für eine 10. Klassenstufe (German Edition)

In German, there is only one way: you always add -er for comparative, and -(e)st for superlative.

Diabetes zu heilen natürlich: German Edition( Best Seller)

B I N G O DIE SCHULE. Bingo card: Classroom Items abcteach.com

Transkript:

- University of Applied Sciences - Computational Models - CSCI 331 - Friedhelm Seutter Institut für Angewandte Informatik Part I Automata and Languages 0. Introduction, Alphabets, Strings, and Languages 1. Regular Languages and Finite Automata 2. Context-Free Languages and Pushdown Automata Institut für Angewandte Informatik 2 1

1. Regular Languages Finite Automata Nondeterminism Regular Expressions Nonregular Languages Institut für Angewandte Informatik 3 Finite Automata Example: Addition of two binary numbers Institut für Angewandte Informatik 4 2

Finite Automata Example: Computation of the binary adder Sum, output: s : {0,1} 3 {0,1} Carry, internal state: c : {0,1} 3 {0,1} Institut für Angewandte Informatik 5 Finite Automata Example: State diagram (or transition diagram) Institut für Angewandte Informatik 6 3

Finite Automata Components: Institut für Angewandte Informatik 7 Finite Automata Components of FA without output tape: Institut für Angewandte Informatik 8 4

Finite Automata Example: Input: w {a,b}* Output: o {no,yes} Institut für Angewandte Informatik 9 Finite Automata Institut für Angewandte Informatik 10 5

Finite Automata Example: M = ({0,1,2}, {a,b}, δ, 0, {0}) δ: a b 0 1 0 1 2 1 2 0 2 Institut für Angewandte Informatik 11 Finite Automata Institut für Angewandte Informatik 12 6

Finite Automata Computation: Initially a finite automaton is in its start state and the reading head is positioned on the first symbol of the input. Depending on the present state and the present input symbol the automaton changes the state and moves the reading head to the next input symbol. When the input is read completely and the finite automaton terminates processing in a final state, then it accepts, otherwise it rejects the input. Institut für Angewandte Informatik 13 Finite Automata Example: Input: w = baabab Output: yes, accept There is a sequence of states from the start state to a final state: 0, 0, 1, 2, 2, 0, 0 Institut für Angewandte Informatik 14 7

Finite Automata Example: Input: w = baababa Output: no, reject There is no sequence of states from the start state to a final state: 0, 0, 1, 2, 2, 0, 0, 1 L(M) = { w w {a,b}*, w a mod 3 = 0} Institut für Angewandte Informatik 15 Finite Automata Institut für Angewandte Informatik 16 8

Finite Automata Institut für Angewandte Informatik 17 Nondeterminism So far, every step of a computation of a finite automaton follows in a unique way from the preceding step. The computation is deterministic. Generalization to a nondeterministic computation. There may exist several choices for the next state at any point. We speak of deterministic finite automata (DFA) and of nondeterministic finite automata (NFA). Institut für Angewandte Informatik 18 9

Nondeterminism, NFA Example: Institut für Angewandte Informatik 19 Nondeterminism Extensions: A state may have more than one transition for some alphabet symbol. A state may have no transition for some alphabet symbol. A state may have a transition for the empty string ε, which is not an alphabet symbol. Institut für Angewandte Informatik 20 10

Nondeterminism, NFA Institut für Angewandte Informatik 21 Nondeterminism, NFA Example: N = ({A,B,C,D}, {a,b}, δ, A, {A}) δ: a b ε A {C} {A} {B} B {A,B} C {D} {C} D {A} {D} Institut für Angewandte Informatik 22 11

Nondeterminism, NFA Computation: If there are several choices for a state and an input symbol, the automaton splits into multiple copies of itself and follows all the possibilities in parallel. If there is no transition for a state and an input symbol, the automaton terminates this branch. ε - transition: No input symbol is read, the head is not moved to the next input symbol. The automaton just changes to the next state. Institut für Angewandte Informatik 23 Nondeterminism Computation of input string baaba: Institut für Angewandte Informatik 24 12

Nondeterminism Institut für Angewandte Informatik 25 Nondeterminism Input string w = baaba: For example, w can be written as εbaaba leading to a final state. Institut für Angewandte Informatik 26 13

Equivalence of NFA and DFA Institut für Angewandte Informatik 27 Subset Construction Given NFA N = (Q, Σ, δ, q 0, F). Construction of an equivalent DFA M = (Q, Σ, δ, q 0, F ): Institut für Angewandte Informatik 28 14

Subset Construction Given NFA N = (Q, Σ, δ, q 0, F). Construction of an equivalent DFA M = (Q, Σ, δ, q 0, F ): Institut für Angewandte Informatik 29 Example of Subset Construction Institut für Angewandte Informatik 30 15

Example of Subset Construction Reachable states from start state Institut für Angewandte Informatik 31 Computation of NFA N and equivalent DFA M for input baaba: Institut für Angewandte Informatik 32 16

Closure under Regular Operations Institut für Angewandte Informatik 33 Closure under Union N 1 N N 2 ε ε NFAs N 1, N 2, N with L(N) = L(N 1 ) L(N 2 ) Institut für Angewandte Informatik 34 17

Closure under Concatenation N 1 N N 2 ε ε NFAs N 1, N 2, N with L(N) = L(N 1 ) L(N 2 ) Institut für Angewandte Informatik 35 Closure under Star Operation N 1 N ε ε ε NFAs N 1, N with L(N) = (L(N 1 ))* Institut für Angewandte Informatik 36 18