skip to main
|
skip to sidebar
It Doesn't Have to DO Anything...
Wednesday, March 31, 2010
Bonus Post! Collatz Conjecture
I definitely suggest you look at the
large version
.
Actionscript, of course, is a programming language. And one thing computers and programming languages do much more efficiently than humans is...well...compute! We can use this to our advantage and help display very complex math problems nearly instantly. Flash is a wonderful tool to use in eLearning in that the behind-the-scenes number crunching can easily be reflected graphically.
In this case, I stumbled upon something called the Collatz Conjecture. It's a conjecture that basically says that if you start with an integer, you check to see if it's even or odd. If it's even, divide by 2. If it's odd, multiply it by 3 and add 1. Repeat that over and over, and you will ALWAYS wind up with a value of 1.
With larger numbers, this process could take quite a while...so...enter Flash! Simply type in a number you want to check (I've limited it to 8 digits) and click "Go!" to quickly see the resulting path to 1.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Corey
Shelbyville, Indiana, United States
I'm a geekish sort of guy by most standards. I absolutely love to read and to play video games. I am a Flash developer currently living in Shelbyville, IN.
View my complete profile
Follow Me
Links
Blog Archive
►
2011
(7)
►
04/24 - 05/01
(1)
►
04/17 - 04/24
(1)
►
03/27 - 04/03
(1)
►
03/20 - 03/27
(1)
►
02/20 - 02/27
(1)
►
01/02 - 01/09
(2)
▼
2010
(50)
►
11/07 - 11/14
(1)
►
06/13 - 06/20
(3)
►
06/06 - 06/13
(1)
►
05/30 - 06/06
(3)
►
05/23 - 05/30
(4)
►
05/16 - 05/23
(3)
►
05/09 - 05/16
(1)
►
05/02 - 05/09
(1)
►
04/25 - 05/02
(2)
►
04/04 - 04/11
(2)
▼
03/28 - 04/04
(4)
Bonus Post! Collatz Conjecture
Dynamically Shifting Menu UPDATED
Dynamically Shifting Menu
Coming Along...
►
03/14 - 03/21
(1)
►
03/07 - 03/14
(1)
►
02/28 - 03/07
(2)
►
02/21 - 02/28
(2)
►
02/14 - 02/21
(4)
►
02/07 - 02/14
(2)
►
01/31 - 02/07
(2)
►
01/24 - 01/31
(2)
►
01/17 - 01/24
(1)
►
01/10 - 01/17
(3)
►
01/03 - 01/10
(5)
►
2009
(14)
►
12/27 - 01/03
(2)
►
12/20 - 12/27
(2)
►
12/13 - 12/20
(1)
►
12/06 - 12/13
(1)
►
11/29 - 12/06
(3)
►
11/22 - 11/29
(5)
Followers
No comments:
Post a Comment