A Quick Review of Set Theory A set is a collection of objects. A B D E We can enumerate the “members” or “elements” of finite sets: { A, D, B, E }. There.

Slides:



Advertisements
Similar presentations
Chapter 2 Revision of Mathematical Notations and Techniques
Advertisements

Beesley 2001 Finite-State Technology and Linguistic Applications March 2001 Xerox Research Centre Europe Grenoble Laboratory 6, chemin de Maupertuis.
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
1 Languages. 2 A language is a set of strings String: A sequence of letters Examples: “cat”, “dog”, “house”, … Defined over an alphabet: Languages.
Regular Languages Sequential Machine Theory Prof. K. J. Hintz Department of Electrical and Computer Engineering Lecture 3 Comments, additions and modifications.
1 Languages and Finite Automata or how to talk to machines...
Costas Busch - RPI1 Mathematical Preliminaries. Costas Busch - RPI2 Mathematical Preliminaries Sets Functions Relations Graphs Proof Techniques.
Courtesy Costas Busch - RPI1 Mathematical Preliminaries.
Theoretical Computer Science COMP 335 Fall 2004
Fall 2006Costas Busch - RPI1 Languages. Fall 2006Costas Busch - RPI2 Language: a set of strings String: a sequence of symbols from some alphabet Example:
Cs466(Prasad)L3RE1 Representation of Languages. cs466(Prasad)L3RE2 Need finite descriptions of infinite sets of strings (=> specify languages). Discover.
Fall 2004COMP 3351 Languages. Fall 2004COMP 3352 A language is a set of strings String: A sequence of letters/symbols Examples: “cat”, “dog”, “house”,
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
Survey of Mathematical Ideas Math 100 Chapter 2
Survey of Mathematical Ideas Math 100 Chapter 2 John Rosson Thursday January 25, 2007.
This section will discuss the symbolism and concepts of set theory
Objectives: By the end of class, I will be able to:  Identify sets  Understand subsets, intersections, unions, empty sets, finite and infinite sets,
CSC312 Automata Theory Lecture # 2 Languages.
CSC312 Automata Theory Lecture # 2 Languages.
Costas Busch - LSU1 Languages. Costas Busch - LSU2 Language: a set of strings String: a sequence of symbols from some alphabet Example: Strings: cat,
Computational Lexicology, Morphology and Syntax Diana Trandab ă ț Academic year
Mathematical Preliminaries Strings and Languages Preliminaries 1.
Definition and Representation A set is a well-defined collection of objects; The objects are called elements or members of the set; A set can be represented.
Sets --- A set is a collection of objects. Sets are denoted by A, B, C, … --- The objects in the set are called the elements of the set. The elements are.
Mathematical Preliminaries. Sets Functions Relations Graphs Proof Techniques.
1 Languages. 2 A language is a set of strings String: A sequence of letters Examples: “cat”, “dog”, “house”, … Defined over an alphabet:
Properties of Real Numbers. Sets In mathematics, a set is a collection of things Sets can be studies as a topic all on its own (known as set theory),
Copyright © 2014 Curt Hill Sets Introduction to Set Theory.
Strings and Languages CS 130: Theory of Computation HMU textbook, Chapter 1 (Sec 1.5)
1. Set Theory Set: Collection of objects (“elements”) a  A “a is an element of A” “a is a member of A” a  A “a is not an element of A” A = {a 1, a 2,
Thinking Mathematically Chapter 2 Set Theory 2.1 Basic Set Concepts.
Slide Chapter 2 Sets. Slide Set Concepts.
Chapter 2 Section 1 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
ELEMENTARY SET THEORY.
Discrete Mathematical Structures 4 th Edition Kolman, Busby, Ross © 2000 by Prentice-Hall, Inc. ISBN
PSAT MATHEMATICS 9-A Basic Arithmetic Concepts. Set A collection of “things” that have been grouped together in some way. “things” – elements or members.
SAT MATH Lesson 10.
CSNB143 – Discrete Structure Topic 1 - Set. Topic 1 - Sets Learning Outcomes – Student should be able to identify sets and its important components. –
Introduction Episode 0 What is TOC (Theory of Computation) about? Giorgi Japaridze Theory of Computability Subject: The fundamental mathematical properties.
(CSC 102) Lecture 13 Discrete Structures. Previous Lectures Summary  Direct Proof  Indirect Proof  Proof by Contradiction  Proof by Contra positive.
Natural Language Processing Chapter 2 : Morphology.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com ICOM 5016 – Introduction.
Discrete Mathematics Set.
November 2003Computational Morphology III1 CSA405: Advanced Topics in NLP Xerox Notation.
Strings and Languages Denning, Section 2.7. Alphabet An alphabet V is a finite nonempty set of symbols. Each symbol is a non- divisible or atomic object.
Theory of computation Introduction theory of computation: It comprises the fundamental mathematical properties of computer hardware, software,
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Languages and Strings Chapter 2. (1) Lexical analysis: Scan the program and break it up into variable names, numbers, etc. (2) Parsing: Create a tree.
Chapter 1 INTRODUCTION TO THE THEORY OF COMPUTATION.
CPCS 222 Discrete Structures I
Sets Page 746.
Sets Finite 7-1.
CSNB 143 Discrete Mathematical Structures
Languages.
The Basic Concepts of Set Theory
Languages Prof. Busch - LSU.
Languages Costas Busch - LSU.
        { } Sets and Venn Diagrams Prime Numbers Even Numbers
Algebra 1 Section 1.1.
The Basic Concepts of Set Theory
Set-Builder Notation.
ALGEBRA I - SETS : UNION and INTERSECTION
Chapter 7 Logic, Sets, and Counting
ICOM 5016 – Introduction to Database Systems
ICOM 5016 – Introduction to Database Systems
Introduction A set is a collection of objects.
books WARM-uP Lesson 1 Independent work Exit card
Set – collection of objects
Languages Fall 2018.
Presentation transcript:

A Quick Review of Set Theory A set is a collection of objects. A B D E We can enumerate the “members” or “elements” of finite sets: { A, D, B, E }. There is no significant order in a set, so { A, D, B, E } is the same set as { E, A, D, B }, etc.

Uniqueness of Elements You cannot have two or more ‘A’ elements in the same set A B DE { A, A, D, B, E} is just a redundant specification of the set { A, D, B, E }.

Cardinality of Sets The Empty Set: A Finite Set: An Infinite Set: e.g. The Set of all Positive Integers Norway Denmark Sweden

Simple Operations on Sets: Union A B C D E Set 1Set 2 B C A D E Union of Set1 and Set 2

Simple Operations on Sets (2): Union A B C C D Set 1Set 2 B C A D Union of Set1 and Set 2

Exercise #1 - Union pen pencil book marker book Set 1Set 2 ?

Simple Operations on Sets (3): Intersection A B C C D Set 1Set 2 C Intersection of Set1 and Set 2

Exercise #2 - Intersection pen pencil book marker book Set 1Set 2 ?

Simple Operations on Sets (4): Subtraction A B C C D Set 1Set 2 A B Set 1 minus Set 2

Exercise #3 - Subtraction pen pencil book marker book Set 1Set 2 ?

Formal Languages Very Important Concept in Formal Language Theory: A Language is just a Set of Words. We use the terms “word” and “string” interchangeably. A Language can be empty, have finite cardinality, or be infinite in size. You can union, intersect and subtract languages, just like any other sets.

Union of Languages (Sets) dog cat rat elephant mouse Language 1 Language 2 dog cat rat elephant mouse Union of Language 1 and Language 2

Intersection of Languages (Sets) dog cat rat elephant mouse Language 1 Language 2 Intersection of Language 1 and Language 2

Intersection of Languages (Sets) dog cat rat rat mouse Language 1 Language 2 Intersection of Language 1 and Language 2 rat

Subtraction of Languages (Sets) dog cat rat rat mouse Language 1 Language 2 Language 1 minus Language 2 dog cat

Languages A language is a set of words (=strings). Words (strings) are composed of symbols (letters) that are “concatenated” together. At another level, words are composed of “morphemes”. In most natural languages, we concatenate morphemes together to form whole words. For sets consisting of words (i.e. for Languages), the operation of concatenation is very important.

Concatenation of Languages work talk walk Root Language 0 ing ed s Suffix Language work working worked works talk talking talked talks walk walking walked walks The concatenation of the Suffix language after the Root language.

Exercise #4 - Concatenation able like Prefix language Root Language The concatenation of the Prefix language before the Root language.

Exercise #4 - Concatenation happy white black Root language Suffix Language The concatenation of the Suffix language after the Root language.