9.8: Weighted Selection (for Genetic Algorithms) - The Nature of Code
In this video, I look at yet another technique for "pool selection" -- how to pick an item randomly from an array with a non-uniform distribution, i.e. some elements have higher probability of being picked than others. I use this same method in my Traveling Salesperson coding challenge, but it can be applied more broadly. Code: https://thecodingtrain.com/tracks/the... š¹ļø p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s... š„ Previous: Ā Ā Ā ā¢Ā 9.7:Ā GeneticĀ Algorithm:Ā PoolĀ SelectionĀ -Ā T...Ā Ā š„ Next: Ā Ā Ā ā¢Ā 9.9:Ā GeneticĀ Algorithm:Ā InteractiveĀ Select...Ā Ā š„ All: Ā Ā Ā ā¢Ā TheĀ NatureĀ ofĀ CodeĀ Ā References: š Nature of Code: https://nature-of-code-2nd-edition.ne... š Even Better GA Selection Pool Algorithm: https://github.com/CodingTrain/Sugges... š Genetic Algorithm: Random Pool Selection: https://github.com/CodingTrain/Sugges... Related Coding Challenges: š Ā Ā Ā ā¢Ā CodingĀ ChallengeĀ 35:Ā TravelingĀ SalespersonĀ Ā š Ā Ā Ā ā¢Ā CodingĀ ChallengeĀ 95:Ā ApproximatingĀ theĀ Val...Ā Ā Timestamps: 0:00 Hello 5:52 Explain improved algorithm 7:20 Github issues 8:01 Start coding 8:41 Normalize the fruit score 10:44 Pick a fruit randomly according to its probability 12:13 Diagram the algorithm 15:50 Verify the algorithm works 17:48 Advantages of the algorithm 18:16 Outro Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound š Website: https://thecodingtrain.com/ š¾ Share Your Creation! https://thecodingtrain.com/guides/pas... š© Suggest Topics: https://github.com/CodingTrain/Sugges... š” GitHub: https://github.com/CodingTrain š¬ Discord: https://thecodingtrain.com/discord š Membership: http://youtube.com/thecodingtrain/join š Store: https://standard.tv/codingtrain šļø Twitter: Ā Ā /Ā thecodingtrainĀ Ā šø Instagram: Ā Ā /Ā the.coding.trainĀ Ā š„ Ā Ā Ā ā¢Ā CodingĀ ChallengesĀ Ā š„ Ā Ā Ā ā¢Ā StartĀ learningĀ here!Ā Ā š 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-o... This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod... #poolselection #probability #p5js

9.9: Genetic Algorithm: Interactive Selection - The Nature of Code

Coding Challenge #35.4: Traveling Salesperson with Genetic Algorithm

Coding Challenge 186: Wave Function Collapse

The Strange Math That Predicts (Almost) Anything

Why Aliens Would NEVER Invade Africa

Coding Challenge #69: Evolutionary Steering Behaviors - Part 2

Man with suspended licence joins court call while driving

Coding Challenge 179: Elementary Cellular Automata

Coding Challenge #35.3: Traveling Salesperson with Lexicographic Order

Coding Challenge 180: Falling Sand

Judge Canāt Stop Laughing At Sovereign Citizenās Courtroom Meltdown!!!

Genetic Algorithms in Python - Evolution For Optimization

10.13: Neural Networks: Feedforward Algorithm Part 2 - The Nature of Code

Genetic Algorithms Explained By Example

How To Think SO CLEARLY People Assume You're A Genius

10.11: Neural Networks: Matrix Class Improvements - The Nature of Code

How algorithms evolve (Genetic Algorithms)

Alzheimerās, memory, and the science of forgetting, in 58 minutes | Lisa Genova: Full Interview

