15-251 Great Theoretical Ideas in Computer Science.

Slides:



Advertisements
Similar presentations
Rotating a Square in Space
Advertisements

1 Lect. 12: Number Theory. Contents Prime and Relative Prime Numbers Modular Arithmetic Fermat’s and Euler’s Theorem Extended Euclid’s Algorithm.
Chapter 4 Finite Fields. Introduction of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key concern operations on “numbers”
Cryptography and Network Security Chapter 4 Fourth Edition by William Stallings.
Chapter 4 – Finite Fields. Introduction will now introduce finite fields of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key.
Basic properties of the integers
1.  We have studied groups, which is an algebraic structure equipped with one binary operation. Now we shall study rings which is an algebraic structure.
Algebraic Structures: Group Theory II
1.  Detailed Study of groups is a fundamental concept in the study of abstract algebra. To define the notion of groups,we require the concept of binary.
Complexity1 Pratt’s Theorem Proved. Complexity2 Introduction So far, we’ve reduced proving PRIMES  NP to proving a number theory claim. This is our next.
CSE-221 Digital Logic Design (DLD)
Introduction Polynomials
Congruence Classes Z n = {[0] n, [1] n, [2] n, …, [n - 1] n } = the set of congruence classes modulo n.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 12 Number theory Mathematical induction Proof by induction Examples.
Finite fields.
MATH10001 Project 2 Groups part 1 ugstudies/units/ /level1/MATH10001/
1 CSE 20: Lecture 7 Boolean Algebra CK Cheng 4/21/2011.
WHOLE NUMBERS; INTEGERS Whole numbers: Z 0,+ = the natural numbers  {0}. Integers:
Great Theoretical Ideas in Computer Science.
Math 3121 Abstract Algebra I Lecture 3 Sections 2-4: Binary Operations, Definition of Group.
1 Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown Chapter 4 – Finite Fields.
Information Security and Management 4. Finite Fields 8
Finite Groups & Subgroups. Order of a group Definition: The number of elements of a group (finite or infinite) is called its order. Notation: We will.
By: Hector L Contreras SSGT / USMC
Numbers, Operations, and Quantitative Reasoning.
Great Theoretical Ideas in Computer Science.
Groups Definition A group  G,  is a set G, closed under a binary operation , such that the following axioms are satisfied: 1)Associativity of  :
Monoids, Groups, Rings, Fields
Basic Number Theory Divisibility Let a,b be integers with a≠0. if there exists an integer k such that b=ka, we say a divides b which is denoted by a|b.
Great Theoretical Ideas in Computer Science.
Great Theoretical Ideas in Computer Science for Some.
Rational Numbers and Fields
Math 344 Winter 07 Group Theory Part 1: Basic definitions and Theorems.
Cryptography and Network Security Chapter 4. Introduction  will now introduce finite fields  of increasing importance in cryptography AES, Elliptic.
Ryan Henry I 538 /B 609 : Introduction to Cryptography.
UNIT - 2.  A binary operation on a set combines two elements of the set to produce another element of the set. a*b  G,  a, b  G e.g. +, -, ,  are.
Chapter 6 Abstract algebra
Great Theoretical Ideas in Computer Science for Some.
Modular Arithmetic and the RSA Cryptosystem Great Theoretical Ideas In Computer Science John LaffertyCS Fall 2005 Lecture 9Sept 27, 2005Carnegie.
Great Theoretical Ideas In Computer Science Anupam GuptaCS Fall 2006 Lecture 15Oct 17, 2006Carnegie Mellon University Algebraic Structures: Groups,
CS Lecture 14 Powerful Tools     !. Build your toolbox of abstract structures and concepts. Know the capacities and limits of each tool.
Ref: Pfleeger96, Ch.31 Properties of Arithmetic Reference: Pfleeger, Charles P., Security in Computing, 2nd Edition, Prentice Hall, 1996.
Chapter 13 Mathematic Structures 13.1 Modular Arithmetic Definition 1 (modulo). Let a be an integer and m be a positive integer. We denoted by a mod m.
1 CMSC 250 Chapter 3, Number Theory. 2 CMSC 250 Introductory number theory l A good proof should have: –a statement of what is to be proven –"Proof:"
Great Theoretical Ideas in Computer Science.
Great Theoretical Ideas In Computer Science COMPSCI 102 Fall 2010 Lecture 16October 27, 2010Duke University Modular Arithmetic and the RSA Cryptosystem.
Great Theoretical Ideas in Computer Science.
Cryptography Lecture 14 Arpita Patra © Arpita Patra.
Divisibility and Modular Arithmetic
Multiplicative Group The multiplicative group of Z n includes every a, 0
Chapter 4 With Question/Answer Animations 1. Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their.
Great Theoretical Ideas in Computer Science.
Properties of Algebra. 7 + ( ) = ( ) + 9.
The Relation Induced by a Partition
Discrete Math II Howon Kim
Modular Arithmetic and the RSA Cryptosystem
CS480 Cryptography and Information Security
Topic 12: Number Theory Basics (2)
Great Theoretical Ideas in Computer Science
Advanced Algorithms Analysis and Design
Great Theoretical Ideas In Computer Science
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
Number Theory and Modular Arithmetic
Math 344 Winter 07 Group Theory Part 1: Basic definitions and Theorems
Cryptography Lecture 21.
Modular Arithmetic and the RSA Cryptosystem
Great Theoretical Ideas in Computer Science
Great Theoretical Ideas in Computer Science
I. Finite Field Algebra.
Algebraic Structures: Group Theory
Presentation transcript:

