17
Solution of System of Linear and Non Linear Equations Using Graph Theory Team Members: Amar Chand : 13112009 Deeksha Adlakha : 13112028

Graph theory

Embed Size (px)

Citation preview

Page 1: Graph theory

Solution of System of Linear and Non Linear Equations

Using Graph Theory

Team Members:Amar Chand : 13112009Deeksha Adlakha : 13112028

Page 2: Graph theory

What is Graph Theory?

Graph theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects.

V = {a, b, c, d, e}E = {ab, ac, bd, cd, de}

Page 3: Graph theory

Applications of Graph Theory

• Computer Science

• Electrical Engineering

• Chemical Science

• General

• Other

Page 4: Graph theory

Types of Graphs

Null Graph Trivial Graph

• a

Non-Directed GraphDirected Graph

Simple Graph

Page 5: Graph theory

Connected Graph Disconnected Graph

Regular Graph Complete Graph

Page 6: Graph theory

Laplacian matrix

A simple graph G with n vertices, its Laplacian matrix L is defined as :

L = D - Awhere D is the degree matrix A is the adjacency matrix of the graph.

The elements of  L are given by :

where Deg(Vi) is degree of the vertex i.

Li,j =

 

Page 7: Graph theory

Example :-

Page 8: Graph theory

Methods for solving a system of equations

Linear Equations: 1. Gaussian Elimination Method2. Gauss Jordan Elimination Method3. Gauss Seidel Method

Page 9: Graph theory

Non Linear Equations:1. Newton’s Method2. Secant Method

Page 10: Graph theory

Gaussian Elimination Method

Algorithm for solving system of linearequations (Ax=b) by bringing the augmented matrix to an upper triangular form.

Page 11: Graph theory

Example

Solve the following system of linear equations to obtain the values of x,y,z using Gaussian Elimination Method .

x – 3y +z = 42x – 8y + 8z = -2-6x + 3y – 15z = 9

Page 12: Graph theory

C++ Code

Page 13: Graph theory
Page 14: Graph theory
Page 15: Graph theory
Page 16: Graph theory
Page 17: Graph theory

THANKS!