flâneur — a map of the web's best reading

Lab 13: Hash Tables | CS 61BL Summer 2024

cs61bl.org · saved by 1 readers

Each assignment will have an FAQ linked at the top. You can also access it by adding “/faq” to the end of the URL. The FAQ for Lab 13 is located here. As usual, pull the files from the skeleton and make a new IntelliJ project. This lab is on the long side, so it may be useful to program with a partner! Similarly, the provided HashMapTest is fairly limited. We will discuss the suggested testing steps below, but ensure you are creating your own tests for all versions of your data structure. Note, do not import java.util.HashMap to make the red lines in Intellij go away. This will cause your local tests to test Java’s official implementation of a HashMap, rather than yours. As much as we love relying on tools others have made, it is pretty important to actually be able to test our own code. :) In today’s lab, we’ll learn about an incredible data structure that can provide constant time insertion, removal, and containment checks. Yes, you read that correctly: constant, Θ ( 1 ) , runtime!

Each assignment will have an FAQ linked at the top. You can also access it by adding “/faq” to the end of the URL. The FAQ for Lab 13 is located here. As usual, pull the files from the skeleton and make a new IntelliJ project. This lab is on the long side, so it may be useful to program with a partner! Similarly, the provided HashMapTest is fairly limited. We will discuss the suggested testing steps below, but ensure you are creating your own tests for all versions of your data structure. Note, do not import java.util.HashMap to make the red lines in Intellij go away. This will cause your loca

Explore this link on the map →

saved by