IB AI HL Graph Theory

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

1/58

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

59 Terms

1
New cards

A graph is

a set of vertices and edges

2
New cards

An edge is

two joined vertices

3
New cards

A weighted graph is

a graph that has a value on each edge

4
New cards

An adjacency table is organized

from -> to, from/to

5
New cards

A transition table is organized

to -> from, to/from

6
New cards

Adjacent vertices are

connected by an edge

7
New cards

An unweighted graph is

a graph with no values

8
New cards

A walk is

any sequence of connected vertices

9
New cards

The degree of a vertex is

the number of edges at a vertex

10
New cards

A connected graph is

a graph where all vertices are joined

11
New cards

An unconnected graph is

a graph where some vertices aren't joined

12
New cards

A subgraph is

a graph that is contained within the original graph

13
New cards

A directed graph is

where all edges have a direction

14
New cards

An in degree is

the number of edges arriving at a vertex

15
New cards

An out degree

the number of edges leaving at a vertex

16
New cards

An adjacency matrix

is an adjacency table in matrix form

17
New cards

A graph is a connected directed graph when

a walk can be constructed in one direction

18
New cards

A graph is a strongly connected directed graph when

a walk can be constructed in both directions for all vertices

19
New cards

A loop is

an edge that starts and finishes at the same vertex

20
New cards

A simple graph is

a graph with no loops or multiple edges

21
New cards

A multigraph is

a graph that contains a loop or multiple edges

22
New cards

A transition matrix is

a transition table in matrix form

23
New cards

A transition matrix shows

the probability of each edge being travelled upon

24
New cards

An adjacency matrix shows

the number of connections between vertices

25
New cards

What does a Minimum Spanning Tree look for?

best method to connect all vertices

26
New cards

What does the Chinese Postman Problem look for?

best method to visit all edges of the graph

27
New cards

What does the Travelling Salesman Problem look for?

best method to visit all the vertices

28
New cards

A tree is

a connected graph with no cycles

29
New cards

A spanning tree is

a subgraph which is a tree and connects all vertices

30
New cards

What is the first step in Kruskal's algorithm?

find the edge of smallest weight in the graph

31
New cards

What is the second step in Kruskal's algorithm?

add the edge of smallest weight that does not form a cycle

32
New cards

What is the first step of Prim's algorithm?

select any vertex and add the edge of least weight

33
New cards

What is the second step of Prim's algorithm?

add edge of least weight to the tree that does not already connect to a vertex in the tree

34
New cards

Are graphs created using Kruskal's algorithm guaranteed to be connected?

no

35
New cards

Are graphs created using Prim's algorithm guaranteed to be connected?

yes

36
New cards

A trail is

a walk that does not repeat any edges

37
New cards

A circuit is

a trail that starts and finishes at the same vertex

38
New cards

A Eulerian Trail is

a trail that uses all edges of a graph

39
New cards

A Eulerian circuit is

a circuit that uses all edges of the graph

40
New cards

Eulerian trails or circuits are both about

using all edges of a graph

41
New cards

What kind of degree are all vertices in a Eulerian circuit?

even

42
New cards

At which vertices do trails begin?

all vertices with odd degrees

43
New cards

Can you have a Eulerian trail if all vertices have an odd degree?

no

44
New cards

Can you have a Eulerian circuit if all vertices have an odd degree?

no

45
New cards

A path is

a walk that uses all vertices once

46
New cards

A cycle is

a path that begins and ends in the same place and does not pass through any vertex more than once

47
New cards

A Hamiltonian cycle is

a path that passes through all the vertices and returns to the starting point

48
New cards

A complete graph is

when each vertex is connected to every other vertex

49
New cards

What do you use to find the minimum spanning tree?

Kruskal's, Prim's

50
New cards

What do you use to solve the Chinese Postman Problem?

Kruskal's, Prim's

51
New cards

What do you use to solve the Travelling Salesman Problem?

Nearest Neighbor, Deleted Vertex

52
New cards

What is the first step of the Nearest Neighbor algorithm?

create a table of distances

53
New cards

What is the second step of the Nearest Neighbor algorithm?

use distance table to go to nearest unvisited vertex, then return home at the end

54
New cards

What is the first step of the Deleted Vertex algorithm?

choose a vertex and remove it and all its edges

55
New cards

What is the second step of the Deleted Vertex algorithm?

find the minimum spanning tree

56
New cards

What is the third step of the Deleted Vertex algorithm?

find lower bound

57
New cards

How do you find the lower bound in a Deleted Vertex algorithm?

(# of vertices) x (lowest weight edge)

58
New cards

What is the fourth step of the Deleted Vertex algorithm?

repeat with a different vertex and choose

59
New cards

A Hamiltonian cycle is about

using all vertices of a graph