Introduction Tomáš Vaníček Czech Technical University Faculty of Civil Engeneering, Thákurova 7, Praha Dejvice, B407

Slides:



Advertisements
Similar presentations
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Advertisements

Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Week 7 - Wednesday.  What did we talk about last time?  Set proofs and disproofs  Russell’s paradox.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
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.
EE1J2 – Discrete Maths Lecture 7
PART 1 From classical sets to fuzzy sets 1. Introduction 2. Crisp sets: an overview 3. Fuzzy sets: basic types 4. Fuzzy sets: basic concepts FUZZY SETS.
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Sets 1.
Functions Goals Introduce the concept of function Introduce injective, surjective, & bijective functions.
CS 2210 (22C:019) Discrete Structures Sets and Functions Spring 2015 Sukumar Ghosh.
SETS A set B is a collection of objects such that for every object X in the universe the statement: “X is a member of B” Is a proposition.
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,
CS355 - Theory of Computation Lecture 2: Mathematical Preliminaries.
Relation, function 1 Mathematical logic Lesson 5 Relations, mappings, countable and uncountable sets.
Math 3121 Abstract Algebra I Section 0: Sets. The axiomatic approach to Mathematics The notion of definition - from the text: "It is impossible to define.
Functions. Copyright © Peter Cappello2 Definition Let D and C be nonempty sets. A function f from D to C, for each element d  D, assigns exactly 1 element.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Sets.
ICS 253: Discrete Structures I
Week 7 - Friday.  What did we talk about last time?  Set disproofs  Russell’s paradox  Function basics.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
1 Sequential Machine Theory Prof. K. J. Hintz Department of Electrical and Computer Engineering Lecture 1 Adaptation to this.
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.
1.4 Sets Definition 1. A set is a group of objects . The objects in a set are called the elements, or members, of the set. Example 2 The set of positive.
Sets and Functions Contents  Set language  Basic knowledge on sets  Intervals  Functions (Mappings)
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.
Language: Set of Strings
Mathematical Proofs. Chapter 1 Sets 1.1 Describing a Set 1.2 Subsets 1.3 Set Operations 1.4 Indexed Collections of Sets 1.5 Partitions of Sets.
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
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,
MATH 224 – Discrete Mathematics
CompSci 102 Discrete Math for Computer Science
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.
Sets 2/10/121. What is a Set? Informally, a collection of objects, determined by its members, treated as a single mathematical object Not a real definition:
Chapter 2 With Question/Answer Animations. Chapter Summary Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations.
Chapter 2 With Question/Answer Animations. Section 2.1.
Rosen 1.6, 1.7. Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by.
Basic Structures: Sets, Functions, Sequences, and Sums.
(CSC 102) Lecture 13 Discrete Structures. Previous Lectures Summary  Direct Proof  Indirect Proof  Proof by Contradiction  Proof by Contra positive.
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.
Chapter 2 With Question/Answer Animations. Section 2.1.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Introduction to Graph Theory & its Applications
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
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.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 1 The Foundations: Logic, Sets,
2004/10/5fuzzy set theory chap03.ppt1 Classical Set Theory.
Week 7 - Wednesday.  What did we talk about last time?  Proving the subset relationship  Proving set equality  Set counterexamples  Laws of set algebra.
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.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
Sets, Permutations, and Combinations. Lecture 4-1: Sets Sets: Powerful tool in computer science to solve real world problems. A set is a collection of.
Chapter 4 Introduction to Set Theory
Set, Combinatorics, Probability & Number Theory
… and now for something completely different…
Lesson 5 Relations, mappings, countable and uncountable sets
2.1 Sets Dr. Halimah Alshehri.
Lesson 5 Relations, mappings, countable and uncountable sets
ICS 253: Discrete Structures I
Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007
ICOM 5016 – Introduction to Database Systems
Lecture Sets 2.2 Set Operations.
Sets & Set Operations.
ICOM 5016 – Introduction to Database Systems
Presentation transcript:

Introduction Tomáš Vaníček Czech Technical University Faculty of Civil Engeneering, Thákurova 7, Praha Dejvice, B407 On CZU office 414, old building PEF

Lecture Constents Sets, set operations, mappings, cardinality Relations and Operations Logic, language PROLOG Formal languages Finite Automata, regular languages Other formal model of computing Computational complexity of algorithms Graphs Analysis of algorithms: graph, sortinh, searching of extrems, heuristic algorithms

