Node:Complex data structures, Next:Further data structure examples, Previous:union, Up:Data structures
Complex data structures
When building data structures, it is best to model the situation in question clearly and efficiently. Different types of data structure are good for different things. For example, arrays are good for storing tabular information. A chessboard looks like a two-dimensional array, so such an array is a good data structure to model a chess game. In this section we will examine more complex data structures that are useful for modeling more complex situations.