Lecture 2: Data Structures Brief

Timestamps from the lecture
  • 00:50: interface vs data-structure
  • 05:50: static sequences & static arrays
  • 16:50: dynamic sequences & linked-list
  • 25:20: static array vs linked-list
  • 34:25: dynamic arrays (lists in python)
  • 46:27: amortization

Interfaces Vs. Data Structure

InterfaceData Structure
Says what you want to do.Says how you do it.
Specification of what data you can store.Representation of how to store data.
Specify what operations are supported (& what they mean).Gives algorithms for how to support those operations.
Problem statement. (Binary relation connecting problem inputs to correct outputs)Algorithmic solutions to the problem. (You want to maintain data according to various operations)

Main Interfaces discussed:

Sequences and Arrays

Sequence and array relation

Side Note:

Sonia Lomo

© 2024 Sonia Lomo

LinkedIn 𝕏 GitHub