Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

summary of BCA data structures with key notes

Rating
-
Sold
-
Pages
8
Uploaded on
26-02-2023
Written in
2022/2023

Easy to understand and in short, helpful for exams. last moment notes for exam, with examples and key points

Institution
Course

Content preview

Graph
A graph can be defined as group of vertices and edges that are used to connect these
vertices. A graph can be seen as a cyclic tree

Definitions: Graph, Vertices, Edges

• Define a graph G = (V, E) by defining a pair of sets:
1. V = a set of vertices
2. E = a set of edges



• Edges:
1. Each edge is defined by a pair of vertices
2. An edge connects the vertices that define it
3. In some cases, the vertices can be the same



• Vertices:
1. Vertices also called nodes
2. Denote vertices with labels



• Representation:
1. Represent vertices with circles, containing a label
2. Represent edges with lines between circles



• Example:
1. V = {A,B,C,D}
2. E = {(A,B),(A,C),(A,D),(B,D),(C,D)}

, Graph Terminology
1. Digraph or Directed graph
2. Undirected graph
3. Mixed graph
4. Weighted graph
5. Path
6. Loop or selfloop
7. Cycle or cyclic graph
8. Acyclic graph
9. Parallel edge
10. Connectec graph

Path
A path can be defined as the sequence of nodes that are followed in order to reach
some terminal node V from the initial node U.

Cycle
A cycle can be defined as the path which has no repeated edges or vertices except the
first and last vertices.

Connected Graph
A connected graph is the one in which some path exists between every two vertices
(u, v) in V. There are no isolated nodes in connected graph.

Weighted Graph
In a weighted graph, each edge is assigned with some data such as length or weight.
The weight of an edge e can be given as w(e) which must be a positive (+) value
indicating the cost of traversing the edge.

Digraph
A digraph is a directed graph in which each edge of the graph is associated with some
direction and the traversing can be done only in the specified direction.

Written for

Institution
Course

Document information

Uploaded on
February 26, 2023
Number of pages
8
Written in
2022/2023
Type
SUMMARY

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
yashonandan9480

Get to know the seller

Seller avatar
yashonandan9480 bengaluru city university
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
5
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions