Skip to content

Commit aa352b4

Browse files
fixed pretty print links
1 parent 4b16081 commit aa352b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+263
-263
lines changed

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!-- Start Header -->
88
<center>
99
<h1>Clever Algorithms: Nature-Inspired Programming Recipes</h1>
10-
<em>A book by <a href="https://JasonBrownlee.me">Jason Brownlee</a></em>
10+
<em>A book by Jason Brownlee</em>
1111

1212
<p>
1313
<a href="/">Home</a> |

docs/nature-inspired/acknowledgments.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Acknowledgments | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Acknowledgments | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->

docs/nature-inspired/advanced.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Advanced Topics | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Advanced Topics | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->

docs/nature-inspired/advanced/new_algorithms.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Devising New Algorithms | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Devising New Algorithms | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->

docs/nature-inspired/advanced/paradigms.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Programming Paradigms | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Programming Paradigms | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->
@@ -228,7 +228,7 @@ <h3><a name='example'>Example</a></h3>
228228
end
229229
</pre>
230230
<div class='caption'>Genetic Algorithm in Ruby using OOP</div>
231-
<div class='download_src'>Download: <a href='oop.rb'>oop.rb</a>. Unit test available in the <%=natureinspired_dev_url("github project")%></div>
231+
<div class='download_src'>Download: <a href='oop.rb'>oop.rb</a>.</div>
232232

233233

234234

@@ -411,7 +411,7 @@ <h3><a name='example'>Example</a></h3>
411411
end
412412
</pre>
413413
<div class='caption'>Genetic Algorithm in Ruby using the Flow Programming</div>
414-
<div class='download_src'>Download: <a href='flow.rb'>flow.rb</a>. Unit test available in the <%=natureinspired_dev_url("github project")%></div>
414+
<div class='download_src'>Download: <a href='flow.rb'>flow.rb</a>.</div>
415415

416416

417417

docs/nature-inspired/advanced/problem_solving.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Problem Solving Strategies | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Problem Solving Strategies | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->

docs/nature-inspired/advanced/racing_algorithms.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Benchmarking Algorithms | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Benchmarking Algorithms | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->

docs/nature-inspired/advanced/testing_algorithms.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Testing Algorithms | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Testing Algorithms | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->
@@ -178,7 +178,7 @@ <h3><a name='unit_tests'>Unit Tests</a></h3>
178178
end
179179
</pre>
180180
<div class='caption'>Unit Tests for the Genetic Algorithm in Ruby</div>
181-
<div class='download_src'>Download: <a href='tc_genetic_algorithm.rb'>tc_genetic_algorithm.rb</a>. Unit test available in the <%=natureinspired_dev_url("github project")%></div>
181+
<div class='download_src'>Download: <a href='tc_genetic_algorithm.rb'>tc_genetic_algorithm.rb</a>.</div>
182182

183183

184184

docs/nature-inspired/advanced/visualizing_algorithms.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Visualizing Algorithms | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Visualizing Algorithms | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->
@@ -75,7 +75,7 @@ <h3><a name='continuous_function_optimization'>Continuous Function Optimization<
7575
<p>
7676
Figure (below) provides an example of the Basin function in one dimension. The Basin function is a continuous function optimization that seeks $["\\min f(x)"]$ where $["f=\\sum_{i=1}^n x_{i}^2"]$, $["-5.0\\leq x_i \\leq 5.0"]$. The optimal solution for this function is $["(v_0,\\ldots,v_{n-1})=0.0"]$. Listing (below) provides the Gnuplot script used to prepare the plot ($["n=1"]$).
7777
</p>
78-
<img src='/images/basin1.png' align='middle' alt='Plot of the Basin function in one-dimension.' class='book_image'>
78+
<img src='basin1.png' align='middle' alt='Plot of the Basin function in one-dimension.' class='book_image'>
7979
<br />
8080
<div class='caption'>Plot of the Basin function in one-dimension.</div>
8181

@@ -88,7 +88,7 @@ <h3><a name='continuous_function_optimization'>Continuous Function Optimization<
8888
<p>
8989
Figure (below) provides an example of the basin function in two-dimensions as a three-dimensional surface plot. Listing (below) provides the Gnuplot script used to prepare the surface plot.
9090
</p>
91-
<img src='/images/basin2.png' align='middle' alt='Plot of the Basin function in two-dimensions.' class='book_image'>
91+
<img src='basin2.png' align='middle' alt='Plot of the Basin function in two-dimensions.' class='book_image'>
9292
<br />
9393
<div class='caption'>Plot of the Basin function in two-dimensions.</div>
9494

@@ -115,7 +115,7 @@ <h3><a name='traveling_salesman_problem'>Traveling Salesman Problem</a></h3>
115115
<p>
116116
Figure (below) provides a scatter plot of the Berlin52 TSP used through out the algorithm descriptions in this book. The Berlin52 problem seeks a permutation of the order to visit cities (called a tour) that minimize the total distance traveled. The optimal tour distance for Berlin52 is 7542 units.
117117
</p>
118-
<img src='/images/tsp1.png' align='middle' alt='Plot of the cities of the Berlin52 TSP.' class='book_image'>
118+
<img src='tsp1.png' align='middle' alt='Plot of the cities of the Berlin52 TSP.' class='book_image'>
119119
<br />
120120
<div class='caption'>Plot of the cities of the Berlin52 TSP.</div>
121121