Great Theoretical Ideas in Computer Science

Algebraic Structures: Group Theory Lecture 17 (October 23, 2007)

Today we are going to study the abstract properties of binary operations

Rotating a Square in Space Imagine we can pick up the square, rotate it in any way we want, and then put it back on the white frame

In how many different ways can we put the square back on the frame? R 90 R 180 R 270 R0R0 F|F| F—F— FF We will now study these 8 motions, called symmetries of the square

Symmetries of the Square Y SQ = { R 0, R 90, R 180, R 270, F |, F —, F, F }

Composition Define the operation “  ” to mean “first do one symmetry, and then do the next” For example, R 90  R 180 Question: if a,b  Y SQ, does a  b  Y SQ ? Yes! means “first rotate 90˚ clockwise and then 180˚” = R 270 F |  R 90 means “first flip horizontally and then rotate 90˚” = F

R 90 R 180 R 270 R0R0 F|F| F—F— FF R0R0 R 90 R 180 R 270 F|F| F—F— F F R0R0 R 90 R 180 R 270 F|F| F—F— FF R 90 R 180 R 270 F|F| F—F— F F R 180 R 270 R0R0 R0R0 R 90 R0R0 R 180 FFF|F| F—F— F—F— F|F| FF FFF—F— F|F| FF—F— F FF|F| F F—F— FF|F| F|F| FF—F— R0R0 R0R0 R0R0 R0R0 R 90 R 270 R 180 R 270 R 90 R 270 R 90 R 180 R 90 R 270 R 180

Some Formalism If S is a set, S  S is: the set of all (ordered) pairs of elements of S S  S = { (a,b) | a  S and b  S } If S has n elements, how many elements does S  S have? n2n2 Formally,  is a function from Y SQ  Y SQ to Y SQ  : Y SQ  Y SQ → Y SQ As shorthand, we write  (a,b) as “a  b”

“  ” is called a binary operation on Y SQ Definition: A binary operation on a set S is a function  : S  S → S Example: The function f:    →  defined by is a binary operation on  f(x,y) = xy + y Binary Operations

Is the operation  on the set of symmetries of the square associative? A binary operation  on a set S is associative if: for all a,b,c  S, (a  b)  c = a  (b  c) Associativity Examples: Is f:    →  defined by f(x,y) = xy + y associative? (ab + b)c + c = a(bc + c) + (bc + c)?NO! YES!

A binary operation  on a set S is commutative if For all a,b  S, a  b = b  a Commutativity Is the operation  on the set of symmetries of the square commutative? NO! R 90  F | ≠ F |  R 90

R 0 is like a null motion Is this true:  a  Y SQ, a  R 0 = R 0  a = a? R 0 is called the identity of  on Y SQ In general, for any binary operation  on a set S, an element e  S such that for all a  S, e  a = a  e = a is called an identity of  on S Identities YES!

Inverses Definition: The inverse of an element a  Y SQ is an element b such that: a  b = b  a = R 0 Examples: R 90 inverse: R 270 R 180 inverse: R 180 F|F| inverse: F |

Every element in Y SQ has a unique inverse

