shunting-yard algorithm

E79783

The shunting-yard algorithm is a method for parsing mathematical expressions and converting infix notation to postfix (or prefix) form using a stack-based procedure.

AI illustration

How this image was made

AI-generated illustration of shunting-yard algorithm

This AI-generated illustration was produced by black-forest-labs/FLUX.2-dev (1024x1024) from a prompt written by openai/gpt-oss-120b from the entity's label + description.

Prompt

Generate an image of the shunting-yard algorithm (The shunting-yard algorithm is a method for parsing mathematical expressions and converting infix notation to postfix (or prefix) form using a stack-based procedure.)

All labels observed (1)

Label Occurrences
shunting-yard algorithm canonical 4

How this entity was disambiguated

Statements (45)

Predicate Object
instanceOf algorithm ⓘ
expression parsing technique ⓘ
parsing algorithm ⓘ
alternativeTo recursive descent parsing for expressions ⓘ
canHandle binary operators ⓘ
function argument separators ⓘ
function calls ⓘ
unary operators ⓘ
category deterministic algorithm ⓘ
designedBy Edsger W. Dijkstra ⓘ
documentedIn Edsger Dijkstra's writings on ALGOL and expression parsing ⓘ
evaluationStrategy non-recursive ⓘ
field compiler construction ⓘ
computer science ⓘ
programming languages ⓘ
handles left-associative operators ⓘ
right-associative operators ⓘ
hasPurpose convert infix notation to postfix notation ⓘ
convert infix notation to prefix notation ⓘ
parse mathematical expressions ⓘ
input sequence of tokens representing an expression ⓘ
inspiredBy railway shunting process ⓘ
introducedIn 1960s ⓘ
namedAfter railway shunting yard ⓘ
operatesOn infix expressions ⓘ
output sequence of tokens in postfix order ⓘ
processingOrder left-to-right scan of input tokens ⓘ
produces Reverse Polish notation ⓘ
postfix expressions ⓘ
prefix expressions ⓘ
relatedTo Reverse Polish notation ⓘ
expression evaluation ⓘ
operator-precedence parsing ⓘ
stack-based evaluation ⓘ
requires definition of operator associativity ⓘ
definition of operator precedence ⓘ
supports operator associativity ⓘ
operator precedence ⓘ
parentheses in expressions ⓘ
timeComplexity O(n) ⓘ
typicalUse calculators ⓘ
compilers ⓘ
interpreters ⓘ
usesDataStructure queue ⓘ
stack ⓘ

How these facts were elicited

Referenced by (4)

Full triples — surface form annotated when it differs from this entity's canonical label.

Edsger W. Dijkstra → knownFor → shunting-yard algorithm ⓘ
Dijkstra → notableConcept → shunting-yard algorithm ⓘ
Reverse Polish Notation → isConvertedUsing → shunting-yard algorithm ⓘ
RPN → relatedAlgorithm → shunting-yard algorithm ⓘ