# week1 - Week 1 Lecture 1 1 Languages Machines Functions 2...

This preview shows pages 1–3. Sign up to view the full content.

Week 1: Lecture 1 1. Languages, Machines, Functions 2. Languages Regular Languages, Context Free Language Context Sensitive Languages Recursively Enumerable Languages How to define? Grammars: Regular Grammars, CFG, CSG etc. Grammar G = (V, Σ , P, S), where V is a finite set called the variables Σ is a finite set, disjoint from V, called the variables P is a set of productions (rules), where each production has a form of α -> β and α , β (V Σ ) * S is the start symbol. Regular grammar CFG, … Example: Even parity strings ({S, A}, {0,1}, P, S), where P is: S -> 1A , S -> 0S, S -> 0 A -> 0A, A -> 1, A -> 1S 3. Machines: Computability Finite State Automata (DFA) M = (Q, Σ , δ , q0, F), where Q: a finite set called states Σ : a finite set called the alphabet δ : Q × Σ Q is the transition function q0 Q is the start state F Q is the set of accept states Example: Even parity language M1 = (Q, Σ , δ , q0, F), where Q = {q0, q1} Σ = {0,1} δ : 0 1 q0 q0 q1 q1 q1 q0

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
F = {q0} Example: Language consisting of all strings over {0,1} containing a 0 in the last third position from the end L = {(0+1)* 0 (0+1)(0+1)(0+1) } M1 = (Q, Σ , δ , q0, F), where Q = {q0, q1, q2, q3} Σ = {a,b,c} δ :
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern