Computer Science EngineeringVery hard
Live variable analysis is a data-flow problem of which type?
- A. Forward, may
- B. Forward, must
- C. Backward, may
- D. Backward, must
Correct answer: C. Backward, may
A variable is live if there exists some path to a use, so information flows backward and merges with union.
Practise more Theory of Computation, Compilers & Digital Logic (ISRO CS) questionsTheory of Computation, Compilers & Digital Logic (ISRO CS): notes and key points
More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions
- Available expressions analysis is a data-flow problem of which type?
- Moving a computation whose value does not change inside a loop to before the loop is called
- A language accepted by some Turing machine (which may loop on strings outside the language) is called
- Which problem was the first to be proved NP-complete (Cook-Levin theorem)?
- The minimal complete DFA over {a, b} for the language ab has how many states?
- The grammar S -> aSa | bSb | a | b | epsilon generates