Section 9 - Regular languages Flashcards

1
Q

what does * mean in regular expressions

A

indicates there are zero or more of the preceeding element

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

what does + mean in regular expressions

A

indicates that there is one or more of the preeceding element

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

what does ? mean in regular expressions

A

indicates there are zero or one of the preceding element

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

what is a Turing machine

A
  • a theoretical machine that can simulate any computer algorithm
  • consists of an infinetly long strip of tape divided into quares and a read/write head
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is a universal turing machine

A

a theoretical machine that can carry out any computable sequence

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

what is a meta language

A

the rules of programming languages must be defined, in order for them to be translated into machine code

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

what is backus-naur form (bnf)

A

a meta language that can define contructs more succenctly than regular expressions

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

::=

A

‘is defined by’

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

<’…’>

A

a variable

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