Coding the Collatz Conjecture
It's the second episode of Coding in the Cabana! Here I attempt to visualize the Collatz Conjecture in Processing. Code: https://thecodingtrain.com/challenges/c2-collatz-conjecture
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/XjLDE7gu6
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π Collatz Conjecture Wikipedia: https://en.wikipedia.org/wiki/Collatz_conjecture
π» Collatz Graph: All Numbers Lead to One: https://www.jasondavies.com/collatz-graph/
π» Trying to visualize the Collatz conjecture: http://mathematica.stackexchange.com/questions/85718/trying-to-visualize-the-collatz-conjecture
πΎ Primitive Data Types in Java (more information about the long type): https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
Videos:
π₯ Collatz Conjecture in Color: https://www.youtube.com/watch?v=LqKpkdRRLZw
π₯ Golan Levin's Modulo Operator video: https://www.youtube.com/watch?v=r5Iy3v1co0A
π₯ UNCRACKABLE? The Collatz Conjecture: https://www.youtube.com/watch?v=5mFpVDpKX70
Related Coding Challenges:
π #14 Recursive Fractal Trees: https://youtu.be/0jjeOYMjmDU
Timestamps:
0:00 The Collatz Conjecture
4:10 Programming in Processing
6:46 Checking The Number of Steps
9:23 Visualizing The Collatz Conjecture
20:44 Rendering to a PDF File
22:24 Conclusions and Goodbyes
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://thecodingtrain.com/discord
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
ποΈ 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
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#collatzconjecture #modulo #processing