Editing 534: Genetic Algorithms
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 8: | Line 8: | ||
==Explanation== | ==Explanation== | ||
− | + | Cueball is seen here defining a program (possibly in python). The title is a reference to the type of program Cueball is writing, a Genetic Algorithm. | |
− | In | + | In the computer science field of artificial intelligence, a genetic algorithm is a search heuristic that mimics the process of natural evolution. This heuristic is routinely used to generate useful solutions to optimization and search problems. Genetic algorithms belong to the larger class of evolutionary algorithms, which generate solutions to optimization problems using techniques inspired by natural evolution, such as inheritance, mutation, selection, and crossover. |
− | The line indicated by an arrow is a reference to the | + | The line indicated by an arrow is a reference to the Terminator series, in which the main antagonist is an artificial intelligence known as Skynet. By setting an absurdly high cost for an algorithm transforming into Skynet, the coder makes a preventative measure against the algorithm achieving such sentience. |
− | The line about water crossing is a possible reference to the old computer game | + | The line about water crossing is a possible reference to the old computer game Oregon Trail, in which crossing water was hazardous. |
− | + | {{incomplete}} | |
==Transcript== | ==Transcript== | ||
− | :[Code displayed, presumably from an IDE | + | :[Code displayed, presumably from an IDE] |
:def getSolutionCosts(navigationCode): | :def getSolutionCosts(navigationCode): | ||
::fuelStopCost = 15 | ::fuelStopCost = 15 | ||
::extraComputationCost = 8 | ::extraComputationCost = 8 | ||
− | :[There is a giant arrow pointing to the next line | + | :[There is a giant arrow pointing to the next line] |
::thisAlgorithmBecomingSkynetCost = 999999999 | ::thisAlgorithmBecomingSkynetCost = 999999999 | ||
::waterCrossingCost = 45 | ::waterCrossingCost = 45 | ||
− | :Genetic algorithms tip: | + | :Narration: Genetic algorithms tip: *Always* include this in your fitness function. |
− | |||
{{comic discussion}} | {{comic discussion}} | ||
− | |||
[[Category:Programming]] | [[Category:Programming]] | ||
[[Category:Comics with color]] | [[Category:Comics with color]] | ||
− | |||
− |