-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselection_sort.html
More file actions
91 lines (89 loc) · 4.13 KB
/
selection_sort.html
File metadata and controls
91 lines (89 loc) · 4.13 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Selection Sort</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-cyan.css">
<script src="https://cdn.jsdelivr.net/npm/p5@1.1.9/lib/p5.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/p5.min.js"></script>
<script language="javascript" type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/addons/p5.dom.min.js"></script> -->
<style> body {padding: 10; margin: 0;} </style>
</head>
<body>
<header class='w3-container w3-theme w3-card'>
<h1>Selection Sort</h1>
<!-- Navigation bar -->
<div class="w3-bar w3-theme">
<a href="index.html" class="w3-bar-item w3-button">Home</a>
<div class='w3-dropdown-hover w3-hide-small w3-mobile'>
<button class='w3-button'>Search</button>
<div class='w3-dropdown-content w3-bar-block w3-card-4'>
<a href="dfs_maze.html" class="w3-bar-item w3-button w3-mobile">Depth First Search</a>
</div>
</div>
<div class='w3-dropdown-hover w3-hide-small w3-mobile'>
<button class='w3-button'>Sort</button>
<div class='w3-dropdown-content w3-bar-block w3-card-4'>
<a href="bubble_sort.html" class="w3-bar-item w3-button w3-mobile w3-blue">Bubble Sort</a>
<a href="selection_sort.html" class="w3-bar-item w3-button w3-mobile">Selection Sort</a>
</div>
</div>
<a href="javascript:void(0)" class="w3-bar-item w3-button w3-right w3-hide-large w3-hide-medium" onclick="mobileFunction()">☰</a>
</div>
<div id="mobile" class="w3-bar-block w3-theme w3-hide w3-hide-large w3-hide-medium">
<div class='w3-dropdown-hover w3-mobile'>
<div class='w3-dropdown-hover w3-mobile'>
<button class='w3-button'>Search</button>
<div class='w3-dropdown-content w3-bar-block w3-card-4'>
<a href="dfs_maze.html" class="w3-bar-item w3-button w3-mobile">Depth First Search</a>
</div>
</div>
<button class='w3-button'>Sort</button>
<div class='w3-dropdown-content w3-bar-block w3-card-4'>
<a href="bubble_sort.html" class="w3-bar-item w3-button w3-blue w3-mobile">Bubble Sort</a>
</div>
</div>
</div>
<script>
function mobileFunction() {
var x = document.getElementById("mobile");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
</script>
</header>
<div></div>
<div id='sketch' class='w3-container w3-padding-16'>
<script src="scripts/sorter.js"></script>
<script language="javascript" type="text/javascript" src="scripts/selection_sort_sketch.js"></script>
<!-- <button id='btnStart' class='w3-button w3-round w3-ripple w3-theme'>Start</button> -->
<div id='sketchInput' class='w3-container'></div>
</div>
<div class='w3-container w3-theme-l5'>
<article class='w3-container w3-theme-l5 w3-margin-left w3-margin-right'>
<section class='w3-section'>
<h1>The Selection Sort Algorithm</h1>
<h2>Introduction</h2>
<p>
Selection Sort is a straightforward and efficient sorting algorithm that works by repeatedly selecting the smallest (or largest) element from the unsorted portion of a list and moving it to the sorted portion
</p>
<h2>The Algorithm</h2>
<div class='w3-container'>
<div class='w3-card-2 w3-center'>
<img id='Algorithm_img' src='images/Selection Sort UML Activity Diagram.png' alt='Bubble Sort UML Activity Diagram' style='width:60%; height:auto;'>
</div>
</div>
<h2>Analysis</h2>
</section>
</article>
</div>
<footer class='w3-container w3-theme w3-card w3-bottom'>
<p>© Roy A Burgess</p>
</footer>
</body>
</html>