🎴 Flashcard Mode
Data Structures
Card1 / 14
Mastered0
Review0
QuestionClick to flip
Which of the following data structures is usually used in compiler implementations to look up identifiers?
AnswerClick to flip back
A
Hash table
💡 Explanation:
Compiler implementations usually use hash tables to look up identifiers. A hash table (also hash map) is a data structure used to implement an associative array, a structure that can map keys to values. A hash table uses a hash function to compute an index into an array of buckets or slots, from which the correct value can be found.