-
Notifications
You must be signed in to change notification settings - Fork 0
/
textbook.tex
275 lines (192 loc) · 7.47 KB
/
textbook.tex
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{graphicx}
%\usepackage{epsfig}
%\usepackage{algorithm}
%\usepackage{amsmath}
%\usepackage{amsfonts}
%\usepackage{psfrag}
%\usepackage[dvips]{color}
%\usepackage{pstricks,pst-node,pst-plot,pst-tree}
%\usepackage{hyperref}
\title{CSCI 104: Data Structures and Object-Oriented Design}
\author{David Kempe}
\input{declarations}
\begin{document}
\begin{titlepage}
\maketitle
\end{titlepage}
\chapter*{Preface}
\label{chapter:preface}
\input{chapters/preface}
\tableofcontents
\chapter{Overview}
\label{chapter:overview}
\input{chapters/overview}
%\input{overview-problems}
\chapter{Memory and Its Allocation}
\label{chapter:dynamic-memory}
\input{chapters/dynamic-memory}
%\input{dynamic-memory-problems}
\chapter{Strings and Streams: A Brief Review}
\label{chap:strings-streams}
[Note: This chapter covers material of about 0.25 lectures.]
%\input{chapters/strings-streams}
% \input{strings-streams-problems}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Recursion}
\label{chap:recursion}
[Note: this chapter covers material of about 1.5 lectures.]
%\input{chapters/recursion}
% \input{recursion-problems}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Linked Lists}
\label{chap:linked-lists}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/linked-lists}
% \input{linked-lists-problems}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Abstract Data Types}
\label{chap:ADTs}
[Note: this chapter covers material of about 0.5 lectures.]
%\input{chapters/abstract-data-types}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Classes and Objects}
\label{chap:classes}
[Note: this chapter covers material of about 0.5 lectures.]
%\input{chapters/classes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Analysis of Running Time}
\label{chap:running-time}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/runtime}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Array Lists}
\label{chap:arraylists}
[Note: this chapter covers material of about 0.5 lectures.]
%\input{chapters/array-lists}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Amortized Running Time}
\label{chap:amortized}
[Note: this chapter covers material of about 0.5 lectures.]
%\input{chapters/amortized-runtime}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Stacks and Queues}
\label{chap:stacksqueues}
[Note: this chapter covers material of about 0.75 lectures.]
% need to add number for Abstruse Goose comic
%\input{chapters/stacks-queues}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Operator Overloading and Copy Constructors}
\label{chap:overloading}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/overloading}
% edited up to here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Inheritance and Polymorphism}
\label{chap:inheritance}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/inheritance-polymorphism}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{C++ Standard Template Library}
\label{chap:STL}
[Note: this chapter covers material of about 0.5 lectures.]
%\input{chapters/standard-template-library}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Error Handling and Exceptions}
\label{chap:exceptions}
[Note: this chapter covers material of about 0.5 lectures.]
%\input{chapters/exceptions}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Searching Lists and Keeping them Sorted}
\label{chap:searching}
[Note: this chapter covers material of about 0.5 lectures.]
%\input{chapters/searching}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Sorting Algorithms}
\label{chap:sorting}
[Note: this chapter covers material of about 2 lectures.]
%\input{chapters/sorting}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Templates}
\label{chap:templates}
[Note: this chapter covers material of about 0.5 lectures.]
%\input{chapters/templates}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Graphs: An Introduction}
\label{chap:graph-basics}
[Note: this chapter covers material of about 2 lectures.]
%\input{chapters/graphs}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Trees and Tree Search}
\label{chap:trees}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/trees}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Priority Queues and Heaps}
\label{chap:priority-queues}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/priority-queues-heaps}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Dijkstra's Algorithm and $A^*$ Search}
\label{chap:dijkstra}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/dijkstras-algorithm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{2--3 Trees}
\label{chap:B-trees}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/b-trees}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{General B Trees and Red-Black Trees}
\label{chap:red-black-trees}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/red-black-trees}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{AVL Trees}
\label{chap:AVL-trees}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/avl-trees}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Tries and Suffix Trees}
\label{chap:tries}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/tries}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Hashtables}
\label{chap:hashing}
[Note: this chapter covers material of about 2.5 lectures.]
%\input{chapters/hashing}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Log-Structured Merge Trees}
\label{chap:LSM}
[Note: this chapter covers material of about 0.5 lectures.]
%\input{chapters/log-structured-merge-trees}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Splay Trees}
\label{chap:splay-trees}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/splay-trees}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Skip Lists (*)}
\label{chap:skip-lists}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/skip-lists}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Comparison of Map Implementations}
\label{sec:map-comparison}
%\input{chapters/map-comparison}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Iterators (*)}
\label{chap:iterators}
[Note: this chapter covers material of about 1 lecture.]
%\input{chapters/iterators}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Design Patterns (*)}
\label{chap:design-patterns}
[Note: this chapter covers material of about 0.5 lectures.]
%\input{chapters/design-patterns}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}