graphs

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/55

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:11 PM on 3/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

56 Terms

1
New cards

graph defintion

pair (v, e) where v is a set of vertices and e is a set of edges

2
New cards

each edge is associated with how many verticies

two which are the endpoints of the edge

3
New cards

weighted graphs provide what

distnace between vertices as well as edges

4
New cards

directed edge

ordered pair of vertices (u, v) where u is origin and v is destination

5
New cards

undirected edge

unordered pair of vertices (u, v)

6
New cards

directed graph

set of vetices v and set of directed edges e

7
New cards

undirected graph

set of not directionally oriented edges (no arrows)

8
New cards

applications of graphs

electronic circuits, transportation networks, computer networks, databases

9
New cards

end vertices or endpoints of an edge

u and v are the endpoints of a

10
New cards

edges incident on a vertex

a, d, and b are incident on v

11
New cards

adjacent vertices

u and v are adjacent

12
New cards

degree of a vertex

x has 5

<p>x has 5 </p>
13
New cards

parallel edges

knowt flashcard image
14
New cards

self-loop

knowt flashcard image
15
New cards

when is a graph connected

if for any two vertices there is a path from one vertex to another

16
New cards

when is a graph disconnected

it its not connected

17
New cards

when does a directed path of length n exist if a directed graph

if and only if there is a sequence of vertices

18
New cards

simple path

all vertices in path are distinct

19
New cards

cycle in directed graph

directed path of the length at least 1 which starts and temrinates at the same vertex

20
New cards

self-lopp has a cycle of length what

1

21
New cards

outdegree

number of vertices adjacent to it or the number of edges leaving the vertex

22
New cards

indegree

number of edges entering the vertex

23
New cards

sink vertex

vertex with outdegree ero

24
New cards

source

vertex with indegree zero

25
New cards

acyclic graph

graph without cycles

26
New cards

strongly connected diagraph

for any two vertices I and J in

the graph there are directed paths from I to J and from J to I.

<p>for any two vertices I and J in</p><p>the graph there are directed paths from I to J and from J to I.</p>
27
New cards

wealky connedted/semi-connected

or any two

vertices I and J there is a directed path from I to J or from J to I.

<p>or any two</p><p>vertices I and J there is a directed path from I to J or from J to I.</p>
28
New cards

simple grpah

no self-lopps and multiple edges

29
New cards

if undirected graph has m edges then the max number of edges is

each edge is counted twize

30
New cards

if undirected graph has n vertices and m edge sthen

m <= n(n-1)/2

31
New cards

if undirected graph with n verticies and m edges is connected then m

m ≥ n − 1

32
New cards

if undirected graph with n verticies and m edges is a tree then m

m = n − 1

33
New cards

if undirected graph with n verticies and m edges is a forest then m

m ≤ n − 1

34
New cards

if directed graph with edges then

each edge contributes once to indegree and once to outdegree of a given vertex

<p>each edge contributes once to indegree and once to outdegree of a given vertex </p>
35
New cards

if a directed graph with n vertices and m edges then m

m ≤ n(n − 1). every edge in an undirected graph can be replaced by two edges in a correspoinding directed grpah

36
New cards

depth-first search

all of a vertex descents are processed ebfore moving to an adjacent vertex

37
New cards

breadth first search

all of the adjacent vertices fo a vertex are processed before processing the descendants of the vertex

38
New cards

common representations of a graph

adjacent amtrix and adjacent list

39
New cards

when is a vertex v adjacent to u

if there is and edge from u to v

40
New cards

what does a vertex object contain

element, reference to position in vertex sequence

41
New cards

edge object

element, origin: vertex object, destination: vertex object, reference to position in edge sequence

42
New cards

vertex sequence

sequence of vertex objects

43
New cards

edge sequence

sequence of edge objects

44
New cards
45
New cards

incidence sequence for each vertex

sequence of references to edge objects of incident edges

46
New cards

augmented edge

objects references to associated positions in incidence sequences of end vertices

47
New cards

edge list structure

  • augmented vertex objects

  • integer key(index) associated with vertex

  • 2d array adjacency array

  • reference to edge object for adjacent vertices. null for non-adjacent vertices

48
New cards

efficiency of bfs if graph represented using adjacencymatrix

O(|V |^2)

49
New cards

efficiency of bfs if graph represented using adjacency list

o(|V| + |E|)

50
New cards

efficiency of dfs if graph represented using adjacencymatrix

O(|V |^2)

51
New cards

efficiency of dfs if graph represented using adjacency list

o(|V| + |E|)

52
New cards

weighted graph or network

graph whose edges are weighted

meaning of weights depends on the applications

53
New cards

weight of a path of length n from the vertex i to j

the sum of weights of all consecutive weights of edges on this path

54
New cards

minimum spnaning tree

tree that contains all the vertices in the grpah and total weight of edges is the minimum

55
New cards
56
New cards

Explore top notes

note
Structure  of an atom
Updated 1181d ago
0.0(0)
note
APUSH Chapters 1-4 Notes
Updated 433d ago
0.0(0)
note
English Poetry Unit Test
Updated 1277d ago
0.0(0)
note
Characters for Trojan War
Updated 1203d ago
0.0(0)
note
lokal_at_global_na_demand
Updated 414d ago
0.0(0)
note
Structure  of an atom
Updated 1181d ago
0.0(0)
note
APUSH Chapters 1-4 Notes
Updated 433d ago
0.0(0)
note
English Poetry Unit Test
Updated 1277d ago
0.0(0)
note
Characters for Trojan War
Updated 1203d ago
0.0(0)
note
lokal_at_global_na_demand
Updated 414d ago
0.0(0)

Explore top flashcards

flashcards
The Cell (A2.2)
85
Updated 186d ago
0.0(0)
flashcards
It's just a game
114
Updated 477d ago
0.0(0)
flashcards
Amendments
27
Updated 1294d ago
0.0(0)
flashcards
Civil war vocab
35
Updated 1209d ago
0.0(0)
flashcards
Egzamin Angielski wszystko
565
Updated 1168d ago
0.0(0)
flashcards
mechanical systems study guide
43
Updated 194d ago
0.0(0)
flashcards
The Cell (A2.2)
85
Updated 186d ago
0.0(0)
flashcards
It's just a game
114
Updated 477d ago
0.0(0)
flashcards
Amendments
27
Updated 1294d ago
0.0(0)
flashcards
Civil war vocab
35
Updated 1209d ago
0.0(0)
flashcards
Egzamin Angielski wszystko
565
Updated 1168d ago
0.0(0)
flashcards
mechanical systems study guide
43
Updated 194d ago
0.0(0)