Graph theory Flashcards

1
Q

What is the fundamental characteristic of non-linear structures?

A

Their data doesn’t follow an obvious numerical order.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a tree defined by?

A

A root node that may connect to other nodes, stemming from one specific place.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a binary search tree?

A

A tree that can only ever have two links to two nodes at any given time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do trees differ from graphs in terms of node connections?

A

Trees can only flow in one direction and have one-way connections.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a key characteristic of graphs compared to trees?

A

Graphs do not have a concept of a ‘root’ node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a singleton graph?

A

A graph with just one node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the two types of graphs commonly recognized?

A
  • Directed graphs
  • Undirected graphs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What do edges in a graph represent?

A

Connections between nodes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the two types of edges in graphs?

A
  • Directed edges
  • Undirected edges
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What defines a directed edge?

A

It allows travel in only one specific direction between two nodes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do undirected edges differ from directed edges?

A

Undirected edges allow travel in both directions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the mathematical representation of a graph?

A

G = (V, E)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What do V and E represent in the context of a graph?

A
  • V: set of vertices
  • E: set of edges
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why is the set of vertices unordered in a graph?

A

There is no hierarchy of nodes in a graph.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What form do edge objects take in an undirected graph?

A

They are unordered pairs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

True or False: A tree can have loops or cyclical links.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

id ==

A

the identity function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the domain of f: A -> B?

A

D(f) = A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is the image of f: A -> B?

20
Q

What does f|A mean?

A

the function f restricted to set A (subset of domain D(f))

21
Q

Suppose functions f and g where the image of g is in the domain of f. What is the concatenation f o g?

A

(fog)(x) = f(g(x))

22
Q

When is the union of a function f and g defined?

A

if f and g agree where their domains overlap, thus mathematically:
if for all x in the intersection of D(f) and D(g), it holds that f(x) = g(x).

23
Q

How do we denote the set of all sequences over an alphabet SIGMA?

24
Q

How do we denote the empty sequence?

25
Q

How do we define a simply labeled directed simple graph for a set of node labels K and edge labels [A with missing stripe]?

A

G = (VG, EG, KG, lambdaG)
with VG the set of vertices, EG the set of edges, and KG and lambdaG the node and edge labeling functions.

26
Q

How do we define an edge-labeled directed multigraph for a set of edge labels [A with missing stripe]?

A

G = (VG, EG, vertG, lambdaG)
with v vertices, E edges, vert assigns pair of vertices to edges and lambda assigns labels to edges.

27
Q

How do we define a multi-labeled directed multigraph for a set of node labels K and edge labels [A with missing stripe]?

A

G = (VG, EG, vertG, KG, lambdaG)
with V the vertices, E the edges, vert assigning two nodes to each edge, lambda labeling the edges.

28
Q

Let G and H be graphs. When is H a subgraph of G?

A

if VH is a subset of VG, EH is a subset of EG and vertH (e) = vertG (e) and lambdaH (e) = lambdaG (e) for all e in EH.

29
Q

trivial path

A

When the two nodes connected by a path are equal.

30
Q

When are two graphs isomorphic?

A

When the nodes of one graph can be mapped one-on-one to the nodes of the other graph, same for the edges. Labels dont have to be the same.

31
Q

What does the thesis reading mean when it talks about graphs up to isomorphism?

A

abstract graphs

32
Q

sentence meaning

A

the meaning inherent to the sentence itself

33
Q

speaker meaning

A

the meaning the speaker intends to convey

34
Q

Signature (ranked alphabet)

A

a pair (Σ, ar) where Σ is a finite set and ar is a mapping from Σ to the natural numbers N.

35
Q

How do we denote the arity of a symbol f in Σ?

36
Q

How do we denote the set of symbols of arity n?

37
Q

What does an algebra A consist of?

A

A signature Σ and a set of object D called the domain.

38
Q

term

A

trees of symbols

39
Q

When is a term t in T(Σ, X) linear?

A

If each variable occurs at most once in t.

40
Q

s-graphs

A

graphs with special, additional node labels called sources.

41
Q

What is the purpose of sources in s-graphs?

A

they mark the nodes where the HR algebra can ‘glue’ graphs together.

42
Q

What does G = H || K mean in HR algebra?

A

G is the result of merging graphs H and K.

43
Q

When is a set of L of ground terms recognizable?

A

If L = L(A) for some tree automaton A.

44
Q

Define a finite tree automaton over a signature Σ:

A

a tuple A = (Q, Σ, Qf, ∆)
with Q the set of states, Qf the set of final states and ∆ the set of transition rules.

45
Q

What do tree automata over Σ run on?

A

ground terms over Σ.

46
Q

When do we call a state q in Q accessible?

A

If there is a ground term t in T (Σ) such that