Top-Down and Bottom-Up Design Approach
Top-Down and Bottom-Up Design Approach
Linked list Linked list is a collection of data elements. It consists of two parts: Info and Link.
Info gives information and Link is an address of next node. Linked list can be
implemented by using pointers.
Stack Stack is a list of elements. In stack, an element may be inserted or deleted at one
end which is known as Top of the stack. It performs two operations: Push and Pop.
Push means adding an element in stack and Pop means removing an element in
stack. It is also called Last-in-First-out (LIFO).
Queue Queue is a linear list of element. In queue, elements are added at one end called
rear and the existing elements are deleted from other end called front. It is also
called as First-in-First-out (FIFO).
Non-Linear Data Structure
•Non-Linear data structure is opposite to linear data structure.
•In non-linear data structure, the data values are not arranged in
order and a data item is connected to several other data items.
•It uses memory efficiently. Free contiguous memory is not
required for allocating data items.
•It includes trees and graphs.
Type Description
1. Data
2. Operation
3. Error