R 90 R 180 R 270 R0R0 F|F| F—F— FF R0R0 R 90 R 180 R 270 F|F| F—F— F F R0R0 R 90 R 180 R 270 F|F| F—F— FF R 90 R 180 R 270 F|F| F—F— F F R 180 R 270 R0R0 R0R0 R 90 R0R0 R 180 FFF|F| F—F— F—F— F|F| FF FFF—F— F|F| FF—F— F FF|F| F F—F— FF|F| F|F| FF—F— R0R0 R0R0 R0R0 R0R0 R 90 R 270 R 180 R 270 R 90 R 270 R 90 R 180 R 90 R 270 R 180

3. (Inverses) For every a  S there is b  S such that: Groups A group G is a pair (S,  ), where S is a set and  is a binary operation on S such that: 1.  is associative 2. (Identity) There exists an element e  S such that: e  a = a  e = a, for all a  S a  b = b  a = e If  is commutative, then G is called a commutative group

Examples Is ( ,+) a group? Is + associative on  ? YES! Is there an identity?YES: 0 Does every element have an inverse?NO! ( ,+) is NOT a group

Examples Is (Z,+) a group? Is + associative on Z? YES! Is there an identity?YES: 0 Does every element have an inverse?YES! (Z,+) is a group

Examples Is (Y SQ,  ) a group? Is  associative on Y SQ ? YES! Is there an identity?YES: R 0 Does every element have an inverse?YES! (Y SQ,  ) is a group

Examples Is (Z n,+) a group? Is + associative on Z n ? YES! Is there an identity?YES: 0 Does every element have an inverse?YES! (Z n, +) is a group (Z n is the set of integers modulo n)

Theorem: A group has at most one identity element Proof: Suppose e and f are both identities of G=(S,  ) Then f = e  f = e Identity Is Unique

Theorem: Every element in a group has a unique inverse Proof: Inverses Are Unique Suppose b and c are both inverses of a Then b = b  e = b  (a  c) = (b  a)  c = c

A group G=(S,  ) is finite if S is a finite set Define |G| = |S| to be the order of the group (i.e. the number of elements in the group) What is the group with the least number of elements? How many groups of order 2 are there? G = ({e},  ) where e  e = e e f ef e f f e

Generators A set T  S is said to generate the group G = (S,  ) if every element of S can be expressed as a finite product of elements in T Question: Does {R 90 } generate Y SQ ? Question: Does {S |, R 90 } generate Y SQ ? An element g  S is called a generator of G=(S,  ) if {g} generates G Does Y SQ have a generator? NO! YES! NO!

Generators For Z n Any a  Z n such that GCD(a,n) = 1 generates Z n Claim: If GCD(a,n) =1, then the numbers a, 2a, …, (n-1)a, na are all distinct modulo n Proof (by contradiction): Suppose xa = ya (mod n) for x,y  {1,…,n} and x ≠ y Then n | a(x-y) Since GCD(a,n) = 1, then n | (x-y), which cannot happen

If G = (S,  ), we use a n denote (a  a  …  a) n times Definition: The order of an element a of G is the smallest positive integer n such that a n = e The order of an element can be infinite! Example: The order of 1 in the group (Z,+) is infinite What is the order of F | in Y SQ ?2 What is the order of R 90 in Y SQ ?4

Theorem: Let x be an element of G. The order of x divides the order of G Orders Corollary: If p is prime, a p-1 = 1 (mod p) (This is called Fermat’s Little Theorem) {1,…,p-1} is a group under multiplication modulo p

We can define more than one operation on a set For example, in Z n we can do addition and multiplication modulo n A ring is a set together with two operations Lord Of The Rings

Definition: A ring R is a set together with two binary operations + and x, satisfying the following properties: 1. (R,+) is a commutative group 2. x is associative 3. The distributive laws hold in R: (a + b) x c = (a x c) + (b x c) a x (b + c) = (a x b) + (a x c)

Definition: A field F is a set together with two binary operations + and x, satisfying the following properties: 1. (F,+) is a commutative group 2. (F-{0},x) is a commutative group 3. The distributive law holds in F: (a + b) x c = (a x c) + (b x c) Fields

Why should I care about any of this? Groups, Rings and Fields are examples of the principle of abstraction: the particulars of the objects are abstracted into a few simple properties All the results carry over to any group In The End…

Symmetries of the Square Compositions Groups Binary Operation Identity and Inverses Basic Facts: Inverses Are Unique Generators Rings and Fields Definition Here’s What You Need to Know…