SlideShare a Scribd company logo
1 of 64
Great Theoretical Ideas In Computer Science
Anupam Gupta CS 15-251 Fall 2006
Lecture 15 Oct 17, 2006 Carnegie Mellon University
Algebraic Structures:
Groups, Rings, and Fields
The RSA Cryptosystem
Rivest, Shamir, and Adelman (1978)
RSA is one of the most used
cryptographic protocols on the net. Your
browser uses it to establish a secure
session with a site.
Zn = {0, 1, 2, …, n-1}
Zn
* = {x 2 Zn | GCD(x,n) =1}
Quick raising to power.
<Zn, +n>
1. Closed
2. Associative
3. 0 is identity
4. Additive Inverses
Fast + and -
5. Cancellation
6. Commutative
<Zn
*, *n>
1. Closed
2. Associative
3. 1 is identity
4. Multiplicative Inverses
Fast * and /
5. Cancellation
6. Commutative
Fundamental lemma of powers.
Suppose x2 Zn
*, and a,b,n are naturals.
If a ´(n) b Then xa ´n xb
Equivalently,
xa ´n xa mod (n)
Euler Phi Function
(n) = size of Zn
*
p prime ) Zp
*= {1,2,3,…,p-1}
) (p) = p-1
(pq) = (p-1)(q-1)
if p,q distinct primes
The RSA Cryptosystem
Rivest, Shamir, and Adelman (1978)
RSA is one of the most used
cryptographic protocols on the net. Your
browser uses it to establish a secure
session with a site.
Pick secret, random large primes: p,q
“Publish”: n = p*q
(n) = (p) (q) = (p-1)*(q-1)
Pick random e  Z*
(n)
“Publish”: e
Compute d = inverse of e in Z*
(n)
Hence, e*d = 1 [ mod (n) ]
“Private Key”: d
n,e is my
public key.
Use it to
send me a
message.
p,q random primes, e random  Z*
(n)
n = p*q
e*d = 1 [ mod (n) ]
n,
e
p,q prime, e random  Z*
(n)
n = p*q
e*d = 1 [ mod (n) ]
messag
e m
me [mod n]
(me)d ´n m
An even simpler system
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?
R90 R180 R270 R0
F| F— F F
R90 R180 R270 R0
F| F— F F
We will now study these 8 motions,
called symmetries of the square
Symmetries of the Square
YSQ = { R0, R90, R180, R270, F|, F—, F , F }
Composition
Define the operation “” to mean “first do
one symmetry, and then do the next”
For example,
R90  R180
Question: if a,b  YSQ, does a  b  YSQ? Yes!
means “first rotate 90˚
clockwise and then 180˚”
= R270
F|  R90 means “first flip horizontally
and then rotate 90˚”
= F
R90 R180 R270
R0 F| F— F F
R0
R90
R180
R270
F|
F—
F
F
R0 R90 R180 R270 F| F— F F
R90
R180
R270
F|
F—
F
F
R180 R270 R0
R270 R0 R90
R0 R90 R180
F F F| F—
F— F| F F
F F F— F|
F F— F
F F| F
F— F F|
F| F F—
R0
R0
R0
R0
R180 R90 R270
R180 R270 R90
R270 R90 R180
R90 R270 R180
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? n2
Formally,  is a function from YSQ  YSQ to YSQ
 : YSQ  YSQ → YSQ
