-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (49 loc) · 1.75 KB
/
Copy pathindex.html
File metadata and controls
53 lines (49 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Sorting Algorithm Comparison</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script type="module" src="src/main.js"></script>
<link rel="stylesheet" href="style/styles.css" />
</head>
<body>
<h1>Sorting Algorithm Performance</h1>
<form id="algorithmForm">
<label for="maxSize">Choose Max Array Size:</label>
<select id="maxSize" name="maxSize">
<option value="10">10</option>
<option value="100">100</option>
<option value="1000">1000</option>
<option value="10000">10000</option>
<option value="100000">100000</option>
</select>
<label for="algorithms">Choose Algorithms to Run:</label>
<select id="algorithms" name="algorithms" multiple>
<option value="bubbleSort">Bubble Sort</option>
<option value="selectionSort">Selection Sort</option>
<option value="insertionSort">Insertion Sort</option>
<option value="mergeSort">Merge Sort</option>
<option value="quickSort">Quick Sort</option>
<option value="heapSort">Heap Sort</option>
</select>
<button type="submit">Run Selected Algorithms</button>
<button type="button" id="runAllButton">Run All Algorithms</button>
</form>
<canvas id="chart" width="800" height="400"></canvas>
<table id="resultTable">
<thead>
<tr>
<th>Algorithm</th>
<th>Size 0</th>
<th>Size 10</th>
<th>Size 100</th>
<th>Size 1000</th>
<th>Size 10000</th>
<th>Size 100000</th>
</tr>
</thead>
<tbody></tbody>
</table>
</body>
</html>