File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ const algorithms = {
29
29
'Binary Search Tree' : `${ baseUrl } /?alg=binarySearchTree&mode=search` ,
30
30
'2-3-4 Tree' : `${ baseUrl } /?alg=TTFTree&mode=search` ,
31
31
'AVL Tree' : `${ baseUrl } /?alg=AVLTree&mode=search` , //TODO: Need to update URL implementation and sharing code to include menu changes
32
+ 'Hashing (Linear Probing)' : `${ baseUrl } /?alg=HashingLP&mode=insertion` ,
33
+ 'Hashing (Double Hashing)' : `${ baseUrl } /?alg=HashingDH&mode=insertion` ,
34
+ 'Hashing (Chaining)' : `${ baseUrl } /?alg=HashingCH&mode=insertion` ,
32
35
} ,
33
36
StringSearch : {
34
37
'Brute Force' : `${ baseUrl } /?alg=bruteForceStringSearch&mode=search` ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import '../../styles/InsertSearchAlgorithms.scss' ;
2
+ import '../../styles/InsertSearchAlgorithms.scss' ;
3
3
4
4
// Get the base URL dynamically
5
5
const baseUrl = window . location . origin ;
6
6
7
7
const insertSearchAlgorithms = [
8
8
{ name : 'Binary Search Tree' , url : `${ baseUrl } /?alg=binarySearchTree&mode=search` } ,
9
9
{ name : '2-3-4 Tree' , url : `${ baseUrl } /?alg=TTFTree&mode=search` } ,
10
+ { name : 'Hashing (Linear Probing)' , url : `${ baseUrl } /?alg=HashingLP&mode=insertion` } ,
11
+ { name : 'Hashing (Double Hashing)' , url : `${ baseUrl } /?alg=HashingDH&mode=insertion` } ,
12
+ { name : 'Hashing (Chaining)' , url : `${ baseUrl } /?alg=HashingCH&mode=insertion` } ,
10
13
] ;
11
14
12
15
const InsertSearchAlgorithms = ( ) => {
@@ -22,4 +25,4 @@ const InsertSearchAlgorithms = () => {
22
25
) ;
23
26
} ;
24
27
25
- export default InsertSearchAlgorithms ;
28
+ export default InsertSearchAlgorithms ;
You can’t perform that action at this time.
0 commit comments