Skip to content
ExamRizzInterview readingReading
Leave

STEM · Computer Science · Leading Academic Figures

Save

Barbara Liskov

Institution: MIT

Breakthrough Contributions: Pioneered abstract data types and modular programming. Created CLU language (influenced Python, C++, Java). Developed Liskov Substitution Principle (LSP)—objects of superclass should be replaceable by objects of subclass without breaking program. Her work on distributed systems, fault tolerance, and Byzantine agreement is foundational. Turing Award 2008.

Questions to think through

  1. Explain LSP: If B is subtype of A, then B objects can replace A objects without altering correctness. Example: Rectangle class with `setWidth()`, `setHeight()`. Square subclass overrides both to keep equal dimensions. Problem: code expecting Rectangle behavior `r.setWidth(5); r.setHeight(3); assert r.area() == 15` fails for Square. Explain why Square is not proper subtype of Rectangle (violates behavioral contract). What's proper design: separate hierarchies or eliminate inheritance?

    explain
  2. Design abstract data type: Specify stack ADT: operations `push(x)`, `pop()`, `isEmpty()`. Specification should be implementation-independent. Two implementations: array-based (fixed size, O(1) operations) and linked-list-based (dynamic size, O(1) operations). Explain abstraction barrier: clients use interface without knowing implementation. Why is this valuable: (a) can swap implementations (b) reasoning about correctness is localized (c) implementation can be optimized without changing interface.

    explain

Barbara Liskov · Liskov Substitution Principle · Abstract Data Types · CLU Language · Distributed Systems · Software Engineering