ReePrime China
Collatz conjecture

此内容来自第三方平台 (Dailymotion)。如果此视频侵犯了您的版权,请使用 立即删除 工具。

Collatz conjecture

290 次观看 04:35 Samuel Thiriot

描述

This is a short run of a program exploring the Collatz conjecture. Here is the conjecture: "Take any natural number n. If n is even, divide it by 2 to get n / 2, if n is odd multiply it by 3 and add 1 to obtain 3n + 1. Repeat the process indefinitely. The conjecture is that no matter what number you start with, you will always eventually reach 1" (retrieved from wikipedia).

The program is implemented in java using the prefuse toolkit.