My room may look messy but I know where everything is. I know this is the motto of every teenager in the world but it's kind of true. I placed everything in a particular place so I know where to go get it. Unfortunately computers don't tend to follow my organizational style. It's probably a good thing that it doesn't. Data Structures are simply the methods used by computers to temporarily store data to be used.
We store data in real life in various ways depending on what the data is being used for. People will use file boxes to save old bills or tax documents and shelves are used for books or dvd. Depending on what it is you are storing you have to choose the best way to store that information. Data Structures are simply the shelves and file boxes of a program in a computer.
There are three major types of data structures: primitive types, composite types and abstract data types.
The primitive type is very simple. Information is stored as a single element such as a number, character or a boolean (true or false). These primitive data types can only hold object at a time and if a new object is placed into the storage the previous object disappears forever.
The next type is the composite type. The composite type is simply multiple primitive types place in one object usually but always called a struct. The composite type lets the programmer add as many primitive types as the programmers want but just like in the primitive data structure it only holds a finite number of objects that were predetermined by the author. And just like in primitive data types if one of the objects is over written the previous data is lost forever.
The last is abstract data types. Abstract Data types use creative programming techniques to allow a flexible and possibly infinite number of primitive types to be stored. The easiest of these is the Array. An Array is just a list of objects numbered from 0 to the limit of the code. Each object can be over written but doesn't need to be as the programmer can simply keep adding more information on to the end.
There are tons of different types of data structures that can be used and picking the right one is just a matter of what you need to use the information for. A book or taxes it doesn't matter as long as you organize the correct way. I should probably clean my room.










