Jump to content

Talk:Common subexpression elimination

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Cewbot (talk | contribs) at 21:32, 30 January 2024 (Maintain {{WPBS}} and vital articles: 1 WikiProject template. Create {{WPBS}}. Keep majority rating "Start" in {{WPBS}}. Remove 1 same rating as {{WPBS}} in {{WikiProject Computer science}}.). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

This problem seems much more complicated than the article suggests. For example,

takes 19 multiplications and 9 additions to evaluate, but it can be rewritten as

which only requires 3 multiplications and 3 additions. How does subexpression elimination know how to do this?