Professional Documents
Culture Documents
Invariant Principle
Invariant Principle
INVARIANT PRINCIPLE
1
Click to edit Master title style
Defines ‘invariant’ as ‘never changing’,
and well that’s really all there is. Invariant in
mathematics, is a property held by a
mathematical object, which remains same even
after repetitive transformation of the object. If
for some objects that property is different, then
we can never reach from the original object to
the newer ones, by trying the same
transformations. This may sound tricky, but its
helpful and in some cases may even solve the
problem.
2 2
There are
Click to basically
edit Master two
titlebroad
style
4 4
Click to edit Master title style
5 5
Click to edit Master title style
The brute force logic says to start with
all the numbers and keep trying all the
possible combinations of selecting 2 numbers
out of 1000. Then do it again, and again and
if you ever reach 243 in the end, the answer
is ‘yes’ otherwise, ‘maybe’ as there are still
many ways left to solve this. Enter
invariance. (Note, try to find some property
which is never changing as we perform the
operation before going further)
6 6
Solution
Click to edit Master title style
7 7
Click to edit Master title style
Example 2:
8 8
Click to edit Master title style
9 9
Click to edit Master title style
1111
Click to edit Master title style
Example 3:
Set for life! Statement: Start with set {3, 4, 12}. In each
step, choose any two numbers say a, b (randomly) and
replace them with 0.6a — 0.8b and 0.8a + 0.6b. Is it possible
to reach {4, 6, 12}?
1212
Click to edit Master title style
1414