4.4.2 - ToC (Maths for Regexs) Flashcards

1
Q

What is a regular expression

A

A special sequence of characters that can be used to find or match patterns in text

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

What is meant by a set

A

an unordered collection of values in
which each value occurs at most once.

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

Describe this set:
A = {x |x ∈ ℕ ∧ x ≥ 1 }

A

he set consisting of those objects x
such that x ∈ ℕ and x ≥ 1 is true.

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

How do you represents empty sets

A

{} or Ø

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

What does this symbol represent: |

A

Such that

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

What does this symbol mean: ∧

A

AND

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

What does this symbol mean: ∈

A

“is a member of”

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

Give an example of compact represntation of a set

A

{0^n1^n| n ≥ 1} = {01, 0011, 000111, 00001111,
… }

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

What is a set comprehension

A

Set comprehension is selecting the specific values we want from a more general set.

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

What is meant by a countable set and what are the 2 different types

A

A set that can be counted off against a subset of natural numbers

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

What is meant by a finite set

A

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

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

What is meant by the cardinality of a set

A

the number of elements within the set

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

What is meant by a countably infinite set

A

a set that can be
counted off by the natural numbers.

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

What is meant by the cartesian product of 2 sets

A

The set of all ordered pairs (a,b) where a is a member of set A and b is a member of set B

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

What is meant by a proper subset

A

Where all the elements of the contained set is contained within another set, and there is at least one element in the containing/larger set which is not contained in the subset.

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

Explain what this shows:
{0, 1 , 2 } ⊂ ℕ

A

⊂ means proper subset of
It also shows that ℕ contains everything in {0, 1, 2 } but
there is at least one element in ℕ that is not in
{0, 1, 2 }.

17
Q

What is meant by a subset

A

where all the elements of one set is contained within another set

18
Q

What i sthe distinguishing feature between proper and normal subset

A

For normal subsets both sets can be equal

19
Q

What is meant by a countable set

A

a set with the same cardinality as some subset of natural numbers.

20
Q

What does A U B mean

A

Union where you take all the numbers from both sets a maximum of once

21
Q

What does A n B mean

A

Intersection where you take all the members that both set have in common

22
Q

What does A - B or A\B mean

A

Differene where you take all of the elements in a that aren’t in B

23
Q

What is the set notation for A-B

A

A\B = {x : x ∈ A and x ∉ B}