algorithmic graph theory two mark
algorithmic graph theory two mark
2. End vertices:-
We use the symbols v1, v2, v3,... to represent the vertices and the
symbols e1, e2, e3 , . . . to represent the edges of a graph. The vertices vi and vi
associated with an edge el are called the end vertices of el The edge el is then
denoted as el =(vi, vj).
3. Parallel edges:-
All edges having the same pair of end vertices are called parallel
edges.
4. Self loop:-
If el = (vi, vi), then the edge el is called a self-loop at vertex vi.
5. Order:-
A graph G is of order n if its vertex set has n elements.
6. Null graph:-
A graph with no edges is called an empty graph. A graph with no
vertices (and hence no edges) is called a null graph.
12.Complement of graph:-
Graph 𝐺̅ = (V’, E') is called the complement of a simple graph G =
(V, E) if the edge (vi, vj) is in E' if and only if it is not in E.
14.Trail:-
A walk is a trail if all its edges are distinct.
15.Connected:-
A graph G is connected if there exists a path between every pair of
vertices in G.
16.Components:-
Consider a graph G = (V, E) which is not connected. Then the vertex
set V of G can be partitioned into subsets V1,V2 , . . . ,Vp such that the vertex-
induced subgraphs (Vi), i = 1 , 2 , . . . , p, are connected and no vertex
in subset Vi is connected to any vertex in subset Vj, i!! ×≠j. The subgraphs
(Vi), i = 1, 2 , . . . , p, are called the components of G. A component of a graph G
is a maximal connected subgraph of G; that is, a component of G is not a
proper subgraph of any other connected subgraph of G.
17.Union:-
Consider two graphs, G, = (V,, Ej) and G2 = (V2, E2). The union of
G1 and G2 , denoted as G1 U G2 , is the graph G3 = (V1 U V2, E1 U E2); that is,
the vertex set of G3 is the union of V1 and V2, and the edge set of G3 is the
union of E1 and E2.
18.Intersection:-
The intersection of G1 and G2, denoted as G1 ∩ G2, is the graph
G3 = (V1 ∩ V2, E1 ∩ E2). That is, the vertex set of G3 consists of only those vertices
present in both G1 and G2, and the edge set of G3 consists of only those edges
present in both G1 and G2.
19.Ring sum:-
The ring sum of two graphs G1 and G2, denoted as G1⨁G2, is the
induced graph G3 on the edge set E1 ⨁ E2. In other words G3 has no
isolated vertices and consists of only those edges present either in G1 or
in G2 , but not in both.
G1 U G2 = G2 U G1; G1∩G2= G2∩G1; G1 ⨁ G2 = G2 ⨁ G1.
21.Edge Removal:-
If ei is an edge of a graph G = (V, E), then G – ei is the subgraph of
G that results after removing from G the edge ei. Note that the end
vertices of ei are not removed from G. The removal of a set of vertices or
edges from a graph is defined as the removal of single vertices or edges
in succession. If G1 = (V’, E’) is a subgraph of the graph G = (V, E), then by
G – G’
22.Short-Circuiting or Identifying:-
A pair of vertices v1 and vj in a graph G are said to be short-
circuited (or identified) if the two vertices are replaced by a new vertex
such that all the edges in G incident on vi and vj; are now incident on the
new vertex.
23.Contraction:-
By contraction of an edge e we refer to the operation of removing
e and identifying its end vertices. A graph G is contractible to a graph H if
H can be obtained from G by a sequence of contractions.
24.Complete graph:-
A complete graph G is a simple graph in which every pair of
vertices is adjacent.
26.Bipartite:-
A graph G = (V, E) is bipartite if its vertex set V can be partitioned
into two subsets V1 and V2 such that each edge of E has one end vertex in
V1 and another in V2; (V1, V2) is referred to as a bipartition of G. If in a
simple bipartite graph G, with bipartition (V1, V2), there is an edge (vi, vj)
for every vertex v1 in V1 and every vertex v2 in V2, then G is called a
complete bipartite graph and will be denoted by Km,n if V1 has m vertices
and V2 has n vertices.
30.Isomorphism:- (notes)
31.Euler tour:-
A trail that traverses every edge of G is called an Euler trail of G. A
tour of G is a closed walk that traverses each edge of G at least once. An Euler
tour is a tour which traverses each edge exactly once (in other words, a closed
Euler trail). A graph is eulerian if it contains an Euler tour.
32.Hamilton path:-
A path that contains every vertex of G is called a Hamilton path of
G. A graph is hamiltonian if it contains a Hamilton cycle. The
dodecahedron is hamiltonian; the Herschel graph is nonhamiltonian,
because it is bipartite and has an odd number of vertices.
35.Tree:-
A tree is a connected graph without any circuits.
36.Rooted tree:-
A tree in which one vertex (called the root) is distinguished from all
the others is called a rooted tree.
37.Binary tree:-
A binary tree is defined as a tree in which there is exactly one
vertex of degree two, and each of the remaining vertices is of degree one
or three.
1. Binary search:-
Binary search looks for a particular item by comparing the middle
most item of the collection. If a match occurs, then the index of item
is returned. If the middle item is greater than the item, then the item
is searched in the sub-array to the left of the middle item. Otherwise,
the item is searched for in the sub-array to the right of the middle
item. This process continues on the sub-array as well until the size of
the sub-array reduces to zero.
3. Graph traversal:-
Graph traversal is a technique used for a searching vertex in a
graph. The graph traversal is also used to decide the order of
vertices is visited in the search process. A graph traversal finds the
edges to be used in the search process without creating loops. That
means using graph traversal we visit all the vertices of the graph
without getting into looping path. There are two graph traversal
techniques and they are as follows.
6. Vector space:-
Consider a set S with a binary operation ⊞. Let F be a field with +
and · denoting, respectively, the addition and multiplication
operations. A multiplication operation, denoted by *, is also defined
between elements in F and those in S. This operation assigns to each
ordered pair (𝛼, s), where a is in F and s in S, a unique element
denoted by 𝛼 * s of S. The set S is a vector space over F if the
following postulates hold:
S is an abelian group under ⊞.
For any elements 𝛼 and 𝛽 in F, and any elements s1 and s2 in S
𝛼 ∗(s1 * s2)= (𝛼*s1) ⊞ ( 𝛼*s2) and (𝛼+𝛽)*s1 = (𝛼*s1)( 𝛽*s1).
For any elements 𝛼 and 𝛽 in F and any element s in S,
(𝛼.𝛽)*s= 𝛼*(𝛽 ∗ 𝑠)
For any element s in S, 1 * s = s, where 1 is the multiplicative
identity in F.
8. Linear Combination:-
If an element s in 5 is expressible as s=( 𝛼1 *s1) ⊞( 𝛼2 *s2) ⊞…⊞
( 𝛼j *sj) where si's are vectors and ai's are scalars, then s is said to be a
linear combination of s1, s2,...,sj.
9. Linear Independence:-
Vectors s1,s2,... ,sn are said to be linearly independent if no vector
in this set is expressible as a linear combination of the remaining
vectors in the set.
11.Dimension:-
The dimension of the vector space S, denoted as dim(S), is the
number of vectors in a basis of S.
12.Subspace:-
If S' is a subset of the vector space S over F, then S' is a subspace of
S if S' is also a vector space over F.
13.Direct Sum:-
The direct sum S1 * S2 of two subspaces S1 and S2 of S is the set of
all vectors of the form si⊞sj , where si is in S1 and sj is in S2. It can be
shown that S1⊞S2 is also a subspace, and that its dimension is given
by dim(S1⊞S2) = dim(S1) + dim(S2) – dim(S1∩S2).
1. Spanning tree:-
A tree T is said to be a spanning tree of a connected graph G if T is
a subgraph of G and T contains all vertices of G.
3. Fundamental circuits:-
These contain exactly one chord and this chord is not present in
any other fundamental circuit.
4. Fundamental cutsets:-
These contain exactly one branch and this branch is not
present in any other fundamental cutsets.
5. Cutset:-
In a connected graph G, a cut-set is a set of edges† whose removal
from G leaves G disconnected, provided removal of no proper subset
of these edges disconnects G.
A cut-set as a minimal cut-set, a proper cut-set, or a simple cutset.
Sometimes a cut-set is also called a cocycle.
6. Edge connectivity:-
Edge connectivity is defined as minimum number of edges whose
removal reduces of the graph by one.
7. Vertex connectivity:-
Vertex connectivity is defined as minimum number of vertices
whose removal from graph leaves the remaining graph disconnected.
8. Separable Graph:-
A connected graph is said to be separable if its vertex connectivity
is one. All other connected graphs are called nonseparable.
10.Network flow:-
A simple connected weighted digraph is called a network flow.
11.capacity of cut-set:-
The capacity of cut-set S in a weighted connected graph G (in
which the weight of each edge represents its flow capacity) is defined
as the sum of the weights of all the edges in S.
12.1-isomorphic:-
Two graphs G1 and G2 are said to be 1-isomorphic if they become
isomorphic to each other under repeated application of the following
operation.
Operation 1: “Split” a cut-vertex into two vertices to produce two
disjoint subgraphs.
From this definition it is apparent that two nonseparable graphs are
1-isomorphic if and only if they are isomorphic.
13.2-isomorphic:-
Two graphs are said to be 2-isomorphic if they become isomorphic
after undergoing operation 1 or operation 2, or both operations any
number of times.
Operation 1: “Split” a cut-vertex into two vertices to produce two
disjoint subgraphs.
Operation 2: “Split” the vertex x into x1 and x2 and the vertex y into
y1 and y2 such that G is split into g1 and 𝑔 . Let vertices x1 and y1 go
with g1 and x2 and y2 with 𝑔 . Now rejoin the graphs g1 and by 𝑔
merging x1 with y2 and x2 with y1.
14.Rank:-
The rank of the undirected graph is defined by r = n-k where n is
the number of vertices in the given graph and k is the number of
components of a graph.
1. Incidence matrix:-
Let G be a graph with n vertices, e edges, and no self-loops.
Define an n by e matrix A = [aij], whose n rows correspond to
the n vertices and the e columns correspond to the e edges, as
follows:
The matrix element
aij = 1, if jth edge ej is incident on ith vertex vi,
aij= 0, otherwise.
Such a matrix A is called the vertex-edge incidence matrix, or
simply incidence matrix. Matrix A for a graph G is sometimes
also written as A(G).
2. Binary matrix:-
The incidence matrix contains only two elements, 0 and 1.
Such a matrix is called a binary matrix or a (0, 1)-matrix.
3. Submatrix:-
Let g be a subgraph of a graph G, and let A(g) and A(G) be
the incidence matrices of g and G, respectively. Clearly, A(g) is a
submatrix of A(G) (possibly with rows or columns permuted). In
fact, there is a one-to-one correspondence between each n by k
submatrix of A(G) and a subgraph of G with k edges, k being
any positive integer less than e and n being the number of
vertices in G.
4. Circuit matrix:-
Let the number of different circuits in a graph G be q and the
number of edges in G be e. Then a circuit matrix B = [bij] of G is
a q by e, (0, 1)-matrix defined as follows:
bij = 1, if ith circuit includes jth edge, and
bij = 0, otherwise.
7. Path matrix:-
A path matrix is defined for a specific pair of vertices in a
graph, say (x, y), and is written as P(x,y). The rows in P(x, y)
correspond to different paths between vertices x and y, and the
columns correspond to the edges in G. That is, the path matrix
for (x, y) vertices is P(x, y) = [pij], where
pij = 1, if jth edge lies in ith path, and
pij = 0, otherwise.
8. Adjacency matrix:-
The adjacency matrix of a graph G with n vertices and no
parallel edges is an n by n symmetric binary matrix X = [xij]
defined over the ring of integers such that xij = 1, if there is an
edge between ith and jth vertices, and xij= 0, if there is no edge
between them.