Set Flashcards
1
Q
Definition
A
it’s a collection of unordered objects
2
Q
properties of a set?
A
no index , no key , no sequence , no duplicates
3
Q
benefits of a set?
A
no duplicates , very fast lookup
4
Q
how to store a set?
A
using a hash table but instead a key and a value it’s an index with a value like just storing 1 and the object itself
5
Q
is a set used for retrieval?
A
no it’s used to check for membership like do i have this product in my list of products