Dominic E.
1 min readJan 11, 2019

--

Thank you Omar! Really appreciate it and I am glad you liked the article.

No, `5, 15, Add, Mul, Div` is correct because the two constants will only be evaluated once. This basically applies for every node in the graph. When evaluating Mul we can take for granted (due to the topological ordering) that the inputs where already evaluated.

Does that make sense?

--

--

Dominic E.
Dominic E.

Written by Dominic E.

GDE for Web / @Angular • Software Engineer @StackBlitz • Trainer @thoughtram • JavaScript stuff • Node.js • Rust • Deep Learning • Cyclist • Design

No responses yet