Node:Designing your data structure, Next:, Previous:Setting up a data structure, Up:Setting up a data structure

Designing your data structure

The steps you should take in designing a data structure follow a basic pattern:

  1. Group together all the kinds of information that must be stored and define a structure type with a member for each kind of information.
  2. Add structure pointers to the structure type to reflect the way in which each bundle of information is connected to the others.
  3. Design the algorithms to handle the memory allocation, node linking, and data storage.