As shorthand, we write (a,b) as “a  b”
“” is called a binary operation on YSQ
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!
R90  F| ≠ F|  R90
R0 is like a null motion
Is this true: a  YSQ, a  R0 = R0  a = a?
R0 is called the identity of  on YSQ
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  YSQ
is an element b such that:
a  b = b  a = R0
Examples:
R90 inverse: R270
R180 inverse: R180
F| inverse: F|
Every element in YSQ
has a unique inverse
R90 R180 R270
R0 F| F— F F
R0
R90
R180
R270
F|
F—
F
F
R0 R90 R180 R270 F| F— F F
R90
R180
R270
F|
F—
F
F
R180 R270 R0
R270 R0 R90
R0 R90 R180
F F F| F—
F— F| F F
F F F— F|
F F— F
F F| F
F— F F|
F| F F—
R0
R0
R0
R0
R180 R90 R270
R180 R270 R90
R270 R90 R180
R90 R270 R180
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 (YSQ, ) a group?
Is  associative on YSQ? YES!
Is there an identity? YES: R0
Does every element have an inverse? YES!
(YSQ, ) is a group
Examples
Is (Zn,+) a group?
Is + associative on Zn? YES!
Is there an identity? YES: 0
Does every element have an inverse? YES!
(Zn, +) is a group
Examples
Is (Zn
*, *) a group?
Is * associative on Zn
*? YES!
Is there an identity? YES: 1
Does every element have an inverse? YES!
(Zn
*, *) is a group
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
e f
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 {R90} generate YSQ?
Question: Does {S|, R90} generate YSQ?
A single element g  S is called a generator
of G=(S,) if {g} generates G
Does YSQ have a generator?
NO!
YES!
NO!
Generators For (Zn,+)
Any a  Zn such that GCD(a,n) = 1 generates Zn
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
There are exactly 8 distinct
multiples of 3 modulo 8.
7
5 3
1
0
6 2
4
hit all numbers  3 is a generator for Z8
There are exactly 2 distinct
multiples of 4 modulo 8
7
5 3
1
0
6 2
4
4 does not generate Z8
There are exactly
LCM(n,c)/c = n/GCD(c,n)
distinct multiples of c modulo n
and hence
elements c with GCD(c,n) = 1
generate Zn
If G = (S,), we use an denote (a  a  …  a)
n times
Definition: The order of an element a of G is
the smallest positive integer n such that an = e
Order of an element
Lemma: a is a generator of G if order(a) = |G|
If G = (S,), we use an denote (a  a  …  a)
n times
Definition: The order of an element a of G is
the smallest positive integer n such that an = 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 YSQ? 2
What is the order of R90 in YSQ? 4
Orders
What if G is a finite group:
is the order of any element of G finite?
Yes: consider a, a2, a3, a4, a5, …
Since G is finite, at some point aj = ak for some j < k.
Hence ak-j = identity.
There are exactly
LCM(n,c)/c = n/GCD(c,n)
distinct multiples of c modulo n
and hence
order(Zn,+)(c) = n/GCD(c,n)
What about (Z_n^*, *) ?
What is order of the group Zn
*?
|Zn
*| = φ(n)
Does Zn
* have generators?
What are the orders of elements in Zn
*?
Z7
* = {1,2,3,4,5,6}
20 = 1; 21 = 2; 22 = 4; 23 = 1
30=1; 31 = 3; 32 = 2; 33 = 6; 34 =4;
35 = 5; 36 = 1
2 generates {1, 2, 4} Order 3
3 generates {1,2,3,4,5,6} Order 6
3 is a generator, but 2 is not.
Theorem (Non-trivial)
Thm: There are φ(n-1) generators of the group (Zn
*, *)
E.g.,
for Z7
*, φ(7-1) = φ(2*3) = 2.
Generators: 3,5
You can check that:
Z7
* = {1, 2, 3, 4, 5, 6}
Orders: 1, 3, 6, 3, 6, 2
Theorem:
Let x be an element of G.
The order of x divides the order of G.
Orders
proof coming soon…
Subgroups
Given a group G = (S, ), a subset S’  S forms
a subgroup if H = (S’, ) satisfies the group
properties.
That is,
S’ is closed under the group operation 
The identity element of G is also in S'.
The inverse of every element in S’ is also in S’.
Examples
Yrot = { R0, R90, R180, R270 }
is a subgroup of
Quick check:
Closure?
Identity?
Inverses?
YSQ = { R0, R90, R180, R270, F|, F—, F , F }
Examples
Z8,even = {0, 2, 4, 6}
with the + operation is a subgroup of
Z8 = {0,1,2,3,4,5,6,7}
Quick check:
Closure?
Identity?
Inverses?
Lagrange’s Theorem
Theorem: if H is a subgroup of G, then
|H| divides |G|.
Fact: The set generated by any element x  G is a
subgroup of G.
Corollary: the order of any element x  G divides |G|.
Proof of Lagrange’s Theorem
We can define more than one operation on a set
For example, in Zn we can do addition and
multiplication modulo n
A ring is a set together with two operations
(usually called + and *)
Lord Of The Rings
Definition:
A ring R is a set together with two binary
operations + and *, satisfying the following
properties:
1. (R,+) is a commutative group
2. * is associative
3. The distributive laws hold in R:
(a + b) * c = (a * c) + (b * c)
a * (b + c) = (a * b) + (a * c)
Examples
Do the integers  form a ring?
(, +) is a commutative group.
* is associative
+ distributes over *…
Definition:
A field F is a set together with two binary
operations + and *, satisfying the following
properties:
1. (F,+) is a commutative group
2. (F-{0},*) is a commutative group
3. The distributive law holds in F:
(a + b) * c = (a * c) + (b * c)
Fields
Examples
Do the integers  form a field?
(, +) is a commutative group.
but ({0}, *) do not form a group!
there are no multiplicative inverses…
Examples
Zp (for prime p) is a field.
(Zp, +) is a commutative group.
(Zp
* = Zp{0}, *) is a commutative group.
The distributive law holds.
Examples
The real numbers  form a field.
(, +) is a commutative group.
({0}, *) is a commutative group.
The distributive law holds.
CRYPTOGRAPHY based on the
presumed computational difficulty of a
number theoretic problem.
Let p be prime. g be a generator for (Zp
*, *)
DHp.g(x) = gx mod p is fast to compute.
DISCRETE-LOGp,g(r) = x means that gx =r mod p.
No one knows a fast algorithm given a random r to
compute x.
Diffie and Hellman [1976]
“New Directions In Cryptography.”
Let p be prime. g be a generator mod p.
Alice: Picks random x 2 Zp-1
Publishes gx mod p
Bob: Picks random y 2 Zp-1
Publishes gy mod p
Both parties can compute (mod p)
(gx)y = (gy)x = gxy mod p-1
Eve sees both
published strings.
Can she figure out
gxy mod p?
Diffie Hellman has an *amazing* feature.
Two people who have never met and have no prior
shared secrets can use the system.
Without this property, commerce on the net would
be impossible.
Typical use: Agree on a random string r.
Use r as your secret-key in a more conventional
private-key crypto system
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…
Ideas central to crypto and other areas!
Study Bee
Symmetries of the Square
Compositions
Groups
Binary Operation
Identity and Inverses
Basic Facts: Inverses Are Unique
Generators
Rings and Fields
Definition

