PROGRAM MENGUBAH NOTASI INFIX MENJADI PREFIX DAN POSTFIX DENGAN BANTUAN SEBUAH POHON BINER

SOURCE CODE

clip_image002

clip_image004

clip_image006

clip_image008

clip_image010

clip_image012

clip_image014

clip_image016

clip_image018

clip_image020

HASIL PROGRAM DI ATAS:

clip_image022

Postfix: operator ditulis sesudah operand.

Proses konversi dari infix ke postfix :

(A + B) * (C – D)

= [AB + ] * [CD - ]

= [AB + ] [CD - ] *

= AB + CD – *

clip_image024

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>