-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsets.tex
More file actions
44 lines (20 loc) · 837 Bytes
/
sets.tex
File metadata and controls
44 lines (20 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
\chapter{Sets}
\label{chap-sets}
Sets programmed implementations of mathematical sets
\section{Operations}
We will use Venn diagrams to graphically demonstrate operates with two sets
\subsection{Adding an item to a Set}
Adding items to a set is fairly straightforward.
As we will see, adding to a set can be either $O(1)$ or $O(\log n)$ time, depending on the implementation
\subsection{Removing an item to a Set}
\subsection{Union}
In Java, this is the \texttt{addAll()} method.
\subsection{Intersection}
\subsection{Set Difference}
\subsection{Subset}
\section{Operation Analysis}
Most sets are implemented using a Hash Table.
\subsection{TreeSet Vs HashSet Vs Linked Hash Set}
\section{Sets and Problem Solving}
Sets are super efficient checklists.
\subsection{Checking for Uniqueness or Finding Duplicates}