More Related Content

What's hot

What's hot (20)

Chapter 4 Cyclic Groups
Chapter 4 Cyclic GroupsChapter 4 Cyclic Groups
Chapter 4 Cyclic Groups
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Graph theory
Graph theory Graph theory
Graph theory
 
Sets in discrete mathematics
Sets in discrete mathematicsSets in discrete mathematics
Sets in discrete mathematics
 
Functions
FunctionsFunctions
Functions
 
Ppt on real numbers
Ppt on real numbersPpt on real numbers
Ppt on real numbers
 
Graph Theory: Trees
Graph Theory: TreesGraph Theory: Trees
Graph Theory: Trees
 
Graph theory
Graph theoryGraph theory
Graph theory
 
Properties of addition and multiplication
Properties of addition and multiplicationProperties of addition and multiplication
Properties of addition and multiplication
 
Group Theory
Group TheoryGroup Theory
Group Theory
 
principal roots.pptx
principal roots.pptxprincipal roots.pptx
principal roots.pptx
 
Graceful labelings
Graceful labelingsGraceful labelings
Graceful labelings
 
Domain and range_ppt (1)
Domain and range_ppt (1)Domain and range_ppt (1)
Domain and range_ppt (1)
 
Unary and binary set operations
Unary and binary set operationsUnary and binary set operations
Unary and binary set operations
 
