if A=B=0 or A=C=0 and B=1 or A=B=1 and C=0 then F(A,B,C)=1 else F(A,B,C)=0
Yechimlar daraxtidan yechimlar diagrammasiga o‘tish natijasi boshlang‘ich yechimlar daraxtida o‘zgaruvchilarni yaruslarga qaysi tartibda qo‘yilganligiga ham sezilarli darajada bog‘liq.
Yuqoridagi misolda yechimlar daraxtida o‘zgaruvchilarni yaruslarga B,A, C tartibida joylashtirilsa, u holda yechimlar diagrammasi yanada ixchamlashadi:
Natijada F(A,B,C) funksiya qiymatlarini yechimlarning binar diagrammasi orqali berish mumkin:
if B=1 then F(A,B,C)=C else F(A,B,C)=A
Ushbu ko‘rilgan misol shundan dalolat beradiki, ayrim hollarda funksiyalarning shunday maxsus ko‘rinishlarini qurish mumkinki, funksiyalarni massivlar yoki formulalar yordamida ifodalash kabi universal usullarga nisbatan, xotirada kam ma’lumot saqlashni va shu bilan birga hisoblashni tezroq amalga oshirish imkonini beradi.
Quyida keltirilgan F(A,B,C) formulalar uchun yechimlar daraxti, ulardan yechimlarning binar diagrammasi va ular yordamida funksiya qiymatlarini dasturda kiriting:
6.1
|
F(0,0,0)=F(0,1,0)=F(1,0,0)=F(1,1,0)=0
|
6.2
|
F(0,0,0)=F(0,1,0)=F(1,0,0)=F(1,1,0)=1
|
6.3
|
F(0,0,0)=F(0,0,1)=F(1,0,0)=F(1,0,1)=1
|
6.4
|
F(0,0,0)=F(0,1,1)=F(1,0,0)=F(1,1,1)=0
|
6.5
|
F(0,0,0)=F(0,0,1)=F(1,0,0)=F(1,0,1)=0
|
6.6
|
F(0,0,0)=F(0,1,1)=F(1,0,0)=F(1,1,1)=1
|
6.7
|
F(0,1,1)=F(1,1,1)=0
|
6.8
|
F(0,1,0)=F(1,1,0)=0
|
6.9
|
F(0,0,1)=F(1,0,1)=0
|
6.10
|
F(0,0,0)=F(1,0,0)=0
|
6.11
|
F(0,0,0)=F(1,0,0)=F(1,0,1)=F(1,1,0)= F(1,1,1)=0
|
6.12
|
F(0,0,0)=F(0,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