Skip to content

Commit

Permalink
Merge hashing branch
Browse files Browse the repository at this point in the history
'2024_sem2' of https://github.com/tuankhainguy/algorithms-in-action.github.io into tuankhainguy-2024_sem2
  • Loading branch information
lee-naish committed Jan 8, 2025
2 parents 817e0c2 + e5ea6ef commit fe126fd
Show file tree
Hide file tree
Showing 48 changed files with 4,174 additions and 313 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/hashing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Hashing Algorithms CI

on:
push:
branches: [2024_sem2]
paths-ignore:
- 'doc/**' # Ignore all files and subdirectories under "doc/"
- 'docs/**' # Ignore all files and subdirectories under "docs/"
pull_request:
branches: [2024_sem2]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false

- name: Install and Test 🔧
run: |
npm install
npm run test-hashinsert
npm run test-hashsearch
npm run test-hashdelete
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"test-srs": "npm test -- ./src/algorithms/controllers/straightRadixSort.test.js",
"test-uf": "npm test -- ./src/algorithms/controllers/unionFind.test.js",
"test-234t": "npm test -- ./src/algorithms/controllers/TTFTree.test.js",
"test-hashinsert": "npm test -- ./src/algorithms/controllers/tests/HashingInsertion.test.js",
"test-hashsearch": "npm test -- ./src/algorithms/controllers/tests/HashingSearch.test.js",
"test-hashdelete": "npm test -- ./src/algorithms/controllers/tests/HashingDeletion.test.js",
"test-234t": "npm test -- ./src/algorithms/controllers/TTFTree.test.js",
"test-avl": "npm test -- ./src/algorithms/controllers/AVLTree.test.js",
"test-url": "npm test -- ./src/algorithms/parameters/helpers/urlHelpers.test.js"
},
Expand Down Expand Up @@ -63,6 +67,7 @@
"@mui/lab": "latest",
"@mui/material": "^5.14.4",
"@mui/styles": "^5.14.4",
"@popperjs/core": "^2.11.8",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^12.1.2",
"@testing-library/react-hooks": "^8.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/algorithms/controllers/AStar.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default {
5,
(vis, v) => {
vis.array.set(v, algNameStr);
vis.array.getRendererClass().zoom = 8;
vis.array.setZoom(0.8);
},
[[nodes, heuristics, minCosts, parents, finalCosts], 0]
);
Expand Down
Loading

0 comments on commit fe126fd

Please sign in to comment.