Weighted graphs
Weighted graphsWeighted graphs
Weighted graphs
 
Introduction to graph theory (All chapter)
Introduction to graph theory (All chapter)Introduction to graph theory (All chapter)
Introduction to graph theory (All chapter)
 
Graph Theory Introduction
Graph Theory IntroductionGraph Theory Introduction
Graph Theory Introduction
 
Sets and venn diagrams
Sets and venn diagramsSets and venn diagrams
Sets and venn diagrams
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
 

Similar to Group Ring.ppt

CRYPTOGRAPHY AND NUMBER THEORY, he ha huli
CRYPTOGRAPHY AND NUMBER THEORY, he ha huliCRYPTOGRAPHY AND NUMBER THEORY, he ha huli
CRYPTOGRAPHY AND NUMBER THEORY, he ha huliharshmacduacin
 
Maths chapter wise Important questions
Maths chapter wise Important questionsMaths chapter wise Important questions
Maths chapter wise Important questionsSrikanth KS
 
02-Basic Structures .ppt
02-Basic Structures .ppt02-Basic Structures .ppt
02-Basic Structures .pptAcct4
 
Solovay Kitaev theorem
Solovay Kitaev theoremSolovay Kitaev theorem
Solovay Kitaev theoremJamesMa54
 
Relations & functions
Relations & functionsRelations & functions
Relations & functionsindu thakur
 
Nodal Domain Theorem for the p-Laplacian on Graphs and the Related Multiway C...
Nodal Domain Theorem for the p-Laplacian on Graphs and the Related Multiway C...Nodal Domain Theorem for the p-Laplacian on Graphs and the Related Multiway C...
Nodal Domain Theorem for the p-Laplacian on Graphs and the Related Multiway C...Francesco Tudisco
 
Group theory notes
Group theory notesGroup theory notes
Group theory notesmkumaresan
 
Clase3 Notacion
Clase3 NotacionClase3 Notacion
Clase3 Notacionluzenith_g
 
Leaner algebra presentation (ring)
Leaner algebra presentation (ring)Leaner algebra presentation (ring)
Leaner algebra presentation (ring)Muhammad Umar Farooq
 

Similar to Group Ring.ppt (20)

lecture16.ppt
lecture16.pptlecture16.ppt
lecture16.ppt
 
Number theory lecture (part 1)
Number theory lecture (part 1)Number theory lecture (part 1)
Number theory lecture (part 1)
 
NCM LECTURE NOTES ON LATIN SQUARES(27) (1) (1)
NCM LECTURE NOTES ON LATIN SQUARES(27) (1) (1)NCM LECTURE NOTES ON LATIN SQUARES(27) (1) (1)
NCM LECTURE NOTES ON LATIN SQUARES(27) (1) (1)
 
NCM LECTURE NOTES ON LATIN SQUARES(27)
NCM LECTURE NOTES ON LATIN SQUARES(27)NCM LECTURE NOTES ON LATIN SQUARES(27)
NCM LECTURE NOTES ON LATIN SQUARES(27)
 
holbert-supermfld
holbert-supermfldholbert-supermfld
holbert-supermfld
 
CRYPTOGRAPHY AND NUMBER THEORY, he ha huli
CRYPTOGRAPHY AND NUMBER THEORY, he ha huliCRYPTOGRAPHY AND NUMBER THEORY, he ha huli
CRYPTOGRAPHY AND NUMBER THEORY, he ha huli
 
Maths chapter wise Important questions
Maths chapter wise Important questionsMaths chapter wise Important questions
Maths chapter wise Important questions
 
02-Basic Structures .ppt
02-Basic Structures .ppt02-Basic Structures .ppt
02-Basic Structures .ppt
 
