All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · December 2023

Which of the following symbol-table implementations is best suited if access time is to be minimum?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. Hash table

Explanation

A hash table gives O(1) average lookup/insert, better than lists (O(n)) or search trees (O(log n)).

More Theory of Computation and Compilers questions