Graph theory Flashcards

(47 cards)

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
How do we define a simply labeled directed simple graph for a set of node labels K and edge labels [A with missing stripe]?
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
How do we define an edge-labeled directed multigraph for a set of edge labels [A with missing stripe]?
G = (VG, EG, vertG, lambdaG) with v vertices, E edges, vert assigns pair of vertices to edges and lambda assigns labels to edges.
27
How do we define a multi-labeled directed multigraph for a set of node labels K and edge labels [A with missing stripe]?
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
Let G and H be graphs. When is H a subgraph of G?
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
trivial path
When the two nodes connected by a path are equal.
30
When are two graphs isomorphic?
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
What does the thesis reading mean when it talks about graphs up to isomorphism?
abstract graphs
32
sentence meaning
the meaning inherent to the sentence itself
33
speaker meaning
the meaning the speaker intends to convey
34
Signature (ranked alphabet)
a pair (Σ, ar) where Σ is a finite set and ar is a mapping from Σ to the natural numbers N.
35
How do we denote the arity of a symbol f in Σ?
ar(f)
36
How do we denote the set of symbols of arity n?
Σn
37
What does an algebra A consist of?
A signature Σ and a set of object D called the domain.
38
term
trees of symbols
39
When is a term t in T(Σ, X) linear?
If each variable occurs at most once in t.
40
s-graphs
graphs with special, additional node labels called sources.
41
What is the purpose of sources in s-graphs?
they mark the nodes where the HR algebra can 'glue' graphs together.
42
What does G = H || K mean in HR algebra?
G is the result of merging graphs H and K.
43
When is a set of L of ground terms recognizable?
If L = L(A) for some tree automaton A.
44
Define a finite tree automaton over a signature Σ:
a tuple A = (Q, Σ, Qf, ∆) with Q the set of states, Qf the set of final states and ∆ the set of transition rules.
45
What do tree automata over Σ run on?
ground terms over Σ.
46
When do we call a state q in Q accessible?
If there is a ground term t in T (Σ) such that
47