Solovay Kitaev theorem
Solovay Kitaev theoremSolovay Kitaev theorem
Solovay Kitaev theorem
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
Relations & functions
Relations & functionsRelations & functions
Relations & functions
 
Rcg
RcgRcg
Rcg
 
Nodal Domain Theorem for the p-Laplacian on Graphs and the Related Multiway C...
Nodal Domain Theorem for the p-Laplacian on Graphs and the Related Multiway C...Nodal Domain Theorem for the p-Laplacian on Graphs and the Related Multiway C...
Nodal Domain Theorem for the p-Laplacian on Graphs and the Related Multiway C...
 
file_5.pptx
file_5.pptxfile_5.pptx
file_5.pptx
 
Disjoint sets
Disjoint setsDisjoint sets
Disjoint sets
 
Group theory notes
Group theory notesGroup theory notes
Group theory notes
 
Ip3614981501
Ip3614981501Ip3614981501
Ip3614981501
 
Clase3 Notacion
Clase3 NotacionClase3 Notacion
Clase3 Notacion
 
Sets, functions and groups
Sets, functions and groupsSets, functions and groups
Sets, functions and groups
 
Leaner algebra presentation (ring)
Leaner algebra presentation (ring)Leaner algebra presentation (ring)
Leaner algebra presentation (ring)
 

More from SauravDash10

Permutation and Combination excellant.ppt
Permutation and Combination excellant.pptPermutation and Combination excellant.ppt
Permutation and Combination excellant.pptSauravDash10
 
Transportation.pptx
Transportation.pptxTransportation.pptx
Transportation.pptxSauravDash10
 
Data Migration.pptx
Data Migration.pptxData Migration.pptx
Data Migration.pptxSauravDash10
 
01_Module_1-ProbabilityTheory.pptx
01_Module_1-ProbabilityTheory.pptx01_Module_1-ProbabilityTheory.pptx
01_Module_1-ProbabilityTheory.pptxSauravDash10
 
Bivariate Distribution.pptx
Bivariate Distribution.pptxBivariate Distribution.pptx
Bivariate Distribution.pptxSauravDash10
 
Determinants and matrices.ppt
Determinants and matrices.pptDeterminants and matrices.ppt
Determinants and matrices.pptSauravDash10
 
CP Power Point.ppt
CP Power Point.pptCP Power Point.ppt
CP Power Point.pptSauravDash10
 
PermutationsAndCombinations.ppt
PermutationsAndCombinations.pptPermutationsAndCombinations.ppt
PermutationsAndCombinations.pptSauravDash10
 

More from SauravDash10 (15)

Permutation and Combination excellant.ppt
Permutation and Combination excellant.pptPermutation and Combination excellant.ppt
Permutation and Combination excellant.ppt
 
Time series.ppt
Time series.pptTime series.ppt
Time series.ppt
 
Game Theory.pptx
Game Theory.pptxGame Theory.pptx
Game Theory.pptx
 
ANOVA.pptx
ANOVA.pptxANOVA.pptx
ANOVA.pptx
 
Transportation.pptx
Transportation.pptxTransportation.pptx
Transportation.pptx
 
Data Migration.pptx
Data Migration.pptxData Migration.pptx
Data Migration.pptx
 
Hypothesis.ppt
Hypothesis.pptHypothesis.ppt
Hypothesis.ppt
 
01_Module_1-ProbabilityTheory.pptx
01_Module_1-ProbabilityTheory.pptx01_Module_1-ProbabilityTheory.pptx
01_Module_1-ProbabilityTheory.pptx
 
Bivariate Distribution.pptx
Bivariate Distribution.pptxBivariate Distribution.pptx
Bivariate Distribution.pptx
 
Determinants and matrices.ppt
Determinants and matrices.pptDeterminants and matrices.ppt
Determinants and matrices.ppt
 
graphs.ppt
graphs.pptgraphs.ppt
graphs.ppt
 
Set Theory.pdf
Set Theory.pdfSet Theory.pdf
Set Theory.pdf
 
CP Power Point.ppt
CP Power Point.pptCP Power Point.ppt
CP Power Point.ppt
 
