Tree and graph

SakibMuhaimin 5,909 views 14 slides Nov 19, 2016
Slide 1
Slide 1 of 14
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14

About This Presentation

A short slide about important Data structure Tree and Graph


Slide Content

Tree and Graph Muhaiminul Islam ID-150164

Discussion point Tree Introduction to Tree Terminologies used in Trees BST Traversing a Tree Application of a Tree Graph Directed V s Undirected Graph Application

Tree In mathematics, and more specifically in graph theory, a  tree  is an undirected graph in which any two vertices  are connected by  exactly one  path . In other words, any acyclic connected graph is a tree.

Terminologies used in Trees Root Parent Child Leaf

Binary search Tree Binary search trees allow for fast insertion and removal of elements They are specially designed for fast searching. A binary tree consists of two nodes, each of which has two child nodes

Traversing a Tree Pre order ( root, left, right) In order( left , root, right) Post order( left , right, root)

Application of tree File system Store large volume of data Artificial intelligence Compiler design Text processing

Graph A data structure that consists of a set of nodes ( vertices ) and a set of edges that relate the nodes to each other

Directed VS Un directed Graph When the edges in a graph have a direction, the graph is called directed (or digraph ) When the edges in a graph have no direction, the graph is called undirected

Application Driving Map Airline traffic Computer network Cad/VLSI GPA Highway Maps Internet Web graph

Any Question?