Wednesday, January 2, 2013

Data Structures

Data may be organized in many ways; the logical or mathematical model of a particular organization of data is called a data structure. The choice of a particular data model depends on two considerations. First, it must be rich enough in structure to mirror the actual relationship of the data in the real world. On the other hand, the structure should be simple enough that one can effectively process the data when necessary.


Arrays

The simplest type of data structure is a linear (or one-dimensional)  array. Linear aarays are called one-dimensional arrays because because each element in such an array is referenced by one subscript.