In compiler terminology reduction in strength means
20112025
In compiler terminology reduction in strength means
- A.
Replacing run time computation by compile time computation
- B.
Removing loop invariant computation
- C.
Removing common subexpressions
- D.
replacing a costly operation by a relatively cheaper one
Attempted by 127 students.
Show answer & explanation
Correct answer: D
In compiler terminology, reduction in strength refers to replacing expensive operations with cheaper equivalents. For example, substituting multiplication by a constant with bit shifts or addition.
A video solution is available for this question — log in and enroll to watch it.