SLR7 Finite State Machines Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a finite state machine?

A

A model of computation, used to design computer programs and sequential logic circuits

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

What is it a model of?

A

An abstract model of how a machine reacts to external events

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

How many states can a finite state machine be in at one time?

A

Can only be in one of a finite number of states at any one time, which changes based on trigger conditions

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

What do you use to visualise FSMS?

A

State transition diagrams

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

How is a state represented?

A

A circle with text in

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

How is a start state represented?

A

A circle with an arrow coming into it

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

How do you represent an accept state?

A

Circle inside circle

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

What are tranisiton conditions?

A

Each transition must have a transition condition
Structured as ‘transition/input’ which causes the state following the direction of the transition arrow

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

What is a mealy machine?

A

It is an FSM with an output

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

What is a mealy machines output determined by?

A

its current state and its current input

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

What are regular expressions?

A

An equivalent way of defining a regular language

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

When is a language considered regular?

A

When it can be represented by a regular expression
When a FSM will accept the language

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

What are some things you might want to use FSM to model?

A
  • digital systems
  • compilers
  • network protocols
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is finite state automation?

A
  • an FSM that has no output
  • has a start state and a set of accept states which define whether it accepts or rejects finite strings or symbols
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is deterministic FSM automation?

A

if the next state is uniquely determined by the input when in a specific state

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

What happens when data input into an FSM is valid?

A

the FSM will terminate in an accepting state

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

What is a set?

A

an abstract data type which contains unordered unique values
sets can contains other sets

18
Q

What is set comprehension?

A

A different way of creating a set - rather than specifying all of the items individually, we can select what we want from a more general set

19
Q

What does | mean?

A

it means ‘such that’

20
Q

What does e mean?

A

means ‘is drawn from’

21
Q

What does ^ mean?

A

means ‘and’

22
Q

What does a simple set comprehension look like?

A

A = { x | xeN ^ x>1}

23
Q

How does a set comprehension look?

A

S = {Instruction | x e Defined Set ^ x satisfies condition}

24
Q

How do you represent an empty set?

A

{} or zero with a cross through it

25
Q

What is compact set representation?

A

an efficient way of describing sets

26
Q

What are the most common symbols in regular expression?

A

= vertical bar separates alternatives
? = question mark shows that there are zero or one of the preceding elements
* = asterisk indicates that there are zero or more of the preceding elements
+ = a subscript plus indicates that there are one or more of the preceding element

27
Q

What could (Edward)(Eddie)(Ed) represent?

A

Edward, Eddie, Ed

28
Q

What could (D|d)is(c|k) represent?

A

“Disc”, “disc”, “Disc”, “Disk”

29
Q

What could Dialg(ue)?

A

Dialog, Dialogue

30
Q

What does ab* represent?

A

a, ab, abb, abbb

31
Q

What does a*b represent?

A

ab, aab, aaab

32
Q

What can regular expression be used for?

A
  • to match patterns in text files (e.g., when searching for a particular word within a program)
  • by compilers to recognise the correct form of a variable name or the syntax of a statement
  • by programmers to validate user input (e.g., to check that a postcode or an email address is in the correct form)
33
Q

What are the main set definitions?

A
  • A = {N} = natural numbers
    • B = {Z} = integer numbers
    • C = {Q} = rational numbers
    • D = {R} = real numbers
      … Means and so on
34
Q

What is a finite set?

A

is one whose elements can be counted off by natural numbers up to a particular number

35
Q

What is a infinite set?

A
  • can be countable or uncountable
  • the difference between natural and real number, natural numbers are countably infinite
36
Q

What are countably finite sets?

A

the number of elements in the set

37
Q

What is the cardinality of a finite set?

A
38
Q

What is the Cartesian product of sets?

A
  • written as A x B
  • spoken as A “cross” B
  • is a set of all ordered pairs (a, b) where a is a member of A and b is a member of B
39
Q

Define countable?

A

a set which can be counted off against a subset of the natural numbers e.g., all of the natural numbers up to a fixed limit

40
Q
A