Coding the Collatz Conjecture

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



Duration: 23:08
115,963 views
4,421


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







Tags:
collatz
collatz conjecture
processing
creative coding
tutorial
coding in the cabana
java
algorithmic art
generative art
math art
numberphile