Skip to main content
Module

x/collatz/src/utilities.ts>SequenceState

Functions related to the Collatz/Syracuse/3N+1 problem.
Latest
enum SequenceState
import { SequenceState } from "https://deno.land/x/collatz@javascript-v1.2.0/src/utilities.ts";

SequenceState for Cycle Control

Members

CYCLE_INIT = "CYCLE_INIT"

A Hailstone and TreeGraph sequence state that indicates the first occurence of a value that subsequently forms a cycle.

CYCLE_LENGTH = "CYCLE_LENGTH"

A Hailstone and TreeGraph sequence state that indicates the last occurence of a value that has already formed a cycle.

MAX_STOP_OUT_OF_BOUNDS = "MAX_STOP_OUT_OF_BOUNDS"

A Hailstone and TreeGraph sequence state that indicates the sequence or traversal has executed some imposed 'maximum' amount of times.

STOPPING_TIME = "STOPPING_TIME"

A Hailstone sequence state that indicates the stopping time, a value less than the initial, has been reached.

TOTAL_STOPPING_TIME = "TOTAL_STOPPING_TIME"

A Hailstone sequence state that indicates the total stopping time, a value of 1, has been reached.

ZERO_STOP = "ZERO_STOP"

A Hailstone sequence state that indicates the sequence terminated by reaching "0", a special type of "stopping time".