Sets and Strings Flashcards

1
Q

Does order matter for substrings and subsets?

A

Order matters in substring but not subsets

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

How to calculate number of subset?

A

2^n where n is the length of the set

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

Does empty characters matter in strings?

A

No

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

Number of substring?

A

n(n+1)/2

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

Does order and repetition matter in sets?

A

No

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

Size of a set

A

A set has size n if it contains n different elements

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

Subsets (⊆)

A

Let U be a set. Then any collection of element of U is a subset of U

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

(∪)

A

The Union Let U and V be two sets. The the union of U and V is the set consisting of all elements of U and all strings of V. (Its like adding the two sets together)

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

(∩)

A

The intersection. Let X and Y be two sets. The intersection is X and Y is the collection of all elements which lie in both sets

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

The difference ()

A

Let L1, L2 be pair of sets. We define the difference of these two sets, written L1\L2 to be the collection of all elements that are in L1 and not in L2 (its like L1 - L2)

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

Equal sets

A

To show two sets equal, A has to be a subset of B and B has to be a subset of A

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

∣A∣

A

The size of A

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