Class Lectures (Scanned)
Class Lectures (Scanned)
Page 2
Then: 1 >> A
2 >> C
1 >> C ...... Complete. So, for 3 disks, 2^3 - 1 = 7 Moves required
Page 3
Page 4
S
this is called BASIS
( hypothesis)
S
Page 9
Page 10
= 1 + n(n+1)/2
Page 11
Page 12
Page 13
Page 14
Page 15
Page 16
Page 17
of m m
k
that is, assume J(2 + x) = 2x+1 is true
for k = 0, 1, ..., (upto) m-1
m-1
So, J(2 + x) = 2x+1
m-1
J (2 + l /2) = 2(l/2) + 1 = l + 1
Page 18
Page 19
Page 20
m
J(n) = J (2 + l) = 2l+1
Q: Write and Solve the Generalized Josphus Recurrence by using Repertoire method.
gamma
2 f(1) + gamma
A(11) = A(2*5+1)
= 2*A(5) = 2 [ A(2*2+1) ]
= 2 [ 2 [A(2) ] ] = 2 [ 2 [ 2 [ A(1) ] ] ] = 2^3 as before
m
n=2 +l
Page 23
*This whole lengthy method is called
*** REPERTOIRE method***
We already know
A(n) = 2^m
m
where n = 2 + l
This is the Radix based property of the general Josephus recurrence ...
here, base = d
Question:
Find f(19) by
using the Radix based
property of the above recurrence.
Page 27
3
0 - 2
Page 28
3
0 - 2
Repertoire
Method:
*Place This Box Here*
Rn=1
so, R1=1
Rn=1
so, R2=1
Page 32
Rn=n
so, R0=0
Rn=n
so, R1=1
Rn=n
so, R2=2
Page 33
So, R0 = 0, R1 = 1, R2 = 4
Page 34
Thus:
S0 = a
Sn = Sn-1 + a + bn
so: alpha = a
beta = a
gamma = b
Page 35
for
a=1
b=2
So: S0 = 0
Sn = Sn-1 + 2n
Thus: alpha =0
Beta = 0
Gama = 2
Sn = ... = n (n+1)
Page 38
or, s0a0T0
Page 41
The
Summation
Factor
of THIS
recurrence
is
THIS
Page 42
Page 43
partitioning
Page 44
+1
k
Here, ak = k.2
put an+1, a0, ak+1
in Pb formula
Page 51
Page 52
Page 53
No Need!
Excluded
from syllabus!
Page 54
Page 55
Page 56
3 = 3
Page 57
3 =3
Rules: Page 58
m-1
m
So, 2 <= n <= 2 - 1
Page 61
example:
we know: 43 mod 10 = 3
how?
43 mod 10 = 43 - 10*4
= 43 - 10* 43/10
x mod y = x - y * x/y
Page 63
Page 64
55 mod 33
= 11 * (5 mod 3)
= 11 * 2
= 22
Page 65
example: ((((X mod 240) mod 60) mod 30) mod 10) mod 5
= X mod 5
*****
Excluded
Composite
From
Syllabus
*****
Or, you can Prove the next Proof : "Every integer
is either prime Or product of Primes" ==> which
Automatically Proves this proof
Page 75
Excluded
from
Syllabus
Equal or Greater
Page 78
Page 79
This Page: Excluded from Syllabus
Page 80
Page 81
6
Page 82
Write and Prove the Fundamental Theorem of Arithmetic: Any Integer n>1 Can Be Represented as a Unique Product
of Prime Numbers Only. This unique product is called the Unique Prime Facorization of the integer n.
*** FIVE Questions in Lec7-Number Theory (involving Prime Exponent Representation, Euclid Prime, Mersenne
Prime, Prove or Disprove that ... ==> They are MUST SEE short Questions (last page of "Lec7-Number Theory.pdf" )
Page 84
Page 85
Write and Prove the Fundamental Theorem of Arithmetic: Any Integer n>1 Can Be Represented as a Unique Product
of Prime Numbers Only. This unique product is called the Unique Prime Facorization of the integer n.
*** FIVE Questions in Lec7-Number Theory (involving Prime Exponent Representation, Euclid Prime, Mersenne
Prime, Prove or Disprove that ... ==> They are MUST SEE short Questions (last page of "Lec7-Number Theory.pdf" )
Page 86
Prime
Page 87
maximum
Page 88
Page 89
Page 90
So, you should read it (*selectively*)from "Lec9-Number Theory.pdf" ... especially the 3 Proofs
Page 91
Page 92
Page 93
Page 94
n
Pr = n! / (n-r)!
n
Cr = n! / { r! * (n-r)! }
Page 95
Page 96
Page 97
Page 98
Note:
r can be negative
But,
if k < 0, rCk becomes 0
!
Page 100
Page 101
n
where n=3
k=0
n=3
This is
Summation Formula
Page 107
m=2
n=4
m=2
Another n=4
form of So: n + 1 = 5
Summation m+1=3
formula
Thus: 5
3
*** Must Solve Maths using these formula from file: "Practise Question 03.docx" ****
Page 108
identity
identity
Page 110
Page 111
Always, n >= m
Page 112
Page 113
Find the sum of first n natural numbers (integers) by using the formula
from binomial coefficient
Page 114
Page 115
2 P(A) =
P{ (2,1), (2,2), (2,3),
(2,4), (2,5), (2,6) }
= 6/36 = 1/6
4 P{both even}even}
P (B)= P{both
=P{(2,2), (2,4), (2,6),
(4,2), (4,4), (4,6),
(6,2), (6,4), (6,6) }
= 9/36
= 1/4
E OR F =
E AND F =
or EF
E OR F =
(S)=
So, EF =
E AND F
= E intersect F
= {(4,2)}
F
Book
example
1.4 >>
P(F) = 6/10
P(E)= 1/10
EF = E AND F = E (intersect) F = {10} so, P(EF)=1/10
Page 121
EF = E (intersect) F
= {(b,b)}
Book
example
1.6 >>
Page 122
independent
P(EF) = P(E) * P(F|E) - OR - P(F)*P(E|F) when E,F are NOT independent / dependant
Page 123
= 7/12 * 6/11
= 42 / 132
Find the Probability that One Black Ball and One White Ball ....
What is the probability that no one ...
Page 124
1. What is the probability All THREE get their correct hats? => P(E1E2E3)
To understand,
VISUALIZE this scenario!!!
P(E2|E1)
= P(2nd person gets his hat | 1st person
already got his hat)
karon, er Ulta
chinta korata
difficult, P(H|W)
chinta korao jai na,
but opposite ta
P(W|H) super easy
Converted to think
to Easy One
Page 127
=
What is the
Probability that s
P(K|C) = Tough !
P(C|K) = EASY = 1.0
convert the tough one into easy
by Bayes formula !!!
= 1.0
What is the
Probability that
P(E | D) = P (positive | disease)
= 0.95
c
P(E| D ) = P (positive | No Disease)
= P (false positive) = 0.01
0.01
= 0.01
Page 129
N : Geometric
Random Variable
Page 131
at most
Page 133
+P(1)
= (i)
at most
= P(0) + P(1) +
P(2) + P(3)
=1-
= 1.5
Page 136
Page 137
Page 138
Page 139
Page 140
Page 141
Page 142
Page 143
Missing Page
after Page 75