Skip to content

Commit fe126fd

Browse files
committed
Merge hashing branch
'2024_sem2' of https://github.com/tuankhainguy/algorithms-in-action.github.io into tuankhainguy-2024_sem2
2 parents 817e0c2 + e5ea6ef commit fe126fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4174
-313
lines changed

.github/workflows/hashing.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Hashing Algorithms CI
2+
3+
on:
4+
push:
5+
branches: [2024_sem2]
6+
paths-ignore:
7+
- 'doc/**' # Ignore all files and subdirectories under "doc/"
8+
- 'docs/**' # Ignore all files and subdirectories under "docs/"
9+
pull_request:
10+
branches: [2024_sem2]
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout 🛎️
17+
uses: actions/[email protected]
18+
with:
19+
persist-credentials: false
20+
21+
- name: Install and Test 🔧
22+
run: |
23+
npm install
24+
npm run test-hashinsert
25+
npm run test-hashsearch
26+
npm run test-hashdelete

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
"test-srs": "npm test -- ./src/algorithms/controllers/straightRadixSort.test.js",
1919
"test-uf": "npm test -- ./src/algorithms/controllers/unionFind.test.js",
2020
"test-234t": "npm test -- ./src/algorithms/controllers/TTFTree.test.js",
21+
"test-hashinsert": "npm test -- ./src/algorithms/controllers/tests/HashingInsertion.test.js",
22+
"test-hashsearch": "npm test -- ./src/algorithms/controllers/tests/HashingSearch.test.js",
23+
"test-hashdelete": "npm test -- ./src/algorithms/controllers/tests/HashingDeletion.test.js",
24+
"test-234t": "npm test -- ./src/algorithms/controllers/TTFTree.test.js",
2125
"test-avl": "npm test -- ./src/algorithms/controllers/AVLTree.test.js",
2226
"test-url": "npm test -- ./src/algorithms/parameters/helpers/urlHelpers.test.js"
2327
},
@@ -63,6 +67,7 @@
6367
"@mui/lab": "latest",
6468
"@mui/material": "^5.14.4",
6569
"@mui/styles": "^5.14.4",
70+
"@popperjs/core": "^2.11.8",
6671
"@testing-library/jest-dom": "^4.2.4",
6772
"@testing-library/react": "^12.1.2",
6873
"@testing-library/react-hooks": "^8.0.1",

src/algorithms/controllers/AStar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default {
166166
5,
167167
(vis, v) => {
168168
vis.array.set(v, algNameStr);
169-
vis.array.getRendererClass().zoom = 8;
169+
vis.array.setZoom(0.8);
170170
},
171171
[[nodes, heuristics, minCosts, parents, finalCosts], 0]
172172
);

0 commit comments

Comments
 (0)