Literature Vaníček,J., Papík,M., Pergl,R., Vaníček,T.: Teoretické základy informatiky, Kernberg Publishing, 2007 Vaníček,J., Papík,M., Pergl,R., Vaníček,T.: Mathematical Foundation of Computer Science, Kernberg Publishing, 2008

Set Theory Set is a well defined collection of items The question wheather element belongs to the set or no, must be clearly answered Element x belongs to set A, x  A. The element can be member of the set or no. The element cannot be member of the set more times

Classes and Sets Sets can be members of aother sets Russels paradox Mathematic needs to deal with proper defined terms For proper foundation of mathematic the axiomatic set theory is necessary

Equality of sets, Subsets Two sets are equal, if they have same members Set with no elements is called empty: ø Set A is subset of set B, if each element of A is element of B. Set A if proper subset of B, if A is subset of B and A is not equal to B

Describing of sets By enumeration of elemnts – A={1,2,3} – B={Prague, Vienna, Budapest, Bartislava} – C={1,2,1,2,3,4,1}={1,2,3,4}={1,3,4,2} By distinctive predicate A={x|P(x)} – A={x|x  N, x<4} – B={x|x is capital of central European country} By using already defined set – C={x  N| x<4}

Common set notations Z… Set of Integers Z + … Set of positive integers N… Set of nonnegative integers (natural numbers) Q… Set of rational numbers R… Set of real numbers C… Set of complex numbers R +, R -, Q +,…

Set operations Union Intersection Difference Symmetric difference Potency set

Ordered pair Ordered pair (a,b) is a set {{a,b},a}. a is assigned to be the first element. Ordered n-tuple (a1,a2,…,an) could be defined by induction – For n=2 it is a ordered pair (a1,a2) – For n>2 it is a ordered pair of (n-1)-tuple (a2,…,an) and an element a1.

Cartesian product Cartesian product A x B is a set of all ordered pairs (a,b), where a is from A and b is from B. Cartesian product of finite system of sets A1xA2x…xAn is a set of all n-tuples (a1,…,an) where ai is from Ai.

Mappings Mapping from set A to set B: for some elements of A there exist exactly one element of B Mapping of set A to set B: for all elements of A there exist exactly one element of B Mapping from set A onto set B (surjection): Each element of B has its element in a such that m(a)=b (a is the pattern of b).

Mappings Simple mapping (injection): for different patterns a1,a2 there are different images b1,b2. Bijection (one-to-one mapping) is injection A onto B.

Cardinality of sets Two finite sets A,B have same cardinality if there exist one-to-one mapping A onto B. Cardinality of set A is represented as card(A), |A|, moh(A) If card(A)≤card(B) there exist injection of A into B. If card(A)≥card(B) there exist surjection of A onto B.

Cardinality of infinite sets Two infinite sets A,B have same cardinality if there exist one-to-one mapping A onto B. card(N) = card(Z) = card(Q) = aleph0 Set of all (infinite) lists of 0,1 (L) has bigger cardinality then aleph0. card(L)=card(R). card(2 M )>card(M)

Fuzziness Reasons for uncertainty: – Stochastic character of the process (tomorrow will come rain) – Quantum uncertainty (temperature of water in the sink is 10 degrees) – Fuzziness of the term (I am a tall man)

Fuzzy sets Classical set theory: element belongs to set or no. There exist characteristic function of set A, M A. – M A = 1, while x  A, M A = 0, while not x  A. Fuzzy set is determined by characteristic function μ A from universe U to interval – μ A (x)= 1, while x is definitely in A. – μ A (x)= 0, while x is definitely not in A. – μ A is between 0 and 1, while x is not definitely in A not definitely outside of A.

Fuzzy sets Support of A: supp(A)={x  U|μ A (x) > 0}. Core of A: supp(A)={x  U|μ A (x) = 1}. Height of fuzzy set: sup(supp(A)). Normal fuzzy set: Height equal to 1. α-level of the fuzzy set A {x  U|μ A (x) ≥ α}. Α-cut of the fuzzy set A {x  U|μ A (x) = α}.

Fuzzy set operations A is subset of B: μ A (x) ≤ μ B (x) B is difference of A: μ B (x) = 1 - μ A (x) C is (standard) union of A and B: μ C (x)=max(μ A (x), μ B (x)) C is (standard) intersection of A and B: μ C (x)=min(μ A (x), μ B (x))

Fuzzy numbers Let a≤b≤c≤d be four real numbers such that: – μ A (x)=0, for x d – μ A (x)=1, for x between b and c – μ A (x) is increasing between a and b. – μ A (x)is decreasing between c and d. Such set A we call fuzzy interval. If b=c we call such a set fuzzy number.