Important Announcement
PubHTML5 Scheduled Server Maintenance on (GMT) Sunday, June 26th, 2:00 am - 8:00 am.
PubHTML5 site will be inoperative during the times indicated!

Home Explore บทที่ 4 การแปลงนิพจน์

บทที่ 4 การแปลงนิพจน์

Published by Sutarat Thongmai, 2021-07-11 04:55:13

Description: บทที่ 4 การแปลงนิพจน์

Search

Read the Text Version

การแปลงนิพจน์ Infix เปน็ Postfix

จะเปน็ การใชค้ ุณสมบัติของ Stack มาลาดบั การทางาน คือเขา้ ทหี ลังออกกอ่ น operator ความสาคญั output 3 4 ∗̅̅∗̅ 2 2 *, / 1 1 +, - 0 4 ()

ตวั อยา่ ง operator วา่ ง ( A + B * C ) ∗̅̅∗̅ D ( ( Input Output (+ ( วา่ ง (+ A วา่ ง (+* +A (+* BA +* * AB C AB + * ∗̅̅∗̅ ) ABC + * ∗̅̅∗̅ ∗̅̅∗̅ ABC D ABC +* วา่ ง ABCD + วา่ ง ABCD∗̅̅∗̅ วา่ ง วา่ ง ABCD∗̅̅∗̅ * วา่ ง ABCD∗̅̅∗̅ * +

1. ( A * B – C * D ) + F


Like this book? You can publish your book online for free in a few minutes!
Create your own flipbook