190 likes | 376 Views
Discrete mathematics. Jegalkin Algebra. N . V . Bilous. Факультет компьютерных наук Кафедра ПО ЭВМ, ХНУРЭ. ХНУРЭ,кафедра ПО ЭВМ, Тел . 7021-446, e-mail: belous@kture.Kharkov.ua. Jegalkin algebra.
E N D
Discrete mathematics. Jegalkin Algebra. N.V. Bilous Факультет компьютерных наук Кафедра ПО ЭВМ, ХНУРЭ ХНУРЭ,кафедра ПО ЭВМ, Тел. 7021-446, e-mail: belous@kture.Kharkov.ua
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.
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.
x y xy Identities of Jegalkin algebra. 0 0 0 0 0 1 1 1 1 0 1 1 1 1 0 0 XOR operation properties( addition by module 2): • The commutative law: xy=yx; Proof the commutative law : yx
x y z yz x(yz) xy (xy)z Identities of Jegalkin algebra. 0 0 0 0 0 0 0 0 0 1 1 1 0 1 0 1 0 1 1 1 1 0 1 1 0 0 1 0 1 0 0 0 1 1 1 1 0 1 1 0 1 0 1 1 0 1 0 0 0 1 1 1 0 1 0 1 • The associative law: х(yz)= (хy)z Proofof the associative law:
x xx x0 Identities of Jegalkin algebra. 0 0 0 1 0 1 Rules of the summand elimination: • xx=0 • x0=x Proofof identity:
x y z yz x(yz) xy xz xyxz Identities of Jegalkin algebra. 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 1 0 1 1 1 1 0 1 1 1 0 1 1 1 1 0 0 1 1 0 • The distributive law ( accordingly ): x(yz)=xyxz Proofof distributivenessaccordingly
Transition formulae from logic algebra to Jegalkin algebra. 0 1 1 0 • Introducing of the negation in Jegalkin algebra: Prove this identity by the truth table: 1 0
Transition formulae from logic algebra to Jegalkin algebra. • Introducing of disjunction in Jegalkin algebra: Provegiven formula analytically:
Jegalkin polynomial. Jegalkin polynomialis 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 oftwodifferent elementary conjunctions in polynomial is called the length of polynomial.
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, idempotencelaw and the rules of the summand elimination.
Jegalkin polynomial and the rule of its building. Example. Build Jegalkin polynomials for implication () and equivalence (~) . Solution.
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
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.
Linear Boolean functions. Continuation of example. Function is nonlinear.
Jegalkin polynomial andthe rule of its building. Example. Build Jegalkin polynomial for the implication function using the method of the indefinite coefficients.
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,
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 followsthat a3 = 0 f13(1,0) = 10 = 0 0 = a110a21a301 = a21, from here followsthat a2 = 1
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