3 Qs · since 2015 · 5 marks · 0.2 marks/paperStandard yield
GATE tests Stacks across both classical execution mechanics (postfix evaluation and LIFO sequence tracing) and advanced data structure design (state-space simulation with capacity… Guide
PushToS2: Pop the top element from and push…Topic guide
GATE tests Stacks across both classical execution mechanics (postfix evaluation and LIFO sequence tracing) and advanced data structure design (state-space simulation with capacity constraints and stack augmentation). While earlier years focused on 1-mark algorithmic evaluations, recent years leverage 2-mark MSQs to test structural limits and asymptotic invariants.
Postfix Expression Evaluation
occasional · MCQ · 1 marks · 2015
Evaluate an arithmetic expression in postfix notation by processing tokens left-to-right, pushing operands to a stack, and popping two operands when an operator is encountered.
Bounded Multi-Stack Permutation and Simulation
occasional · MSQ · 2 marks · 2024
Determine feasible output sequences generated from a stack configuration under specific transfer rules, pop/push constraints, and strict auxiliary stack capacity bounds.
Stack Augmentation and Operation Complexity
occasional · MSQ · 2 marks · 2025
Analyze structural modifications to a standard stack (e.g., tracking minimum/maximum element) such that specialized queries run in without increasing the asymptotic time complexity of standard PUSH and POP operations.
Postfix Binary Operation Evaluation
Used when an operator is encountered while scanning a postfix expression from left to right.
Augmented Prefix-Minimum Invariant
Used during a PUSH operation to maintain the minimum element pointer in time.
Shift from direct arithmetic evaluation (1-mark single-correct MCQ) toward complex multi-select structural reasoning (2-mark MSQs).
2025, 2024, 2015
Emphasis on resource and complexity bounds—such as finite stack buffer capacity and strict worst-case time complexity for augmented operations.
2025, 2024
Easy items involve deterministic single-pass tracing (e.g., evaluating postfix notation). Medium items involve combinatorial permutation analysis with buffer constraints (MSQs where multiple permutations must be simulated) or rigorous asymptotic verification of augmented data structure operations under PUSH/POP lifecycles.