1 Exams
The midterm exam will be held Monday November 9, 2026 5-6pm in Smith 120 (Lecture A) and Smith 205 (Lecture B). The final exam will be held Thursday December 17, 2026 12:30-2:20pm in BAG 131 and BAG 154 (we will tell you which room to go to).
1.1 Midterm Exam
The midterm exam will be held Monday November 9, 2026 5-6pm in Smith 120 (Lecture A) and Smith 205 (Lecture B).
- Lecture A: Smith 120
- Lecture B: Smith 205
You MUST go to the room for the Lecture you are REGISTERED for.
We will hold a review session on Friday November 6 during our regular lecture slots.
Lecture will NOT meet on Monday Nov 9.
1.1.1 26au Midterm Solution
1.1.2 Policies
- Bring a photo ID with you to the exam.
- Closed book, closed notes.
- No calculators, cell phones, or other electronic devices allowed.
- Writing after time has been called will result in a loss of points on your exam. Be sure to put your name on your paper first.
- You will be provided a math reference sheet during the exam.
1.1.3 Content
All material from the course from lecture 1 up to and including AVL trees is fair game. Hashing and sorting will NOT be on the midterm. Check the lecture calendar for links to all slides used in class, as well as readings for each topic. This includes:
- Abstract Data Types and Data structures:
- Their Definitions and Differences
- Examples
- Stacks and Queues:
- Array and Linked List implementations and running times
- ADT Operations
- Asymptotic Complexity:
- Definition of big-oh, big-omega, big-theta
- Identifying whether f(n) belongs to O(g(n)) (or big-omega, big-theta)
- Finding constants c and n0 to demonstrate this
- Identifying running times (best case and worst case) of example code
- Recurrence Relations:
- Examine recursive code and give a recurrence relation
- Given a recurrence relation, solve it to closed form
- Priority Queues:
- ADT operations (insert, findMin, deleteMin, increaseKey, decreaseKey, remove)
- The Heap data structure (including the heap property, complete tree, and buildHeap)
- Run-times for all the above, using the array representation described in lecture.
- Trees:
- Definitions of height, depth
- Preorder, Inorder, Postorder traversals of binary trees
- Dictionaries:
- ADT operations: Find, Insert, Delete
- Binary Search Trees: Definition, algorithms and running times of dictionary operations
- AVL Trees: Definition, algorithms and running times of dictionary operations (including the definition of rotations and when to do them). The delete operation for AVL Trees will NOT be covered.
Hashing and Sorting will NOT be covered on the 26au midterm.
Note that you may be required to write pseudocode, but it will be evaluated as an algorithm, not as valid Java (or whatever) code. You will NOT be tested on Java Generics.
1.1.4 Past Exams
Below we have posted several quarters’ midterm exams to help with your studying. Be advised that the question style, length, difficulty, and content may differ among quarters. Most notably, prior to autumn 2024 the course sometimes included two additional data structures on the midterm exam – Tries and B-Trees. Our hope is that these exams will be useful in your studying, but you should NOT take them as a guarantee of exactly what your exam will be like this quarter.
Overall, here is how I would recommend that you use these sample exams to prepare.
- First, study on your own without using any of the provided sample exams. To do this, review the exercises, lecture slides, and section materials. If there are things included in these that you find confusing or do not recall, seek clarification. This can be done by reviewing lecture recordings, talking with classmates, or attending office hours.
- Next, use the past exams below to evaluate your preparedness. Attempt some problems, then compare your answer against the solution provided. If they differ, try to diagnose whether your answer is equally valid, or else where you may have a misconception (you’re welcome to come to office hours for help!).
- Once you are confident with your ability to answer questions in the past exams, select a couple old exams to take as a simulation of the actual exam (Set aside a 50 minute block of time to take the exam from start to finish). Then trade exams with a friend so that they can compare your solutions to the answer key and give you feedback.
- Use this feedback to decide where to review.
Past Exams:
- CSE 332 25au Midterm, CSE 332 25au Midterm Solution - To be discussed during review session in lecture on Fri 11/06/2026
- CSE 332 25wi Midterm, CSE 332 25wi Midterm Solution
- CSE 332 23sp Midterm, CSE 332 23sp Midterm Solution
- CSE 332 23wi Midterm, CSE 332 23wi Midterm Solution
- CSE 332 22su Midterm, CSE 332 22su Midterm Solution
- CSE 332 19au Midterm, CSE 332 19au Midterm Solution
- CSE 332 19wi Midterm, CSE 332 19wi Midterm Solution
- CSE 332 18au Midterm, CSE 332 18au Midterm Solution
- CSE 332 18wi Midterm, CSE 332 18wi Midterm Solution
- CSE 332 17au Midterm, CSE 332 17au Midterm Solution
- CSE 332 16au Midterm, CSE 332 16au Midterm Solution
- CSE 332 15wi Midterm, CSE 332 15wi Midterm Solution
- CSE 332 14sp Midterm, CSE 332 14sp Midterm Solution
- CSE 332 13au Midterm, CSE 332 13au Midterm Solution
1.2 Final Exam
The Final Exam will be held at 12:30pm-2:20pm on December 17 in BAG 131 and BAG 154 (We will tell you which room to go to).
A review session for the Final Exam will be held during our last lectures of the quarter on Friday December 11. Both lectures will be recorded, and the content covered may vary between the two lectures, so it will be worthwhile to watch recordings for any lecture you are unable to attend.
1.2.1 Policies
- Bring a photo ID with you to the exam.
- Closed book, closed notes.
- No calculators, cell phones, or other electronic devices allowed.
- Writing after time has been called will result in a loss of points on your exam. Be sure to put your name on your paper first.
- You will be provided a math reference sheet during the exam.
1.2.2 Content
The final exam is cumulative, and as such all midterm exam content (listed above) is eligible for testing on the final exam.
In addition to the midterm exam content, the final exam will cover:
- Hash Tables
- Principles of good hash function design
- Insert/Delete/Find and run-times using these collision
resolution strategies:
- Separate Chaining
- Linear Probing
- Quadratic Probing
- Double Hashing
- Strengths and weaknesses of each collision resolution strategy
- Load Factor, including how to calculate it and how it interacts with collision resolution
- Rehashing
- Sorting
- Definitions, procedures, running times, and other properties
of these algorithms:
- Insertion Sort
- Heap Sort
- Merge Sort
- Quick Sort
- Bucket Sort
- Radix Sort
- Definitions, procedures, running times, and other properties
of these algorithms:
- Graphs
- The definitions of the many terms presented in the graphs
section, including:
- node/vertex
- edge, edge weight
- directed/undirected graph
- (in/out) degree
- complete graph
- simple graph
- path, simple path, and cycle
- connected graph
- DAG
- tree
- Any other definitions presented in the slides
- Graph data structures (adjacency list, adjacency matrix) and the advantages and disadvantages of each.
- Graph Traversals (breadth-first search and depth-first search)
- Dijkstra’s Algorithm
- Prim’s algorithm and Kruskal’s Algorithm
- The definitions of the many terms presented in the graphs
section, including:
- Parallelism:
- ForkJoin Parallelism
- Efficiency analysis (including work, span, perfect linear speedup, and Amdahl’s Law)
- ForkJoin applications:
- Reduce: Parallel sum, max, find, etc.
- Map: vector addition, function application, etc.
- Be able to write Java fork join code for simple maps & reductions
- Two-Pass parallel algorithms, e.g. Parallel Prefix Sum
- Parallel Filter/Pack
- Concurrency
- Race Conditions:
- Data Races
- Bad Interleavings
- Code Synchronization:
- Locks, reentrant locks
- Java’s Synchronized statement
- Lock scheme granularity (coarse vs. fine)
- Critical section size
- Deadlock
- Be able to write pseudo-code for Java threads & locks
- Race Conditions:
Note: You will likely be asked to write java code using ForkJoin and/or threads. We will not require your syntax to be perfectly correct, but it should be correct enough that we can verify your code would be correct if you had access to an IDE to highlight any syntax issues that were present. That is, we expect major algorithmic steps and edge cases to be correct, but don’t necessarily expect all keywords or semicolons to be perfect.
1.2.3 Past Exams
We have provided links to past exams below. Be advised that the question style, length, difficulty, and content may differ among quarters. In particular, in other quarters the final exam has included P/NP content. Your final exam for this quarter will not include that material. Additionally, in some previous quarters Hashing was covered on the midterm, and so the quantity of that content on the exams varies. You may also find some minor topics that we did not cover in these exams. If something seems unfamiliar, check if that topic appears in the list of content above or ask to confirm. I recommend that you mostly use these exams to evaluate your preparedness rather than as a study guide. Our hope is that these exams will be useful in your studying, but you should NOT take them as a guarantee of exactly what your exam will be like this quarter.
- 25au Final with 25wi Concurrency Question, Solution - To be discussed during review session in lecture on Fri 12/11/2026
- 25au Final, 25au Final Solution
- 25wi Final, 25wi Final Solution
- 23sp Final, 23sp Final Solution
- 23wi Final, 23wi Final Solution
- 19au Final, 19au Final Solution
- 19wi Final, 19wi Final Solution
- 18au Final, 18au Final Solution
- 18wi Final, 18wi Final Solution