1
ICS 6B Boolean Algebra & Logic
Lecture Notes for Summer Quarter, 2008 Michele Rousseau
Set 10 – Ch. 12.1, 12.2, 12.3
(Some slides inspired and adapted from Alessandra Pantano)
Announcements
Final on Tuesday in class Comprehensive
- Similar to quizzes
- A little more focus on last lecture
Let me know if anyone wants some suggested
problems
Let me know if anyone wants to attend a final
review on Monday
- I will announce if I am able to get a room
Quiz #4 regrades due today
Lecture Set 10 - Chpts 12.1, 12.2, 12.3 2
Today’s Lecture
Chapter 1212.1, 12.2, 12.3
- Languages and Grammars 12.1
- Finite State Machines with Outputs 12.2
- Finite State Machines with No Output 12.3
Lecture Set 10 - Chpts 12.1, 12.2, 12.3 3
Chapter 12: Section 12.1
Languages and Grammars
Preliminary Definitions:
Vocabulary: a not empty finite set of symbols
- Also called an “alphabet”
Sentence: a finite string of symbols
- Also called a “word”
Language: any collection of sentences
Lecture Set 10 - Chpts 12.1, 12.2, 12.3 5
A sentence can be the empty string of symbols. In this case the sentence is denoted by λlambda
Examples
Example 1
- Va,B,C,d is a vocabulary
- aBaaC and dBaB are sentences
- The set aBaaC, dBaB is a language
Example 2
- VEnglish words
- g
- Any finite sequence of words is a sentence
- The set “The Blue The”, “sky is blue”, “goat two” is a
language Example 3
- Vletters in the alphabet
- Any sequence of the letters is a sentence
- The set “blue”, “sky”, “the” is a language
Lecture Set 10 - Chpts 12.1, 12.2, 12.3 6