ХНУРЭ,кафедра ПО ЭВМ, Тел . 7021-446, e-mail: [email protected]

19
ХНУРЭ,кафедра ПО ЭВМ, Тел. 7021-446, e-mail: [email protected] N N . . V V . . Bilous Bilous Факультет компьютерных наук Кафедра ПО ЭВМ, ХНУРЭ Discrete mathematics Discrete mathematics . . Jegalkin Algebra Jegalkin Algebra . .

Upload: chi

Post on 11-Jan-2016

45 views

Category:

Documents


0 download

DESCRIPTION

Discrete mathematics. Jegalkin Algebra. N . V . Bilous. Факультет компьютерных наук Кафедра ПО ЭВМ, ХНУРЭ. ХНУРЭ,кафедра ПО ЭВМ, Тел . 7021-446, e-mail: [email protected]. Jegalkin algebra. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

ХНУРЭ,кафедра ПО ЭВМ,Тел. 7021-446, e-mail: [email protected]

NN..VV. . BilousBilous

Факультет компьютерных наукКафедра ПО ЭВМ, ХНУРЭ

Discrete mathematicsDiscrete mathematics..

Jegalkin AlgebraJegalkin Algebra..

Page 2: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

2

Jegalkin algebra.Jegalkin algebra.

Jegalkin algebra is an algebra, that uses the conjunction (x y = x y), the eXclusive OR (x y) and the constant of unity 1 as an initial (or elementary) functions.

Page 3: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

3

Identities of Jegalkin algebra.Identities of Jegalkin algebra.

Properties of conjunction:

Associative law – х(yz) = (хy)z; Commutative law – хy=yх; Idempotence law – хх=х; Actions with the constants – x0=0, x1=x.

Page 4: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

4

Identities of Jegalkin algebra.Identities of Jegalkin algebra.

XOR operation properties ( addition by module 2): The commutative law:

xy=yx;

x y xy

0 0 0 0

0 1 1 1

1 0 1 1

1 1 0 0

Proof the commutative law :

yx

Page 5: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

5

Identities of Jegalkin algebra.Identities of Jegalkin algebra.

The associative law:

х(yz)= (хy)z

x y z yz x(yz) xy (xy)z0 0 0 0 0 0 00 0 1 1 1 0 10 1 0 1 1 1 10 1 1 0 0 1 01 0 0 0 1 1 11 0 1 1 0 1 01 1 0 1 0 0 01 1 1 0 1 0 1

Proof of the associative law :

Page 6: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

6

Identities of Jegalkin algebra.Identities of Jegalkin algebra.

Rules of the summand elimination: xx=0 x0=x

x xx x0

0 0 0

1 0 1

Proof of identity:

Page 7: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

7

Identities of Jegalkin algebra.Identities of Jegalkin algebra.

The distributive law ( accordingly ): x(yz)=xyxz

x y z yz x(yz) xy xz xyxz0 0 0 0 0 0 0 00 0 1 1 0 0 0 00 1 0 1 0 0 0 00 1 1 0 0 0 0 01 0 0 0 0 0 0 01 0 1 1 1 0 1 11 1 0 1 1 1 0 11 1 1 0 0 1 1 0

Proof of distributiveness accordingly

Page 8: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

8

Transition formulae from logic algebra to Jegalkin Transition formulae from logic algebra to Jegalkin algebra.algebra.

Introducing of the negation in Jegalkin algebra:

Prove this identity by the truth table:1xx

0 1

1 0

xx 1x

1

0

x

Page 9: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

9

Transition formulae from logic algebra to Jegalkin Transition formulae from logic algebra to Jegalkin algebra.algebra.

Introducing of disjunction in Jegalkin algebra:

Prove given formula analytically:

xyxyxyxyyx

yyxyxyxyx

111)1)(1(

)1)((

yxxyyx

Page 10: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

10

Jegalkin polynomial.Jegalkin polynomial.

Jegalkin polynomial is final addition by module 2 of two different elementary conjunctions above set of variables {x1, x2,…, xn}.

The quantity of variables including into elementary conjunction is called the range of elementary conjunction.

The quantity of two different elementary conjunctions in polynomial is called the length of polynomial.

Page 11: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

11

Jegalkin polynomial and the rule of its building.Jegalkin polynomial and the rule of its building.

For the building of Jegalkin polynomial for any function given by the formula of Jegalkin algebra it is needed to open all brackets in giving formula using the distributive law and do all possible simplifications with the help of the law for the constants, idempotence law and the rules of the summand elimination.

Page 12: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

12

Jegalkin polynomial and the rule of its building.Jegalkin polynomial and the rule of its building.

Example.

Build Jegalkin polynomials for implication () and equivalence (~) .

Solution.

11

)1()1()1(

xxyyxyxy

yxyxyxyxyx

11)1)(1(

~

yxyxxyxyyxxy

yxxyyxxyyxxyyxxyyx

Page 13: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

13

Linear Boolean functions.Linear Boolean functions.

A Boolean function is called linear if its Jegalkin polynomial does not contain conjunctions of variables.

Example.

Verify the function as for the linearity

zyxzyxf )(),,(

Page 14: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

14

Linear Boolean functions.Linear Boolean functions.

Solution.

Build Jegalkin polynomial of given function using the following identities:

, ху=xуху,

Transform the given result using the building rule of Jegalkin polynomial.

yxyx 1xx

Page 15: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

15

Linear Boolean functions.Linear Boolean functions.

1111

1111

11111

)1()1)(1()(

)()()(),,(

yzxzxyzzyxxyyx

xyzyzxzxyzzyxxy

yxxyzyzxzxyzz

yxxyzyxxyzyx

zyxzyxzyxzyxf

Continuation of example.

Function is nonlinear.

Page 16: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

16

Jegalkin polynomial andJegalkin polynomial and the rule of its building.the rule of its building.

Example.

Build Jegalkin polynomial for the implication function using the method of the indefinite coefficients.

Page 17: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

17

Jegalkin polynomial and the rule of its building.Jegalkin polynomial and the rule of its building.

Solution.

Write down polynomial for the given function in the form of sum by module 2 for all possible elementary conjunctions for x, y without the negation:

f13(x,y) = xy = a1xya2xa3ya4,

Page 18: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

18

Jegalkin polynomial and the rule of its building.Jegalkin polynomial and the rule of its building.

Continuation of example.

f13(0,0) = 00 = 1

1 = a100a20a30a4 = a4

f13(0,1) = 01 = 1

1 = a101a20a311 = a31,

from here follows that a3 = 0

f13(1,0) = 10 = 0

0 = a110a21a301 = a21,

from here follows that a2 = 1

Page 19: ХНУРЭ,кафедра ПО ЭВМ, Тел .  7021-446,  e-mail: belous@kture.Kharkov.ua

19

Jegalkin polynomial and the rule of its building.Jegalkin polynomial and the rule of its building.

Continuation of example.

f13(1,1) = 11 = 1

1 = a11111011 = a111= a1

Substitute given values of the coefficients in the polynomial:

xy=a1xya2xa3ya4=1xy1x0

y1 =xyx1