This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Sabtu, 19 November 2011

Soal Tabel Kebenaran

Diketahui suatu ekspresi logika sebagai berikut:
NOT (A AND B) OR (C XOR NOT D) = NOT (A OR NOT B) AND (C OR D)
Apa hasil dari ekspresi logika tsb.
Jawab:
Konversikan terlebih dahulu :
*Sebelah kiri
-A "AND" B
-"NOT" B
-C "XOR" (NOT B)
-"NOT" (A AND B)
-NOT ( A AND B ) "OR" C XOR NOT B
*Sebelah Kanan
-"NOT" B
-A "OR" (NOT B)

-"NOT" (A OR NOT B)
-C "OR" D
-NOT (A OR NOT B) "AND" (C OR D)
*Bandingkan hasil sebelah kanan dengan hasil sebelah kiri..jika hasilnya sama berarti hasilnya TRUE
*Jika hasilnya lain berarti hasilnya FALSE

Menggunakan Tabel Kebenaran


Jadi :
NOT (A AND B) OR (C XOR NOT D) = NOT (A OR NOT B) AND (C OR D) = FALSE
Mari kita buktikan dengan menggunakan PASCAL

BITWISE OPERATOR

Bitwise Operator

Kali ini kita akan membahas tentang bitwise operator/
Bitwise Operator = Digunakan untuk operasi bit per bit pada nilai integer. Terdiri dari operator NOT, AND, OR, XOR, Shl, Shr. Type : int atau char
Bitwise operator, dari namanya sudah jelas diketahui pasti berhubungan dgn bit. Biasanya digunakan utk memanipulasi data bertipe bit dari tipe data integer atau byte. Bitwise ini sering dipakai dalam kasus enkripsi,kompresi,format file,jaringan(protokol),processing audio/video,dll.
Macam-macam Bitwise: