Mathematical preliminaries Episode 2 0 Sets Sequences Functions Relations Strings.

Slides:



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

More Set Definitions and Proofs 1.6, 1.7. Ordered n-tuple The ordered n-tuple (a1,a2,…an) is the ordered collection that has a1 as its first element,
Recursive Definitions and Structural Induction
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Section 1.6: Sets Sets are the most basic of discrete structures and also the most general. Several of the discrete structures we will study are built.
2.1 Sets. DEFINITION 1 A set is an unordered collection of objects. DEFINITION 2 The objects in a set are called the elements, or members, of the set.
Review of Mathematical Notation / Terminology
Discussion #25 1/13 Discussion #25 Set Topics & Applications.
CS5371 Theory of Computation Lecture 1: Mathematics Review I (Basic Terminology)
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Sets 1.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
Fall 2006Costas Busch - RPI1 Languages. Fall 2006Costas Busch - RPI2 Language: a set of strings String: a sequence of symbols from some alphabet Example:
Sets.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Set theory Sets: Powerful tool in computer science to solve real world problems. A set is a collection of distinct objects called elements. Traditionally,
 2004 SDU Introduction to the Theory of Computation My name: 冯好娣 My office: 计算中心 430
CS355 - Theory of Computation Lecture 2: Mathematical Preliminaries.
INTRODUCTION TO THE THEORY OF COMPUTATION INTRODUCTION MICHAEL SIPSER, SECOND EDITION 1.
Costas Busch - LSU1 Languages. Costas Busch - LSU2 Language: a set of strings String: a sequence of symbols from some alphabet Example: Strings: cat,
Mathematical Preliminaries Strings and Languages Preliminaries 1.
An ordered n-tuple is a set of n objects with an order associated with them. If n objects are represented by x 1, x 2,..., x n, then we write the ordered.
ICOM 6005 – Database Management Systems Design Dr. Manuel Rodríguez Martínez Electrical and Computer Engineering Department Lecture 2 – Relational Model.
1 Chapter 1 Introduction to the Theory of Computation.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
R. Johnsonbaugh, Discrete Mathematics 5 th edition, 2001 Chapter 2 The Language of Mathematics.
CSCI 2670 Introduction to Theory of Computing Instructor: Shelby Funk.
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
Discrete Structures Li Tak Sing( 李德成 ) Lecture note 2 1.
Example Prove that: “IF 3n + 2 is odd, then n is odd” Proof by Contradiction: -p = 3n + 2 is odd, q = n is odd. -Assume that ~(p  q) is true OR -(p 
Discrete Structure Sets. 2 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.
Mathematical Notions and Terminology Lecture 2 Section 0.2 Fri, Aug 24, 2007.
Language: Set of Strings
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
Discrete Mathematics R. Johnsonbaugh
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
Module Code MA1032N: Logic Lecture for Week Autumn.
Mathematical Preliminaries
Chapter 2 With Question/Answer Animations. Section 2.1.
Basic Structures: Sets, Functions, Sequences, and Sums.
Introduction Episode 0 What is TOC (Theory of Computation) about? Giorgi Japaridze Theory of Computability Subject: The fundamental mathematical properties.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Review 2 Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by lower.
Module #10: Proof Strategies Rosen 5 th ed., §3.1 (already covered)
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
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.
Fr: Discrete Mathematics by Washburn, Marlowe, and Ryan.
Section 2.1. Sets A set is an unordered collection of objects. the students in this class the chairs in this room The objects in a set are called the.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
Discrete Mathematics Lecture # 17 Function. Relations and Functions  A function F from a set X to a set Y is a relation from X to Y that satisfies the.
Introduction to Set Theory (§1.6) A set is a new type of structure, representing an unordered collection (group, plurality) of zero or more distinct (different)
Set Definition: A set is unordered collection of objects.
Introduction Chapter 0.
Overview of Sets an Functions for ICS 6D
Introduction to the Theory of Computation
Set, Combinatorics, Probability & Number Theory
Languages Prof. Busch - LSU.
Languages Costas Busch - LSU.
INTRODUCTION TO THE THEORY OF COMPUTATION
Advanced Algorithms Analysis and Design
Relations and their Properties
Introduction Chapter 0.
Chapter 1 Introduction to the Theory of Computation
Mathematical and computability-theoretic preliminaries
Languages Fall 2018.
Terminology and Symbols
Presentation transcript:

Mathematical preliminaries Episode 2 0 Sets Sequences Functions Relations Strings

Sets 2.1 Set --- any collection of distinct objects. E={2,4,6,8,…}, or E={x | x is a positive integer divisible by 2}, or E={x | x=2k for some positive integer k}, etc. a  E --- “a is an element of E”, or “a is in E” a  E --- “a is not an element of E”, or “a is not in E” S  T --- “S is a subset of T” i.e. every element of S is also an element of T S  T --- “the intersection of S and T ” i.e. the set of the objects that are both in S and T S  T --- “the union of S and T ” i.e. the set of the objects that are in either S or T or both  --- “the empty set” Describing a set: Set-related terminology and notation:

Sequences, tuples, products 2.2 A sequence is a finite or infinite list. E.g.: 1,1,2,1,2,3,1,2,3,4,1,2,3,4,5,… is a sequence of natural numbers An n-tuple is a sequence with n elements. E.g.: (5,2) tuple (pair) (3,0,3) tuple (triple) (1,2,1,2) tuple (quadruple) {1,2,2} = {1,2} = {2,1}, but (1,2,2)  (1,2)  (2,1) The product of sets S and T is defined by S  T = {(s,t) | s  S and t  T} Generalizes to S 1 ...  S n !

Functions 2.3 Function (often also called an operation) f from set A to set B --- assignment of a unique element f(a)  B to each a  A N --- natural numbers: {0,1,2,…} R --- rational numbers: {0/1, 5/1, 1/3, 8/5, etc.} If x,y always take values from N, what are the types of f, g, h? the type of f the range of f the domain of f f: A  B A B abcabc f f(x) = 2x g(x) = x/2 h(x,y) = x+y f: g: h: N  N  N N  RN  N

Relations 2.4 Let A be a set and n be a natural number. An n-ary relation on A is any subset of A n (A n means A ...  A n times). When n=1, the relation is said to be unary; when n=2, it is said to be binary; when n=3, it is said to be ternary. Example: < is a binary relation on N: NNNN < (1,3) (6,20) (12,32)... (3,1) (4,4) (100,39)...

Predicates; characteristic functions 2.5 Throughout this course, by a predicate we will try to exclusively mean a unary relation. In the literature, the words “predicate” and “relation” are usually used as synonyms. This is OK: after all, every n-ary relation on A can as well be thought of as a unary relation (predicate) on A n. Furthermore, we will see no difference between predicates and sets. Indeed, by definition, a predicate (or a relation in general) is nothing but a set. Let A be a set and P be a predicate on it. The characteristic function of P is defined as the function p: A  {0,1} such that, for every w  A, p(w) = 1 if w  P; 0 if w  P. Often we further identify predicates with their characteristic functions.

Strings 2.6 Alphabet --- a finite set of objects called the symbols of the alphabet. {a,…,z,0,...,9,!,?,$,>,#,...} --- Keyboard alphabet. {0,...,9} --- Decimal alphabet. Its elements are called decimal digits. {0,1} --- Binary alphabet. Its elements are called bits (binary digits). String over an alphabet  --- a sequence of symbols from . Decimal strings: 2007, 12144, etc. Binary strings (bit strings): 1001, 00000, 011, etc. Finite strings: abracadabra, 厦门大学, etc. Infinite strings: , , etc. The empty string is denoted by . The Concatenation wu of strings w and u is the result of appending u at the end of w. Defined only when w is finite. The set of all strings over alphabet  is denoted by  *.

What else you need 2.7 You are expected to have some basic knowledge and experience with: Graphs Mathematical definitions and proofs Theory of computation Logic