@@ -160,7 +160,7 @@ <h3><a name='single_algorithm_run'>Single Algorithm Run</a></h3>
160160
<p>
161161
Figure (below) provides an example line graph, showing the quality of the best candidate solution located by the Genetic Algorithm each generation for a single run applied to a 64-bit OneMax problem. Listing (below) provides the Gnuplot script used to prepare the plot, where <code>ga1.txt</code> is a text file that provides the fitness of the best solution each algorithm iteration on a new line. Listing (below) provides a snippet of the first five lines of the <code>ga1.txt</code> file.
162162
</p>
163-
<img src='/images/ga1.png' align='middle' alt='Line graph of the best solution found by the Genetic Algorithm.' class='book_image'>
163+
<img src='ga1.png' align='middle' alt='Line graph of the best solution found by the Genetic Algorithm.' class='book_image'>
164164
<br />
165165
<div class='caption'>Line graph of the best solution found by the Genetic Algorithm.</div>
166166

@@ -189,7 +189,7 @@ <h3><a name='multiple_algorithm_runs'>Multiple Algorithm Runs</a></h3>
189189
<p>
190190
Figure (below) provides a histogram plot showing the best solutions found and the number of times they were located by Genetic Algorithm over 100 runs on a 300-bit OneMax function.
191191
</p>
192-
<img src='/images/ga2.png' align='middle' alt='Histogram of the best solutions found by a Genetic Algorithm.' class='book_image'>
192+
<img src='ga2.png' align='middle' alt='Histogram of the best solutions found by a Genetic Algorithm.' class='book_image'>
193193
<br />
194194
<div class='caption'>Histogram of the best solutions found by a Genetic Algorithm.</div>
195195

@@ -228,7 +228,7 @@ <h3><a name='multiple_distributions_of_algorithm_runs'>Multiple Distributions of
228228
<p>
229229
Figure (below) provides box-and-whisker plots of the best score distribution of 100 runs for the Genetic Algorithm applied to a 300-bit OneMax problem with three different mutation configurations. The measure collected from each run was the quality of the best candidate solution found.
230230
</p>
231-
<img src='/images/ga3.png' align='middle' alt='Box-and-whisker plots of the Genetic Algorithm's performance.' class='book_image'>
231+
<img src='ga3.png' align='middle' alt='Box-and-whisker plots of the Genetic Algorithm's performance.' class='book_image'>
232232
<br />
233233
<div class='caption'>Box-and-whisker plots of the Genetic Algorithm's performance.</div>
234234

@@ -266,7 +266,7 @@ <h3><a name='continuous_function_optimization'>Continuous Function Optimization<
266266
Listing (below) provides the Gnuplot script used to prepare the plot, where <code>pso1.txt</code> is a file that contains the coordinates of the best solution found by the algorithm, with one coordinate per line separated by a space.
267267
Listing (below) provides a snippet of the first five lines of the <code>pso1.txt</code> file.
268268
</p>
269-
<img src='/images/pso1.png' align='middle' alt='Heat map plot showing selected samples in the domain.' class='book_image'>
269+
<img src='pso1.png' align='middle' alt='Heat map plot showing selected samples in the domain.' class='book_image'>
270270
<br />
271271
<div class='caption'>Heat map plot showing selected samples in the domain.</div>
272272

@@ -304,7 +304,7 @@ <h3><a name='traveling_salesman_problem'>Traveling Salesman Problem</a></h3>
304304
<p>
305305
Figure (below) provides a plot of an example Nearest-Neighbor solution for the Berlin52 TSP. A Nearest-Neighbor solution is constructed by randomly selecting the first city in the tour then selecting the next city in the tour with the minimum distance to the current city until a complete tour is created.
306306
</p>
307-
<img src='/images/tsp3.png' align='middle' alt='Plot of a Nearest-Neighbor tour for the Berlin52 TSP.' class='book_image'>
307+
<img src='tsp3.png' align='middle' alt='Plot of a Nearest-Neighbor tour for the Berlin52 TSP.' class='book_image'>
308308
<br />
309309
<div class='caption'>Plot of a Nearest-Neighbor tour for the Berlin52 TSP.</div>
310310

@@ -330,7 +330,7 @@ <h3><a name='traveling_salesman_problem'>Traveling Salesman Problem</a></h3>
330330
<p>
331331
Figure (below) provides a plot of the known optimal solution for the Berlin52 Traveling Salesman problem.
332332
</p>
333-
<img src='/images/tsp2.png' align='middle' alt='Plot of the optimal tour for the Berlin52 TSP.' class='book_image'>
333+
<img src='tsp2.png' align='middle' alt='Plot of the optimal tour for the Berlin52 TSP.' class='book_image'>
334334
<br />
335335
<div class='caption'>Plot of the optimal tour for the Berlin52 TSP.</div>
336336

docs/nature-inspired/appendix1.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Ruby: Quick-Start Guide | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Ruby: Quick-Start Guide | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->

docs/nature-inspired/copyright.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Copyright | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Copyright | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->

docs/nature-inspired/errata.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Errata | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Errata | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->

docs/nature-inspired/evolution.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Evolutionary Algorithms | Clever Algorithms</title><link href="clever.css" media="screen" rel="stylesheet" type="text/css"/>
3+
<title>Evolutionary Algorithms | Clever Algorithms</title><link href="https://cleveralgorithms.com/nature-inspired/clever.css" media="screen" rel="stylesheet" type="text/css"/>
44
<!-- support to display ruby source nicely -->
5-
<link href="prettify.css" type="text/css" rel="stylesheet"/>
6-
<script type="text/javascript" src="prettify.js"></script>
5+
<link href="https://cleveralgorithms.com/nature-inspired/prettify.css" type="text/css" rel="stylesheet"/>
6+
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
99
<body onload="prettyPrint()"><!-- Start Header -->

0 commit comments

Comments
 (0)