Outline

Static Array

When and Where is a static Array used?

  1. Storing and accessing sequential data
  2. Temporaily storing objects
  3. Used by IO routines as buffers
  4. Lookup tables and inverse lookup tables
  5. Can be used to return multiple values from a function → Many programming languages only allow a single return value
  6. Used in dynamic programming to cache answers to subproblems

Complexity

Complexity of Static/Dynamic Array

Static Array

Static Array Visualization

Static Array Visualization