a) stack
b) queue
c) tree
d) graph
Answer: a
Explanation: Stack is the most appropriate data structure for balancing symbols algorithm because stack follows LIFO principle (Last In First Out).
Related Posts
Which of the following statement is incorrect with respect to balancing symbols algorithm?
Which of the following does the balancing symbols algorithm include?
In balancing parentheses algorithm, the string is read from?
Which application of stack is used to ensure that the pair of parentheses is properly nested?
What is the time complexity of balancing parentheses algorithm?
What is the number of moves required to solve Tower of Hanoi problem for k disks?
Which data structure can be used to test a palindrome?
Join The Discussion