A Study On Focus Arithmetics Labeling of Graphs
A Study On Focus Arithmetics Labeling of Graphs
A Study On Focus Arithmetics Labeling of Graphs
Graph:
The elements of V (G) are called the vertices (or nodes), and the elements E
(G) are called the edges (or links) of G. If e is an edge and
(e) = (u, v), then we say that e is an edge joining u and v and the
vertices u and v are called the ends (end vertices) of e.
Example:
G= (V (G), E (G), )
And is defined by
e1 v1, v2
e2 v2, v3
e3 v3, v4
e4 v4, v1
Adjacent vertices:
Adjacent edges:
1
Two edges e1 and e2
are said to be adjacent edges, if they have the
vertex in common.
Incident:
Sub graph:
Degree:
2
DEFINITIONS RELATED TO A TREE
Acyclic Graph:
Tree:
Example:
Connected:
Radius:
The radius rad (G) = min {e (u): u V } of a graph G is the
minimal eccentricity of all nodes in V.
Diameter:
The diameter diam (G) = max {e (u): u V } of a graph G is the maximal.
Eccentricity of all nodes in V. It is also the maximal distance between any two nodes
in V
Center:
The center of a graph G is the set of nodes in V of minimal eccentricity (the
black node)
Subtree:
A tree G whose graph vertices and graph edges form subsets of the graph
vertices and graph edges of a given t r e e G.
PROPERTIES OF TREES
If G has finitely many vertices, say n of them, then the above statements are
also equivalent to any of the following conditions:
Leaf:
A leaf is a vertex of degree 1.
Forest:
14
Internal vertex:
Spanning Tree:
Example:
Optimal tree:
An optimal tree in a connected graph is a spanning tree that has the smallest
possible sum of weights of its edges.
Rooted Tree:
Centered tree:
A tree having a single node that is a graph. Then it is also called a central tree.
Example:
Planted Tree:
A planted tree is a rooted tree whose root node has vertex degree 1.
Example:
Descendant:
A vertex w is called a descendant of a vertex v (and v is
called an ancestor of w), if v is on the unique path from the root to w. If, in
addition, w v, then w is a proper descendant of v (and v is a proper ancestor of
w).
Parent:
If vertex v immediately precedes vertex w on the path from the root to w,
then v is parent of w and w is child of v.
Depth:
In a rooted tree, the depth or level of a vertex v is its distance from the
root, i.e., the length of the unique path from the root to v. Thus, the root has depth
0.
Height:
The height of a rooted tree is the length of a longest path from the
root (or the greatest depth in the tree).
Sibling:
A sibling a node which shares the same parent.
Ancestor:
An ancestor is any node between a given node and the root, including the
root.
Bicentered Tree:
A tree (also called a bicentral tree) having two nodes that are graph
centers. The numbers of bicentered trees on 1, 1, 3,
n 1, 2 ... nodes are 0, 1, 0,
4, 11, 20, 51,108
Example:
Path Graph:
A path graph is a graph that can be drawn so that all of its vertices and
edges lie on a single straight line.
Example:
Labeled tree:
A labeled tree is a tree in which each vertex is given a unique label. The
vertices of a labeled tree on n vertices are typically given the labels 1, 2,…, n.
Recursive tree:
A recursive tree is a labeled rooted tree where the vertex labels respect the tree
order (i.e., if u v for two vertices u and v, then the label of u is smaller than the label
of v).
n-ary tree:
An n-ary tree is a rooted tree for which each vertex has at most n children. 2-
ary trees are sometimes called binary trees, while 3-ary trees are sometimes called
ternary trees.
A complete m-ary tree is an m-ary tree in which every internal vertex has
exactly m children and all leaves have the same depth.
2.4 BINARY TREE
A binary tree is a tree in which there is exactly one vertex of degree two
and each of the remaining vertices is of the degree one or three.
The number of vertices n in a binary tree is always odd. This is because there
is exactly one vertex of even degree, and the remaining
n 1 vertices are of even odd degree.
The traversal of a binary tree consists of visiting each vertex of the tree in
some prescribed order. The most common binary tree traversals are differentiated
by the order in which the root and its subtrees are visited. The three traversals are
described as:
1. Preorder traversal
A Full regular binary tree is a regular tree in which all leaves have the same
path length (equal to the height of the tree).
Weight of a binary tree:
A binary tree that has n leaves with the weight w1, w2 ,..., wn assigned to the
leaves is said to be a binary tree for the weights w1, w2 ,..., wn. The weight of a binary tree
n
for the weights w1, w2 ,..., wn is ∑ w il( wi). Where l(w i ) denotes the path length of the
i=1
A binary tree that has n leaves with the weight w1, w2 ,..., wn
INTRODUCTION
and after visiting w1 , we traverse all vertices to which it is adjacent before returning
Let v denote the vertex that is presently examined. Let T denote the spanning
tree obtained as a rooted tree by applying DFS algorithm.
Algorithm:
Step: 1(Initialization)
Let v v
1 and T = { v1 }, ( v1 is a root of the tree T obtained in the
final step).
Step: 2
Select the smallest i such that v, vi E and vi has not been
Otherwise,
(ii) Let
v vi
(iii)Return to step:2
Step: 3
v v1 , then T is rooted spanning tree with
If v1 as its root.
Step: 4
v v1 , back track v, If p is the parent of v ,Let v p
If and go
to step 2.
Note:
In this algorithm, we construct a largest possible path from
vi (step2). If is a spanning tree then we stop( step 3) otherwise
vertex
we go back to the parent P of the last vertex v visited (step 4) and construct another
path from P(we may have to back track to a higher level if no new vertices are
found while applying step 4)
Example:
Consider the depth first search spanning tree for the given graph.
Initial conditions:
i=1
Now, let i=2 and FE= {(a, b), (a, d)} Among these two edges, arbitrarily select
one. Now take e= (a, d) Then u=d and label (d) = l (d) = 2. Add e to tree T. The
resulting tree is depicted in the figure (2).
Step:2
Step: 3
Now, let i=4 and FE= {(a, b), (c, i),(c, j)} Select e=(c, f). Then u=j and l (j) =4.
Step: 5
Step: 8
In figure (10) there is a label associated with each vertex. These labels
correspond to the order in which a depth first search visits the respective vertex.
3.3 BREADTH FIRST SEARCH: (BFS)
This algorithm is used to find a path which uses least number of edges that is
the shortest path.
Algorithm:
Step: 1
Step: 2
Step: 3
Step: 4
algorithm uses the label v which are generated in BFS algorithm.
Step: 1
i z and assign
Set vi z
Step: 2
vi1 u .
Step: 3
Example:
Obtain a BFS- spanning tree for the graph in the given graph.
Initial conditions:
Step: 1
Step: 2
Now, let i=3 and FE= {(a, g), (b, c), (b, e)} e= (a, g),u=g label (g)= l(g) = 3
Add e to tree T.
Step: 3
Now, let i=4and FE= {(b, c), (b, e), (g, f), (g, h)}
e= (b, c), u=c label (c) = l(c) =4, Add e to tree T.
Step: 4
Now, let i=5and FE= {(b, e), (g, f), (g, h), (c, d)} e= (b, e),u=e label (e)=l(e)=5
Add e to tree T.
If we proceed further steps, the BFS-spanning tree T obtained from the graph G.
In figure (2) there is a label associated with each vertex. These labels
correspond to the order in which a breadth-first search visits the respective vertex.
CHAPTER-4
GREEDY ALGORITHMS
graph H is a tree.
Algorithm:
Step: 1
w e1
Choose an edge e1 such that is as small as possible.
Step: 2
is acyclic.
(ii) w ei1
is small as possible subject to (i).
Step: 3
Proof:
The graph contains 9 vertices and 14 edges. So, the minimum spanning tree
formed will be having (9 – 1) = 8 edges.
Now pick all edges one by one from sorted list of edges
1. Pick edge 7-6: No cycle is formed, include it.
2. Pick edge 8-2: No cycle is formed, include it.
6. Pick edge 8-6: Since including this edge results in cycle, discard it.
8. Pick edge 7-8 Since including this edge results in cycle, discard it.
9. Pick edge 0-7: No cycle is formed, include it.
10. Pick edge 1-2: Since including this edge results in cycle, discard it.
Since the number of edges included equals (V – 1), the algorithm stops here.
REVERSE DELETING ALGORITHM
Example:
Solution:
Step: 1
Step: 2
Step: 3
Step: 4
Step: 5
Step: 6
PRIM’S ALGORITHM
Algorithm:
Step: 1
Step: 2
e1 v1 , v2
Choose an edge of G such that v2 v1 and e has
1
Step: 3
Example:
Proof:
The set minimum spanning tree set is initially empty and keys assigned to
vertices are {0, INF, INF, INF, INF, INF, INF, INF} where INF indicates infinite.
Now pick the vertex with minimum key value. The vertex 0 is picked; include it in
minimum spanning tree set. So minimum spanning tree set becomes {0}. After
including to minimum spanning tree set, update key values of adjacent vertices.
Adjacent vertices of 0 are 1 and 7. The key values of 1 and 7 are updated as 4 and 8.
Following subgraph shows vertices and their key values, only the vertices with finite
key values are shown. The vertices included in MST are shown in ash color.
Pick the vertex with minimum key value and not already included in MST
(not in minimum spanning tree set). The vertex 1 is picked and added to minimum
spanning tree set. So minimum spanning tree set now becomes {0, 1}. Update the key
values of adjacent vertices of 1. The key value of vertex 2 becomes 8.
Pick the vertex with minimum key value and not already included in MST
(not in minimum spanning tree set). We can either pick vertex 7 or vertex 2, let
vertex 7 is picked. So minimum spanning tree set now becomes {0, 1, 7}. Update the
key values of adjacent vertices of 7. The key value of vertex 6 and 8 becomes
finite (7 and 1 respectively).
Pick the vertex with minimum key value and not already included in MST (not in minimum
spanning tree set). Vertex 6 is picked. So minimum spanning tree set now becomes {0, 1, 7, 6}. Update the
key values of adjacent vertices of 6. The key value of vertex 5 and 8 are updated
We repeat the above steps until minimum spanning tree set doesn‘t include all vertices of given
graph. Finally, we get the following graph.
CHAPTER 1
WITH GRAPHS
INTRODUCTION
In 1964, Prove extended the classical Banach contraction principle for Contraction Mappings on
spaces endowed with vector valued metrics. For some Contributions to this topic, Let X bea non
If α, β ∈ Rm, α =(α1, α2, ..., αm)T, β = (β1, β2, ..., βm) T and c ∈ R, then by α ≤ β (resp., α < β)
we mean αi ≤ βi ( resp., αi < βi) for i ∈ {1, 2, ..., m} and by α ≤ c we mean that αi ≤ c for I ∈ {1,
A set X equipped with a vector valued metric d is called a generalized metric space and, it is
denoted by (X,d). The notions that are defined in the generalized metric spaces are similar to those
Throughout this chapter we denote the non-empty closed subsets of X by Cl(X), the set of all
m × m matrices with non-negative elements by Mm,m(R+), the zero m × m matrix by ō and the
THEOREM
(I − A)−1 = I + A + · · · + A n + · · · ; (1.1)
REMARK
For other examples and consideration on matrices which converge to zero, see [8] and [12]
THEOREM
Let (X, d) be a complete generalized metric space and the mapping f: X → X with the property
that there exists a matrix A ∈ Mm,m(R+) such that d(f(x), f(y)) ≤ Ad(x, y) for all x, y ∈ X. If A is a
(2) The sequence of successive approximations {xn} such that, xn = fn(x0) is convergent and it
has the limit x∗, for all x0 ∈ X. On other hand Jachymski [4], generalized the Banach contraction
principle on a complete metric space endowed with a graph. He introduced the notion of Banach G-
contraction as follows:
DEFINITION
Let (M, d) be a metric space, let △ be the diagonal of the Cartesian product M × M , and let G be
a directed graph such that the set V of its vertices coincides with M and the set E of its edges contains
loops; that is, E ⊇△. Assume that G has no parallel edges. A mapping f: M→ M is called a Banach
G-contraction if
(ii) There exists α, 0 < α < 1 such that, x, y ∈ X, (x, y) ∈ E ⇒ d(fx, fy) ≤ αd(x, y).
DEFINITION
and (xn, xn+1) ∈ E for each n ∈ N, we have fxn → fx. For some other interesting extensions of
Banach G-contraction.
MAIN RESULTS
Throughout this chapter, (X, d) is a generalized metric space and we will denote G = (V, E) as a
directed graph such that the set V of its vertices coincides with X and the set E of its edges contains
loops; that is, E ⊇△, where △ is the diagonal of the Cartesian product X × X.
THEOREM
Let (X, d) be a complete generalized metric space endowed with the graph G and let f: X → X be
an
(iii) (a) f is G-continuous; or (b) for each sequence {xn} ∈ X such that xn → x and (xn , xn+1) ∈
Then f has a fixed point. Moreover, if for each x, y ∈ F ix (f), we have E(x, y) ∈ E and A + B
Proof.
Continuing in the same way, we get a sequence {xn} ⊆ X, such that xn = fxn−1, (xn−1, xn) ∈ E
n+m−1
d(xn , xn+m) ≤ ∑ d(xi, xi+1)
i=
n
n+m−1
≤ ∑ Aid(x0, x1)
i=n
∞
≤ An ∑ d(x0, x1)
i=
0
Letting n → ∞ in the above inequality we get, d(xn, xn+m) → 0, since A is converging towards
such that xn → x∗.If hypothesis (iii. a) holds.Then we have fxn → fx∗, that is xn+1 → fx∗.Thus,
fx∗ = x∗.
If
d(xn +1, fx∗) = d(fxn, fx∗) ≤ A d(xn , x∗) + Bd(x∗, fxn ) = A d(xn , x∗) + Bd(x∗, xn +1).
Letting n → ∞, in the above inequality, we get d(x∗, fx∗) = 0. This shows that x ∗ = fx∗.
(I − (A + B)) d(x, y) ≤ 0.
Since the matrix I − (A + B) is nonsingular, then d(x, y) = 0. Thus, we have Fix (f) = {x}.
REMARK
EXAMPLE
|x1 − y1|
Let X = R 2 be endowed with a generalized metric defined by d(x, y) =( ) for
|x2 − y2|
2s y
− + 1, + 1 ) for (x, y) ∈ X witℎ x ≤ 3
y
(
F: R2→R2, f1(x, y), 3 3 3
5s
={ 2s + 1, − + y + 1) for(x, y) ∈ X witℎ x ≥ 3
( y 3−3 3 3
y
+ 1 if x ≤ 3
3
f2(x, y) = { 5s y
− + + 1 if x > 3
3 3
1 1,2, 1 1, 2
, 3 1 1 3 2 2
1
| y2 | ifx1 , y1 , ≤ 3
x
3 2– ,
|f2(x1 , x2 ,) − f2(y1 , y2 , )| ≤ {5 y | + 1 |x y | otherwise
|x
3 1– 1, 3 2– 2 ,
For each (x1, x2),(y1, y2) ∈ X. Define the graph G = (V,E) such that V = R2 and E = {((x1, x2),(y1,
y2)): x1, x2, y1, y2∈ [0, 3]} ∪ {(z, z): z ∈ R2}. Now for each (x, y) ∈ E, we have
2 1
3 |x1 − y1|
d(f |f1 (x1, x 2)− f1 ( y1 , y2 | ) ( )= Ad(x, y).
f )=( )≤
s,y 1 |x2 − y2|
|f2 (x1, x2 )− ( y 1 , y2 | 0
f2 3
Moreover, it is easy to see that all the other conditions of Theorem 1.3.1 hold. Thus, f has a fixed
point, that is x = fx = (f1x, f2x), where x = (1.5, 1.5).
THEOREM
Let X be a non-empty set endowed with the graph G and two generalized metrics d, ρ. Let f:
(X, ρ) → (X, ρ) be an edge preserving mapping with A,B ∈ Mm,m(R+) such that
(iv) There exists C ∈ Mm,m(R+) such that d(fx, fy) ≤ C ρ (x, y), whenever, there exists a
Then f has a fixed point. Moreover, if for each x, y ∈ Fix (f), we have (x, y) ∈ E and A + B
Proof.
By hypothesis (ii), we have (x0, fx0) ∈ E. Take x1 = fx0. From (2.3), we have,
= Aρ(x0, x1).
= A2ρ(x0, x1).
Continuing in the same way we get a sequence {xn} in X such that xn = fxn−1, (xn−1, xn) ∈ E, and
Now we will show that {xn} is a Cauchy sequence in (X, ρ). By using the triangular inequality, we
have
n+m−
ρ(xn, xn+m) 1 ρ(xi, xi+1)
≤ ∑
i=n
n+m−1 ≤ ∑
i=n
Ai ρ(x0, x1)
∞
≤ An ( ∑ Ai) ρ(x0, x1)
i=
n
= An (I − A) −1ρ(x0, x1)
Since A converges towards zero. Thus{xn}is a Cauchy sequence in (X, ρ). By the Construction of
sequence, for each n, m ∈ N,we have a path between xn and xn+m. Now, by using hypothesis (iv),we
have
≤ Cρ(xn, xn+m)
This shows that {xn} is also a Cauchy in (X, d). As (X, d) is complete, there exists x∗ ∈ X, such
that xn → x∗. By hypothesis (iii) we get limn→∞ d(fxn, fx∗) = 0. As xn+1 = fxn for each n ∈ N.
Thus, x∗ is a fixed point off. Further assume that x, y ∈ Fix (f) and(x, y) ∈ E, then by (2.3), we
have
(I − (A + B)) ρ(x, y) ≤ 0.
Since, the matrix I − (A + B) is non-singular, then ρ(x, y) = 0. Thus, we have Fix (f) = {x}
THEOREM
⎧ |x − y| + 1
| x − y| + 1 ( )
( ) If x or y or botℎ x, y ∈ 0, 1
⎪ 0
| x − y| ( )
ρ(x, y) = ( ) and d(x, y)= ( ) If x = y 0.1
|
x− | ⎨ ∈0
y
| x − y|
( ) otℎerwise
|x − y|
⎪
⎩
Define the graph G = (V, E) such that V = X and E = {(x, y): x, y ≥ 1} ∪ {(z, z): z ∈ X}. It is easy
And all the other conditions of Theorem 1.3.4 hold. Thus, f has a fixed point.
THEOREM
Let (X, d) be a complete generalized metric space endowed with the graph G and let F: X → Cl(X)
be a multi-valued mapping with A, B ∈ Mm,m(R+), such that for each (x, y) ∈ E and u ∈ F x,
(iii) For each u ∈ Fx and v ∈ Fy with d(u, v) ≤ Ad(x, y) we have (u, v) ∈ E whenever (x, y) ∈ E;
(iv) For each sequence {xn} in X such that xn → x and (xn, xn+1) ∈ E for all n ∈ N, we have
Proof.
By hypothesis (ii), we have x0 ∈ X and x1 ∈ Fx0 with (x0, x1) ∈ E. From (2.4), for (x0, x1) ∈ E,
By hypothesis (iii) and (2.5), we have (x1, x2) ∈ E. Again from (2.4), for (x1, x2) ∈ E and x2 ∈
Continuing in the same way, we get a sequence {xn} in X such that xn ∈ Fxn −1, (xn −1, xn) ∈ E
and
we get,
n+m−1
d(xn, xn+m) ≤ ∑ d(xi, xi+1)
i=
n
n+m−1
≤ ∑ Ai d(x0, x1)
i=n
∞
≤ An ( ∑ Ai) d(x0, x1)
i=
n
= An (I − A) −1d(x0, x1)
Since the matrix A converges towards ō. Thus the sequence {xn} is a Cauchy sequence in X. As X is
complete. Then there exists x∗ ∈ X, such that xn → x∗. By hypothesis (iv) we have (xn, x∗) ∈ E,
for each n ∈ N. From (2.4), for (xn, x∗) ∈ E and xn+1 ∈ F xn we have w∗ ∈ F x∗ such that
Letting n → ∞ in the above inequality, we get d(x∗, w∗) = 0, that is, x∗ = w∗. Thus x∗ ∈ Fx∗.
THEOREM.
| x1 − y1 |
Let X = R2 be endowed with a generalized metric defined by d(x, y) =( )
| x 2 − y2 |
For each x = (x1, x2), y = (y1, y2) ∈ R2. Define the operator
s1
{(0, 0) ( , s2)} for x , x ≥0
3 3 1 2
f: R2→ cl(R2), F(x1 x2) = {
10
{(0, 0), (x1 + 1, x2 + 1) } otℎerwise
Define the graph G = (V, E) such that V = R2 and E = {((x1, x2), (y1, y2)): x1, x2, y1, y2 ≥ 0} ∪
11
01 0 0
A=( ) , B= (
3
)
1 0 0
0
3
And all the other conditions of Theorem 1.3.6 hold. Thus, F has a fixed point.
THEOREM.
Let X be a non-empty set endowed with the graph G and two generalized metrics d, ρ. Let F:
X → Cl(X) be a multi-valued mapping with A, B ∈ Mm,m (R+), such that for each (x, y) ∈ E and u
(iii) For each u ∈ Fx and v ∈ Fy with ρ(u, v) ≤ Aρ(x, y) we have E(u, v) ∈ E whenever (x, y) ∈
E;
(v) There exists C ∈ Mm,m(R+) such that d(x, y) ≤ C ρ(x, y), whenever, there exists a path
between x and y;
(vi) For each sequence{xn}in X such that xn → x and (xn, xn +1) ∈ E for each n ∈ N, we have
Proof.
By hypothesis (ii), we have x0 ∈ X and x1 ∈ Fx0 such that (x0, x1) ∈ E. From (2.6), for (x0, x1) ∈
= Aρ(x0, x1).
By hypothesis (iii) and above inequality, we have (x1, x2) ∈ E. Again from (2.6) for (x1, x2) ∈ E,
Continuing in the same way, we get a sequence {xn} ∈ X such that xn∈ Fxn−1, (xn−1, xn) ∈ E and
Now, we will show that {xn} is a Cauchy sequence in (X, ρ). Let n, m ∈ N, then by using the
triangular
inequality we get
n+m−
ρ(xn , xn +m) 1 ρ(xi, xi+1)
≤ ∑
i=n
n+m−1
≤ ∑ Ai ρ(x0, xi+1) (2.7)
i=n
∞
≤ ( ∑ Ai) ) ρ(x0, xi+1)
i=n
= An (I − A) −1ρ(x0, x1)
Since the matrix A converges towards zero. Thus {xn} is a Cauchy sequence in (X, ρ). Clearly, for
each m, n ∈ N there exists a path between xn and xn+m. By using the hypothesis (v) we get,
Thus, {xn} is also a Cauchy sequence in (X, d). As (X, d) is complete, there exists x∗ ∈ X, such
that xn→ x∗. By hypothesis (vi) we have E(xn, x∗) ∈ E for each n ∈ N. From (2.4), for (xn, x∗)
Letting n → ∞ in the above inequality we get ρ(x∗, w∗) = 0. This implies that x∗∈ Fx∗.
THEOREM.
Define the graph G = (V, E) such that V = X and E = {(x, y): x, y ≥ 1} ∪ {(z, z): z ∈ X}. It is easy
1 0 0
A = (3 0) , B= ( )
1 0 0
0
3
And all the other conditions of Theorem 1.3.8 hold. Thus, F has a fixed point.