What is a set?
collection of distinct elements
is it an ordered collection?
does not have to be ordered
that's a pretty abstract concept It doesn't have to be numbers or ordered, just a group of "elements" Like that set of all coffee cups in your house is technically a set.
{red, green, blue}
only list common elements once
i.e. the set of all people named mathwiz707 on open-study contains one element.
can you have redundant elements in the set?
only list once ... you can also have a null set {}
alright. now I know enough about sets :D
the cardinality of the set is any element of the whole nimbers
1 last question... how would you implement a set class in C?
C++*
I'm not a programmer, are you mathwiz?
cmon I have to get this assignment done :(
sorry I don't know C++
I'll just use python; there a set object is just set()
Join our real-time social learning platform and learn together with your friends!