Chapter 8 (Disjoint Set ADT) Flashcards

1
Q

What is used to mean an equivalence relation?

A

~

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

T/F Electrical connectivity is an equivalence relation

A

T

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

What are the two basic operations of the disjoint set?

A

Union and find

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

T/F Travelling between cities is not an equivalence relation

A

F, it is

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

We start with a list of ____ sets, each with ____ element, and no relation between the elements

A

N, one

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

T/F <= is an equivalence relation

A

F, it fails the symmetric property

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

T/F In dynamic equivalence, the operations on the sets involve comparing their relative values

A

F, it does not involve comparing their relative values

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

What can we use to represent a set?

A

Tree

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

T/F In dynamic equivalence, actual data items would need to be mapped to these values for an application to use them

A

T

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

T/F Each set is stored as a separate tree

A

T

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

So, to know if a~b, we need to know if a and b….

A

belong to the same equivalence class

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

With dynamic equivalence, what can be used to check for equivalence in constant time?

A

2D array of Boolean values

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

What are the three properties of an equivalence relation?

A

Reflexive Symmetric Transitive

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

T/F With dynamic equivalence, the data may come to use implicitly

A

T

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

What does the union operation do?

A

Merges two equivalence classes into one

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

When all sets are unique, they are ____

A

Disjoint

17
Q

What is a collection of trees called?

A

Forest

18
Q

Is a tree the only way we can represent a set?

A

No

19
Q

T/F In dynamic equivalence, the name returned is somewhat arbitrary

A

T

20
Q

~ is used to mean a ____

A

Equivalence relation

21
Q

What two operations do we define in dynamic equivalence?

A

Union and Find

22
Q

What does the find operation do?

A

Returns the name of the set containing a given element

23
Q

T/F The equivalence class of ‘a’ partitions ‘S’ into two sets, the set that relates to ‘a’ and the set that does not

A

T

24
Q

T/F In dynamic equivalence, an array could be used by letting the index represent the element, and the value represent the set it belongs to (its name)

A

T