University of Bahrain
Scientific Journals

Transfer yard Algorithm: Novel mathematical infix to postfix expression evaluator with minimum stack operations

Show simple item record

dc.contributor.author El Haijaa, Omar H Abu
dc.contributor.author Al-Jarrah, Ahmad
dc.contributor.author Al-Jarrah, Mohammmad A.
dc.date.accessioned 2024-08-24T23:29:33Z
dc.date.available 2024-08-24T23:29:33Z
dc.date.issued 2024-08-25
dc.identifier.uri https://journal.uob.edu.bh:443/handle/123456789/5872
dc.description.abstract Reverse Polish Notation (RPN) is vital in evaluating machines' mathematical expressions. Further, it has many important applications. For more than 50 years, RPN Shunting Yard was utilized to evaluate mathematical expressions written infix notation. Most resources recommend using the Shunting yard algorithm to convert infix to RPN notation. In this paper, we proposed a variant shunting yard algorithm named Transfer Yard algorithm (TY) that transfers infix expression to RPN. The proposed algorithm has the advantage of using an array structure with minimum stack operations. The array structure is proved to have better performance in compassion of utilizing stack memory. Actually, utilizing array structure benefits of random access. In the proposed algorithm, we utilized the array to arrange operators' precedency so we can perform transformation in an efficient way. We implemented the proposed algorithm and compared its performance with the Shunting Yard algorithm. To achieve a highly accurate comparison, we designed experiments that minimize any artifact that would affect the results. For that purpose, we repeated the experiment in the same environment more than thousand time and selected the lowest time to represent the execution time for those inputs. Furthermore, both algorithms are tested with variable inputs. Results show that the proposed transfer yard algorithm's performance is significantly better than the performance of the Shunting Yard algorithm. en_US
dc.publisher University of Bahrain en_US
dc.subject Transfer Yard Algorithm; Shunting Yard Algorithm; Reverse Polish notation (RPN); infix notation; postfix notation en_US
dc.title Transfer yard Algorithm: Novel mathematical infix to postfix expression evaluator with minimum stack operations en_US
dc.identifier.doi xxxxxx
dc.volume 16 en_US
dc.issue 1 en_US
dc.pagestart 1 en_US
dc.pageend 13 en_US
dc.contributor.authorcountry Jordan en_US
dc.contributor.authorcountry Jordan en_US
dc.contributor.authorcountry Jordan en_US
dc.contributor.authoraffiliation Yarmouk university en_US
dc.contributor.authoraffiliation Al-Balqa Applied University en_US
dc.contributor.authoraffiliation Yarmouk university en_US
dc.source.title International Journal of Computing and Digital Systems en_US
dc.abbreviatedsourcetitle IJCDS en_US


Files in this item

This item appears in the following Issue(s)

Show simple item record

All Journals


Advanced Search

Browse

Administrator Account