Introduction To Data Structures
Introduction To Data Structures
Mbuke, Juliana L.
Topics covered
• Types of data
• Classification of data structures
• Data structures operations
• Storage methods
– Non-Primitive data
– Referred as structured data
• Primitive data
– This data is operating directly upon machine level instructions. For
example, a variable which is of type integer, float, character or double
can be called as primitive data.
– All these variables can hold only a single value.
• Non-Primitive data
– This data is constructed with the help of primitive data type and are
sometimes called user defined data type, that is a user may select
number of memory locations needed to store particular data.
– These data types are also called data structures. For example arrays,
pointers, lists, stacks, queue, trees, graphs, heaps etc.
• Traversing
– means accessing and processing each element in the data
structure exactly once.
– This operation is used for counting the number of elements,
printing the contents of the elements etc.
• Searching
– is finding out the location of a given element from a set of
numbers.
• Sorting
– is the process of arranging a list of elements in a sequential
order.
– The sequential order may be descending order or an
ascending order according to the requirements of the data
structure.
• Inserting
– is adding an element in the data structure at any position.
• Deleting
– is removing an element in the data structure at any
position.
– After deletion operation the number of elements are
decreased by one.
• Merging
– The process of combining the elements of two data
structures into a single data structure.