Chapter 1 Revision: ADTs and Views
Abstract Data Types (ADTs) establish the foundational barrier between a component's external behavioral contract and its internal memory representation. Mastering ADT specifications, invariants, and cache-conscious physical storage is essential for high-performance software engineering.
Use these flashcards for active recall. Try to answer the question out loud before clicking the card to flip it.
Flashcards š“
What are the three components of an Algebraic ADT Specification?
2. Operations (Signatures): Creators, constructors, observers, and mutators with their domain and codomain.
3. Axioms (Laws): Equational identities defining the observable behavior between constructors and observers (e.g.,
top(push(S, x)) = x).What is the difference between a Representation Invariant (RI) and an Abstraction Function (AF)?
⢠Abstraction Function (AF): A mapping AF: R ā A that maps a valid concrete representation state R to the abstract mathematical value A it represents to clients.
Why do Contiguous Storage layouts (arrays) outperform Linked Storage (nodes) in modern CPU memory hierarchies?
What is Pointer Aliasing and how can it breach ADT encapsulation?
What is Macro Hygiene and why is it essential?