Skip to content

Commit 6b9ad37

Browse files
authored
Refactor hash function output formatting
Updated the formatting of hash function outputs in LaTeX.
1 parent 2c5b43a commit 6b9ad37

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

notes/searching.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,13 +1179,23 @@ $$
11791179
Bucket contents after hashing:
11801180

11811181
$$
1182-
\begin{aligned}
1183-
h(12) &= 12 \bmod 5 = 2 \Rightarrow& \text{bucket 2: } [12] [6pt]
1184-
h(22) &= 22 \bmod 5 = 2 \Rightarrow& \text{bucket 2: } [12, 22] [6pt]
1185-
h(7) &= 7 \bmod 5 = 2 \Rightarrow& \text{bucket 2: } [12, 22, 7] [6pt]
1186-
h(3) &= 3 \bmod 5 = 3 \Rightarrow& \text{bucket 3: } [3] [6pt]
1187-
h(14) &= 14 \bmod 5 = 4 \Rightarrow& \text{bucket 4: } [14]
1188-
\end{aligned}
1182+
h(12) = 12 \bmod 5 = 2 \;\Rightarrow\; \text{bucket 2: } [12]
1183+
$$
1184+
1185+
$$
1186+
h(22) = 22 \bmod 5 = 2 \;\Rightarrow\; \text{bucket 2: } [12, 22]
1187+
$$
1188+
1189+
$$
1190+
h(7) = 7 \bmod 5 = 2 \;\Rightarrow\; \text{bucket 2: } [12, 22, 7]
1191+
$$
1192+
1193+
$$
1194+
h(3) = 3 \bmod 5 = 3 \;\Rightarrow\; \text{bucket 3: } [3]
1195+
$$
1196+
1197+
$$
1198+
h(14) = 14 \bmod 5 = 4 \;\Rightarrow\; \text{bucket 4: } [14]
11891199
$$
11901200

11911201
*Example 1*

0 commit comments

Comments
 (0)