Chapter 8 (Disjoint Set ADT) Flashcards
What is used to mean an equivalence relation?
~
T/F Electrical connectivity is an equivalence relation
T
What are the two basic operations of the disjoint set?
Union and find
T/F Travelling between cities is not an equivalence relation
F, it is
We start with a list of ____ sets, each with ____ element, and no relation between the elements
N, one
T/F <= is an equivalence relation
F, it fails the symmetric property
T/F In dynamic equivalence, the operations on the sets involve comparing their relative values
F, it does not involve comparing their relative values
What can we use to represent a set?
Tree
T/F In dynamic equivalence, actual data items would need to be mapped to these values for an application to use them
T
T/F Each set is stored as a separate tree
T
So, to know if a~b, we need to know if a and b….
belong to the same equivalence class
With dynamic equivalence, what can be used to check for equivalence in constant time?
2D array of Boolean values
What are the three properties of an equivalence relation?
Reflexive Symmetric Transitive
T/F With dynamic equivalence, the data may come to use implicitly
T
What does the union operation do?
Merges two equivalence classes into one