Lecture 1 Introduction and preliminaries (Chapter 0)

Slides:



Advertisements
Similar presentations
1. 2 Overview Review of some basic math Review of some basic math Error correcting codes Error correcting codes Low degree polynomials Low degree polynomials.
Advertisements

Permutations and Combinations Rosen 4.3. Permutations A permutation of a set of distinct objects is an ordered arrangement these objects. An ordered arrangement.
1. 2 Overview Some basic math Error correcting codes Low degree polynomials Introduction to consistent readers and consistency tests H.W.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
1 CSE 20: Lecture 7 Boolean Algebra CK Cheng 4/21/2011.
Induction and recursion
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
Binomial Coefficients, Inclusion-exclusion principle
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
4-2 binary fields and binary vector spaces Special Thanks to Dr. Samir Al-Ghadhban & EE430 Students.
1 Chapter 1 Introduction to the Theory of Computation.
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
1 Set Theory Chapter 3. 2 Chapter 3 Set Theory 3.1 Sets and Subsets A well-defined collection of objects (the set of outstanding people, outstanding is.
ENEE244-02xx Digital Logic Design Lecture 3. Announcements Homework 1 due next class (Thursday, September 11) First recitation quiz will be next Monday,
Chapter 4 Probability ©. Sample Space sample space.S The possible outcomes of a random experiment are called the basic outcomes, and the set of all basic.
Week 11 What is Probability? Quantification of uncertainty. Mathematical model for things that occur randomly. Random – not haphazard, don’t know what.
Copyright © 2014 Curt Hill Sets Introduction to Set Theory.
Language: Set of Strings
Strings and Languages CS 130: Theory of Computation HMU textbook, Chapter 1 (Sec 1.5)
Mathematical Preliminaries
Set Theory Chapter 3. Chapter 3 Set Theory 3.1 Sets and Subsets A well-defined collection of objects (the set of outstanding people, outstanding is very.
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.
Cardinality with Applications to Computability Lecture 33 Section 7.5 Wed, Apr 12, 2006.
(CSC 102) Lecture 13 Discrete Structures. Previous Lectures Summary  Direct Proof  Indirect Proof  Proof by Contradiction  Proof by Contra positive.
Basic Definitions of Set Theory Lecture 23 Section 5.1 Wed, Mar 8, 2006.
Basic Definitions of Set Theory Lecture 24 Section 5.1 Fri, Mar 2, 2007.
2/24/20161 One, two, three, we’re… Counting. 2/24/20162 Basic Counting Principles Counting problems are of the following kind: “How many different 8-letter.
Basic Definitions of Set Theory Lecture 23 Section 5.1 Mon, Feb 21, 2005.
1 Set Theory Second Part. 2 Disjoint Set let A and B be a set. the two sets are called disjoint if their intersection is an empty set. Intersection of.
Algebra 2 Chapter 12 Venn Diagrams, Permutations, and Combinations Lesson 12.2.
Chapter 2 1. Chapter Summary Sets The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions and sequences.
Fifteen Puzzle Move: can move a square adjacent to the empty square to the empty square.
Cardinality with Applications to Computability
Chapter 4 Introduction to Set Theory
Applied Discrete Mathematics Week 1: Logic and Sets
parity bit is 1: data should have an odd number of 1's
CSC 321: Data Structures Fall 2015 Counting and problem solving
Error Detection and Correction
Section 16 Inclusion/Exclusion
COCS DISCRETE STRUCTURES
Lecture 1 Theory of Automata
Aaron Bloomfield CS 202 Epp, section ???
Permutations and Combinations
2.4 Sequences and Summations
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
CSE 2353 – September 22nd 2003 Sets.
Algebra 1 Section 1.1.
Session – 2 SETS & Operations of SETS
CSE15 Discrete Mathematics 04/26/17
Permutations and Combinations
Basic Counting.
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Introduction to Relations and Functions
Basic Counting Lecture 9: Nov 5, 6.
Permutations and Combinations
Probability Notes Math 309.
Chapter 1 Introduction to the Theory of Computation
Cardinality Definition: The cardinality of a set A is equal to the cardinality of a set B, denoted |A| = |B|, if and only if there is a one-to-one correspondence.
parity bit is 1: data should have an odd number of 1's
REVISION Relation. REVISION Relation Introduction to Relations and Functions.
Counting I: Choice Trees and Correspondences
Two's company, three is none.
Lecture 17 Making New Codes from Old Codes (Section 4.6)
{ a } { a, b } { a, b, c } { a, c } { b } 8 subsets. { b, c } { c }
Probability Notes Math 309.
Terminology and Symbols
COSC 3340: Introduction to Theory of Computation
COSC 3340: Introduction to Theory of Computation
Probability Notes Math 309 August 20.
Presentation transcript:

Lecture 1 Introduction and preliminaries (Chapter 0) Theory of Information Lecture 1 Theory of Information Lecture 1 Introduction and preliminaries (Chapter 0)

Theory of Information Lecture 1 Introduction Theory of Information Lecture 1 Subject: Encoding data for transmission Transmission: “from here to there” (i.e., sending a message from one place to another) “from now to later” (i.e., storing data for later retrieval) Very briefly, this course is about encoding data or messages for transmission. Transmission can mean one of the two. For us this does not make difference.

Theory of Information Lecture 1 Introduction Theory of Information Lecture 1 Data encoding – representing data with strings of symbols of another alphabet (mostly, {0, 1}) 3 reasons to encode data: for efficiency (information theory) for error detection and/or correction (coding theory) for secrecy (cryptology) Such encodings are usually done separately: compression → encryption → adding bits for error correction efficiency: smaller space in storage; faster transmission. Errorrs are frequent. As a minimum, we should be able to detect, better – correct. Secrecy, so that unauthorized people cannot read the data. Our main focus will be on the first item, less on the second, and hardly any on the third. If anyone here is because of cryptology, better drop now!

Theory of Information Lecture 1 Introduction Theory of Information Lecture 1 Example of compression. How many bits would it take to encode a 100-character English word? Now assume character “a” appears 50% of the time. How many bits would it take to encode a 100-character English word?

Theory of Information Lecture 1 Introduction Theory of Information Lecture 1 Example of error detection. 1 parity bit 001000100011001011011 If errors occur, what is the probability of noticing them? How about if we used 2 parity bits? How about if we used 10 parity bits?

Theory of Information Lecture 1 Sets Theory of Information Lecture 1 Sets: {aa, bab}, {2,4,6,…} etc. Zn= {0,1,…,n-1} , or {} --- the empty set |S| --- the size (number of elements) of S bS --- b is an element of S ST --- S is a subset of T. Also, T is a superset of S. Sc --- the complement of S ST --- the union of S and T ST --- the intersection of S and T When ST=, we say that S and T are disjoint Set notation examples: {a | a is an even integer} {2k | k is an integer}

Theory of Information Lecture 1 Summation Notation Theory of Information Lecture 1 If s1,…,sn are numbers or algebraic expressions, their sum is denoted by  sk n k=1 3  2k = 21+22+23=14 k=1 3  2k = 20+21+22+23=15 k=0 4  2k = 22+23+24=28 k=2

Theory of Information Lecture 1 Permutations Theory of Information Lecture 1 A permutation of set S has two meanings: A bijective function from S to S, or An ordered arrangement of S Example: Let S={a,b,c,d} A functional permutation of S: f(a)=c, f(b)=b, f(c)=d, f(d)=a An arrangemental permutation of S: c,b,d,a, or just cbda

Theory of Information Lecture 1 Permutations Theory of Information Lecture 1 How many permutations do the following sets have? {a} {a,b} {a,b,c} How many permutations does {1,2,3,4,5} have? possibilities for the 1st element, possibilities for the 2nd element, possibilities for the 3rd element, possibilities for the 4th element, possibility for the 5th element Generally, an n-element set has permutations

Theory of Information Lecture 1 Permutations Theory of Information Lecture 1 A permutation of size k of S = = a permutation of a k-element subset of S How many permutations of size 3 does {1,2,3,4,5,6,7} have? possibilities for the 1st element, possibilities for the 2nd element, possibilities for the 3rd element, Generally, an n-element set has permutations of size k

Binomial Coefficients Theory of Information Lecture 1 Let 0  k  n. The binomial coefficient, read as “n choose k”, is defined by: n! = -------- k!(n-k)! ( ) n k THEOREM 0.1.1 A set S of size n has precisely subsets of size k. I.e. is the number of ways of choosing k elements from n elements. ( ) n k ( ) n k Why? ( ) ( ) Fact: = Why? n k n n-k

Theory of Information Lecture 1 Homework Theory of Information Lecture 1 1.1. What are the three reasons for encoding data? What are the names of the corresponding three disciplines/theories? 1.2. Write all of the subsets of the set {a,b,c}. 1.3. True or false: a) b{a,b,c} b) b {a,b,c} c) {a,c} {a,b,c} d) {a}   e) {b,a} {a,b} 1.4. a) {a,b,c}{b,d}= b) {a,b,c}{b,d}= c) Are {a,b,c} and {b,d} disjoint? d) 4  (3k+1) = k=2

Theory of Information Lecture 1 Homework Theory of Information Lecture 1 1.5. Write all the permutations of {x,y,z, t}. 1.6. How many permutations does the set {0,1,…,9} have? 1.7. Write all permutations of size 2 of the set {a,b,c,d}. 1.8. How many permutations of size 6 does the set {0,1,…,9} have? 1.9. Imagine a language that uses the 26 English characters, and where no word can contain the same character more than once. At most how many 4-character words could such a language have? 1.10. By definition, 1.11. Your class has 20 students. The teacher needs to choose 5 of them for a special assignment. How many possibilities does the teacher have? ( ) = n k