PermutationsAndCombinations.ppt
PermutationsAndCombinations.pptPermutationsAndCombinations.ppt
PermutationsAndCombinations.ppt
 
PPTs.pptx
PPTs.pptxPPTs.pptx
PPTs.pptx
 

Recently uploaded

Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptxRajatChauhan518211
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡anilsa9823
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisDiwakar Mishra
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTSérgio Sacani
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfSumit Kumar yadav
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000Sapana Sha
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )aarthirajkumar25
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.Nitya salvi
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPirithiRaju
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfmuntazimhurra
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Lokesh Kothari
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPirithiRaju
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...Sérgio Sacani
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​kaibalyasahoo82800
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfSumit Kumar yadav
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)PraveenaKalaiselvan1
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...ssifa0344
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptxanandsmhk
 

Recently uploaded (20)

Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdf
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
 

Group Ring.ppt

  • 1. Great Theoretical Ideas In Computer Science Anupam Gupta CS 15-251 Fall 2006 Lecture 15 Oct 17, 2006 Carnegie Mellon University Algebraic Structures: Groups, Rings, and Fields
  • 2. The RSA Cryptosystem Rivest, Shamir, and Adelman (1978) RSA is one of the most used cryptographic protocols on the net. Your browser uses it to establish a secure session with a site.
  • 3. Zn = {0, 1, 2, …, n-1} Zn * = {x 2 Zn | GCD(x,n) =1} Quick raising to power. <Zn, +n> 1. Closed 2. Associative 3. 0 is identity 4. Additive Inverses Fast + and - 5. Cancellation 6. Commutative <Zn *, *n> 1. Closed 2. Associative 3. 1 is identity 4. Multiplicative Inverses Fast * and / 5. Cancellation 6. Commutative
  • 4. Fundamental lemma of powers. Suppose x2 Zn *, and a,b,n are naturals. If a ´(n) b Then xa ´n xb Equivalently, xa ´n xa mod (n)
  • 5. Euler Phi Function (n) = size of Zn * p prime ) Zp *= {1,2,3,…,p-1} ) (p) = p-1 (pq) = (p-1)(q-1) if p,q distinct primes
  • 6. The RSA Cryptosystem Rivest, Shamir, and Adelman (1978) RSA is one of the most used cryptographic protocols on the net. Your browser uses it to establish a secure session with a site.
  • 7. Pick secret, random large primes: p,q “Publish”: n = p*q (n) = (p) (q) = (p-1)*(q-1) Pick random e  Z* (n) “Publish”: e Compute d = inverse of e in Z* (n) Hence, e*d = 1 [ mod (n) ] “Private Key”: d
  • 8. n,e is my public key. Use it to send me a message. p,q random primes, e random  Z* (n) n = p*q e*d = 1 [ mod (n) ]
  • 9. n, e p,q prime, e random  Z* (n) n = p*q e*d = 1 [ mod (n) ] messag e m me [mod n] (me)d ´n m
  • 10. An even simpler system
  • 11. Today we are going to study the abstract properties of binary operations
  • 12. 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
  • 13. In how many different ways can we put the square back on the frame? R90 R180 R270 R0 F| F— F F
  • 14. R90 R180 R270 R0 F| F— F F We will now study these 8 motions, called symmetries of the square
  • 15. Symmetries of the Square YSQ = { R0, R90, R180, R270, F|, F—, F , F }
  • 16. Composition Define the operation “” to mean “first do one symmetry, and then do the next” For example, R90  R180 Question: if a,b  YSQ, does a  b  YSQ? Yes! means “first rotate 90˚ clockwise and then 180˚” = R270 F|  R90 means “first flip horizontally and then rotate 90˚” = F
  • 17. R90 R180 R270 R0 F| F— F F R0 R90 R180 R270 F| F— F F R0 R90 R180 R270 F| F— F F R90 R180 R270 F| F— F F R180 R270 R0 R270 R0 R90 R0 R90 R180 F F F| F— F— F| F F F F F— F| F F— F F F| F F— F F| F| F F— R0 R0 R0 R0 R180 R90 R270 R180 R270 R90 R270 R90 R180 R90 R270 R180
  • 18. 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? n2 Formally,  is a function from YSQ  YSQ to YSQ  : YSQ  YSQ → YSQ As shorthand, we write (a,b) as “a  b”
  • 19. “” is called a binary operation on YSQ 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
  • 20. 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!
  • 21. 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! R90  F| ≠ F|  R90
  • 22. R0 is like a null motion Is this true: a  YSQ, a  R0 = R0  a = a? R0 is called the identity of  on YSQ 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!
  • 23. Inverses Definition: The inverse of an element a  YSQ is an element b such that: a  b = b  a = R0 Examples: R90 inverse: R270 R180 inverse: R180 F| inverse: F|
  • 24. Every element in YSQ has a unique inverse
  • 25. R90 R180 R270 R0 F| F— F F R0 R90 R180 R270 F| F— F F R0 R90 R180 R270 F| F— F F R90 R180 R270 F| F— F F R180 R270 R0 R270 R0 R90 R0 R90 R180 F F F| F— F— F| F F F F F— F| F F— F F F| F F— F F| F| F F— R0 R0 R0 R0 R180 R90 R270 R180 R270 R90 R270 R90 R180 R90 R270 R180
  • 26. 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
  • 27. 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
  • 28. 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
  • 29. Examples Is (YSQ, ) a group? Is  associative on YSQ? YES! Is there an identity? YES: R0 Does every element have an inverse? YES! (YSQ, ) is a group
  • 30. Examples Is (Zn,+) a group? Is + associative on Zn? YES! Is there an identity? YES: 0 Does every element have an inverse? YES! (Zn, +) is a group
  • 31. Examples Is (Zn *, *) a group? Is * associative on Zn *? YES! Is there an identity? YES: 1 Does every element have an inverse? YES! (Zn *, *) is a group
  • 32. 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
  • 33. 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
  • 34. 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 e f e f f e
  • 35. 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 {R90} generate YSQ? Question: Does {S|, R90} generate YSQ? A single element g  S is called a generator of G=(S,) if {g} generates G Does YSQ have a generator? NO! YES! NO!
  • 36. Generators For (Zn,+) Any a  Zn such that GCD(a,n) = 1 generates Zn 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
  • 37. There are exactly 8 distinct multiples of 3 modulo 8. 7 5 3 1 0 6 2 4 hit all numbers  3 is a generator for Z8
  • 38. There are exactly 2 distinct multiples of 4 modulo 8 7 5 3 1 0 6 2 4 4 does not generate Z8
  • 39. There are exactly LCM(n,c)/c = n/GCD(c,n) distinct multiples of c modulo n and hence elements c with GCD(c,n) = 1 generate Zn
  • 40. If G = (S,), we use an denote (a  a  …  a) n times Definition: The order of an element a of G is the smallest positive integer n such that an = e Order of an element Lemma: a is a generator of G if order(a) = |G|
  • 41. If G = (S,), we use an denote (a  a  …  a) n times Definition: The order of an element a of G is the smallest positive integer n such that an = 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 YSQ? 2 What is the order of R90 in YSQ? 4
  • 42. Orders What if G is a finite group: is the order of any element of G finite? Yes: consider a, a2, a3, a4, a5, … Since G is finite, at some point aj = ak for some j < k. Hence ak-j = identity.
  • 43. There are exactly LCM(n,c)/c = n/GCD(c,n) distinct multiples of c modulo n and hence order(Zn,+)(c) = n/GCD(c,n)
  • 44. What about (Z_n^*, *) ? What is order of the group Zn *? |Zn *| = φ(n) Does Zn * have generators? What are the orders of elements in Zn *?
  • 45. Z7 * = {1,2,3,4,5,6} 20 = 1; 21 = 2; 22 = 4; 23 = 1 30=1; 31 = 3; 32 = 2; 33 = 6; 34 =4; 35 = 5; 36 = 1 2 generates {1, 2, 4} Order 3 3 generates {1,2,3,4,5,6} Order 6 3 is a generator, but 2 is not.
  • 46. Theorem (Non-trivial) Thm: There are φ(n-1) generators of the group (Zn *, *) E.g., for Z7 *, φ(7-1) = φ(2*3) = 2. Generators: 3,5 You can check that: Z7 * = {1, 2, 3, 4, 5, 6} Orders: 1, 3, 6, 3, 6, 2
  • 47. Theorem: Let x be an element of G. The order of x divides the order of G. Orders proof coming soon…
  • 48. Subgroups Given a group G = (S, ), a subset S’  S forms a subgroup if H = (S’, ) satisfies the group properties. That is, S’ is closed under the group operation  The identity element of G is also in S'. The inverse of every element in S’ is also in S’.
  • 49. Examples Yrot = { R0, R90, R180, R270 } is a subgroup of Quick check: Closure? Identity? Inverses? YSQ = { R0, R90, R180, R270, F|, F—, F , F }
  • 50. Examples Z8,even = {0, 2, 4, 6} with the + operation is a subgroup of Z8 = {0,1,2,3,4,5,6,7} Quick check: Closure? Identity? Inverses?
  • 51. Lagrange’s Theorem Theorem: if H is a subgroup of G, then |H| divides |G|. Fact: The set generated by any element x  G is a subgroup of G. Corollary: the order of any element x  G divides |G|.
  • 53. We can define more than one operation on a set For example, in Zn we can do addition and multiplication modulo n A ring is a set together with two operations (usually called + and *) Lord Of The Rings
  • 54. Definition: A ring R is a set together with two binary operations + and *, satisfying the following properties: 1. (R,+) is a commutative group 2. * is associative 3. The distributive laws hold in R: (a + b) * c = (a * c) + (b * c) a * (b + c) = (a * b) + (a * c)
  • 55. Examples Do the integers  form a ring? (, +) is a commutative group. * is associative + distributes over *…
  • 56. Definition: A field F is a set together with two binary operations + and *, satisfying the following properties: 1. (F,+) is a commutative group 2. (F-{0},*) is a commutative group 3. The distributive law holds in F: (a + b) * c = (a * c) + (b * c) Fields
  • 57. Examples Do the integers  form a field? (, +) is a commutative group. but ({0}, *) do not form a group! there are no multiplicative inverses…
  • 58. Examples Zp (for prime p) is a field. (Zp, +) is a commutative group. (Zp * = Zp{0}, *) is a commutative group. The distributive law holds.
  • 59. Examples The real numbers  form a field. (, +) is a commutative group. ({0}, *) is a commutative group. The distributive law holds.
  • 60. CRYPTOGRAPHY based on the presumed computational difficulty of a number theoretic problem. Let p be prime. g be a generator for (Zp *, *) DHp.g(x) = gx mod p is fast to compute. DISCRETE-LOGp,g(r) = x means that gx =r mod p. No one knows a fast algorithm given a random r to compute x.
  • 61. Diffie and Hellman [1976] “New Directions In Cryptography.” Let p be prime. g be a generator mod p. Alice: Picks random x 2 Zp-1 Publishes gx mod p Bob: Picks random y 2 Zp-1 Publishes gy mod p Both parties can compute (mod p) (gx)y = (gy)x = gxy mod p-1 Eve sees both published strings. Can she figure out gxy mod p?
  • 62. Diffie Hellman has an *amazing* feature. Two people who have never met and have no prior shared secrets can use the system. Without this property, commerce on the net would be impossible. Typical use: Agree on a random string r. Use r as your secret-key in a more conventional private-key crypto system
  • 63. 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… Ideas central to crypto and other areas!
  • 64. Study Bee Symmetries of the Square Compositions Groups Binary Operation Identity and Inverses Basic Facts: Inverses Are Unique Generators Rings and Fields Definition