Data Structure Introduction
Data Structure Introduction
Primitive data structures are the fundamental data types which are
supported by a programming Language.(integer, real, character,
and boolean)
• type name[size];
• in a linked list, every node contains the following two types of data:
– The value of the node or any other data that corresponds to that
node
• The last node in the list contains a NULL pointer to indicate that it is
the end or tail of the list.
Linked Lists
• LIFO
• The elements in a queue are added at one end called the rear
and removed from the other end called the front
• When two nodes are connected via an edge, the two nodes are known as
neighbours.
• In a tree structure, nodes can have any number of children but only one parent, a
graph on the other hand relaxes all such kinds of restrictions.