9.4: Genetic Algorithm: Looking at Code - The Nature of Code

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=-jv3CgDN9sc



Duration: 22:46
195,803 views
3,104


In part 4 of the series on Genetic Algorithm, I finally look at code! Using p5.js (and Processing / Java in the addendum), I implement the Shakespeare Monkey genetic algorithm example in JavaScript. https://thecodingtrain.com/more/archive/nature-of-code/9-genetic-algorithms/9.4-looking-at-code.html

🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/PqRSmKLQU

🎥 Previous video: https://youtu.be/nrKjSeoc7fc?list=RxTfc4JLYKs&list=PLRqwX-V7Uu6bJM3VgzjNV5YxVxUwzALHV
🎥 Next video: https://youtu.be/_of6UVV4HGo?list=RxTfc4JLYKs&list=PLRqwX-V7Uu6bJM3VgzjNV5YxVxUwzALHV
🎥 All videos: https://www.youtube.com/playlist?list=RxTfc4JLYKs&list=PLRqwX-V7Uu6bJM3VgzjNV5YxVxUwzALHV

Links discussed in this video:
🔗 Nature of Code Book: https://natureofcode.com/
🔗 ASCII Table: https://www.asciitable.com/

Timestamps:
0:00 Welcome!
1:14 How do I have the code organized?
2:41 Explore! Creating the population.
5:54 Explore! Calculate fitness.
8:40 Explain! How am I picking the parents?
12:58 Explore! How I am making a matting pool.
15:45 Explore! How am I making a new generation?
17:15 Explore! Crossover and mutation.
19:09 That's everything.
20:27 Ideas! What could you create?
21:30 Addendum! Processing code!

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/Guides/community-contribution-guide.html
🚩 Suggest Topics: https://github.com/CodingTrain/Rainbow-Topics
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://discord.gg/hPuGy2g
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
📚 Books: https://www.amazon.com/shop/thecodingtrain
🖋️ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/

🎥 Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct







Tags:
genetic
nature of code
algorithm
the nature of code
daniel shiffman
creative coding
genetic algorithms
evolution
genetic algorithm
coding
p5.js
p5js
p5.js tutorial
object oriented programming
shakespeare monkey
infinite monkey
genotype
phenotype
genotype vs phenotype
DNA
Darwin
evolutionary
evolutionary computing
survival of the fitest
evolutionary algorithm
heredity
selection
mating pool