GATE 2015 CS (CS2) – Question 27
Match P: lexical analysis; Q: parsing; R: register allocation; S: expression evaluation. Techniques: 1 graph colouring; 2 DFA minimization; 3 postorder traversal; 4 production tree.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) P–2,Q–4,R–1,S–3
Explanation
Lexical scanners use finite automata and DFA minimization, P–2. Parsing builds a production/parse tree, Q–4. Register allocation colours an interference graph, R–1. Expression trees are evaluated by postorder traversal, S–3. Thus C.