You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constPLAY_INSTRUCTIONS=`Click on ${KEY_PLAY} to watch the algorithm run. The speed may be adjusted using the speed slider. You can also pause, single step forwards and backwards and use the progress bar slider. The level of detail can be increased by clicking the ">" on lines of pseudocode; clicking "?" pops up an explanation for the line of code.`;
23
+
22
24
constbstInstructions=[
23
25
{
24
26
title: 'Insert Mode',// Specify BST Insertion as Insert mode
25
27
content: [
26
28
`Click on ${KEY_CODE} on the right panel`,
27
29
'Enter a list of nodes in the insert parameter.',
28
-
`Click on ${KEY_INSERT} to enter insert mode and load the algorithm.`,
29
-
`Click on ${KEY_PLAY} to watch the algorithm run.`,
30
+
`Click on ${KEY_INSERT}or hit return to enter insert mode and load the data.`,
31
+
PLAY_INSTRUCTIONS,
30
32
],
31
33
},
32
34
{
33
35
title: 'Search Mode',// Specify BST Searching as Search mode
34
36
content: [
35
37
`Click on ${KEY_CODE} on the right panel`,
36
38
'Enter a node in the search parameter.',
37
-
`Click on ${KEY_SEARCH} to enter search mode and load the algorithm.`,
38
-
`Click on ${KEY_PLAY} to watch the algorithm run.`,
39
+
`Click on ${KEY_SEARCH}or hit return to enter search mode and load the data.`,
40
+
PLAY_INSTRUCTIONS,
39
41
],
40
42
},
41
43
];
@@ -47,8 +49,8 @@ const stringInstructions = [{
47
49
content: [
48
50
`Click on ${KEY_CODE} on the right panel`,
49
51
'Enter a string to search followed by a string to search for, seperated by a comma',
50
-
`Click on ${KEY_FIND} to load the algorithm.`,
51
-
`Click on ${KEY_PLAY} to watch the algorithm run.`,
52
+
`Click on ${KEY_FIND}or hit return to load the data.`,
53
+
PLAY_INSTRUCTIONS,
52
54
],
53
55
}];
54
56
@@ -75,10 +77,8 @@ visible`,
75
77
Bulk insert is not animated to the same degree as single inserts; it
76
78
allows you to pre-fill some of the table quickly.`,
77
79
78
-
`Click on ${KEY_INSDEL} (or hit return after data input) to enter Insert mode and load the algorithm.`,
79
-
`Click on ${KEY_PLAY} to watch the algorithm run. The speed may be
80
-
adjusted using the speed slider. You can also pause, single step forwards and
81
-
backwards and use the progress bar slider.`,
80
+
`Click on ${KEY_INSDEL} or hit return to enter Insert mode and load the data.`,
81
+
PLAY_INSTRUCTIONS,
82
82
'For hashing with chaining, when a chain is not displayed completely it can be revealed by hovering the mouse over the table slot.'
83
83
],
84
84
},
@@ -88,8 +88,8 @@ backwards and use the progress bar slider.`,
88
88
'Make sure table has inserted values before searching.',
89
89
`Click on ${KEY_CODE} on the right panel.`,
90
90
'Enter an Integer in the Search parameter.',
91
-
`Click on ${KEY_SEARCH} to enter Search mode and load the algorithm.`,
92
-
`Click on ${KEY_PLAY} to watch the algorithm run. The speed may be adjusted using the speed slider.`,
91
+
`Click on ${KEY_SEARCH}or hit return to enter Search mode and load the data.`,
92
+
PLAY_INSTRUCTIONS,
93
93
],
94
94
},
95
95
];
@@ -100,8 +100,8 @@ const sortInstructions = [{
100
100
content: [
101
101
`Click on ${KEY_CODE} on the right panel`,
102
102
'Enter a list of numbers in the sort parameter.',
103
-
`Click on ${KEY_SORT} to load the algorithm.`,
104
-
`Click on ${KEY_PLAY} to watch the algorithm run.`,
103
+
`Click on ${KEY_SORT}or hit return to load the data.`,
104
+
PLAY_INSTRUCTIONS,
105
105
],
106
106
}];
107
107
@@ -110,13 +110,11 @@ const graphInstructions = [
110
110
title: 'To Run Animation',
111
111
content: [
112
112
`Click on ${KEY_CODE} at the top of the right-hand panel`,
113
-
`Either step through the algorithm (click on ${KEY_FORWARD}) or play continuously (click on ${KEY_PLAY}). Code and animation will follow in lockstep.`,
113
+
PLAY_INSTRUCTIONS,
114
114
`The graph can be chosen (see below; default Graph 1 is shown initially)`,
115
-
`Athoer algorithm parameters can be chosen below the
115
+
`Other algorithm parameters can be chosen below the
116
116
${KEY_PROGRESS} bar; this will reset the animation to the start`,
117
-
`Screen layout can be altered (depending on your browser/platform):
118
-
the left panel can be rendered invisible by clicking
119
-
on the arrow in its middle, the right and bottom panels can be enlarged or shrunk by dragging the ellipsis ("..."), and you can zoom in/out and drag elements in the animation panel`,
117
+
`Screen layout can be altered (depending on your browser/platform): the right and bottom panels can be enlarged or shrunk by dragging the ellipsis ("..."), and you can zoom in/out and drag elements in the animation panel`,
120
118
]
121
119
},
122
120
{
@@ -135,12 +133,12 @@ by dragging the "..." up temporarily`,
135
133
];
136
134
137
135
constgraphInstructionsTC=[{
138
-
title: 'Create Graph ',
136
+
title: ' ',
139
137
content: [
140
138
`Click on ${KEY_CODE} on the right panel`,
141
-
'Enter a graph in the transition matrix',
142
-
`Click on ${KEY_LOAD} to load the algorithm.`,
143
-
`Click on ${KEY_PLAY} to watch the algorithm run.`,
139
+
'Enter a graph in the edge matrix',
140
+
`Click on ${KEY_LOAD}or hit return to load the data.`,
141
+
PLAY_INSTRUCTIONS,
144
142
'All nodes are SELF-REACHABLE => All diagonal elements are ones and NOT allowed to be edited.',
0 commit comments