Lecture 3 - Graphs and Intro to Finite Automata Flashcards

1
Q

What is an undirected graph?

A

It is a set of points with lines connecting some of the points. The points are nodes and the lines are edges

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

What is the degree of a node?

A

This is the number of edges at the node

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

What is a path?

A

A path is a sequence of nodes connected by edges

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

What is a connected graph?

A

A graph is connected if every 2 nodes have a path between them

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

What is a cycle?

A

A cycle is a path that starts and ends at the same node.

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

What is a simple cycle?

A

A simple cycle is a cycle that contains at least 3 nodes and repeats only the first and last node

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

What is a directed graph?

A

A directed graph is one that has arrows instead of lines

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

What is the outdegree?

A

An outdegree is the number of arrows pointing from a single node.

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

What is the indegree?

A

The indegree is the number of arrows pointing to a node.

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

Define a finite automata

A
It is a 5 tuple (Q, ∑, ᶁ, qo, F).
Q is the states
∑ is the alphabet
ᶁ is the transition function
qo is the start states
F is the accept states
How well did you know this?
1
Not at all
2
3
4
5
Perfectly