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

Post on 11-Jan-2016

46 views 0 download

description

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

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

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

NN..VV. . BilousBilous

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

Discrete mathematicsDiscrete mathematics..

Jegalkin AlgebraJegalkin Algebra..

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.

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.

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

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 :

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:

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

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

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

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.

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.

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

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 )(),,(

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

15

Linear Boolean functions.Linear Boolean functions.

1111

1111

11111

)1()1)(1()(

)()()(),,(

yzxzxyzzyxxyyx

xyzyzxzxyzzyxxy

yxxyzyzxzxyzz

yxxyzyxxyzyx

zyxzyxzyxzyxf

Continuation of example.

Function is nonlinear.

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.

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,

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

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