Strings and Sets 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

A ⊆ B (subset)

A

x ∈ A ⇒ x ∈ B

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

A ∈ B (element)

A

A ∈ B

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

A ∪ B (union)

A

x ∈ A or x ∈ B

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

A ∩ B (and)

A

x ∈ A and x ∈ B

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

A \ B (difference)

A

x ∈ A and x ∉ B

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

A = B

A

A ⊆ B and B ⊆ A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
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