Professional Documents
Culture Documents
STRUCTURE AND
ALGORITHM
Presenting by
chandana S
CONTENTS
Data structure definition
Types of data structure
Stack
Queue
Linked list
Tree
Graph
Algorithm types
DATA STRUCTURES
Stack
is a linear data structure which works on
LIFO order
In
stack element is always added at the top and also
removed from the top of the stack
QUEUE
Queueis also a linear data structure which works on
FIFO order.
In
queue elements are always added at rear of queue
and removed from front of queue
LINKED LIST
A linkedlist is a linear collection of data elements, in
which linear order is not given by their physical
placement in memory.
Elements are added in front end of the list as well as
middle of list
TREE
Types of algorithm
Recursive algorithm
Backtracking algorithm
Divide and conquer algorithm
RECURSIVE ALGORITHM
A function calling itself
Application
Tower oh honnai
Fibbonacci series generation
Factorial of a number calcution
BACKTRACKING ALGORITHM
Backtracking algorithm is used to solve problem by
recursive calling to find the solution by step by step
increasing values with time.
Application
N- queen problem
Find hamiltonion cycle of a graph
Graph coloring problem
DIVIDE AND CONQUER