﻿ Algorithm – JavaLab

# Algorithm

## Hanoi Tower

The Tower of Hanoi is a mathematical game or puzzle. The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules: Only one disk can be moved at a time. Each move…

## Fourier Analysis

In 1822, the French mathematician Joseph Fourier found mathematical rules in the periodic wave motion. He was able to divide even the most complex periodic wave motion into simple sine waves. He found that all periodic waves can be divided…

## Ant Nanny’s Larva Collecting

The ants are a family social group. When the size of the group is small, the individual ants run their own ants in their own judgment, but as the group grows larger and more specialized ants are created. For example,…

## Fourier Series

A Fourier series is a way to represent a function as the sum of simple sine waves.

## Boat Puzzle: Missionaries and Cannibals

Both missionaries and cannibals must cross the river safely. Boats can ride up to three people. If the number of cannibals is more than the number of missionaries anywhere, missionaries will be eaten.

## Picking up Stones 2

Pick up the stones each other. The person who picks up the last one wins the game. However, you can not pick up more than twice the amount of stones your opponent has taken.

## Picking up Stones 1

Pick up the stones each other. The person who picks up the last one is lost the game. You can not pick up more than 3 at a time.

## Lorenz’s Water Mill

There is a spinning wheel. There is a small hole in the bottom of the bucket. When the water falls from the faucet above, the spinning wheel rotates with the water flowing down. Let’s predict what direction the spinning wheel…

## Life Game

The Life Game is a cellular automaton devised by the British mathematician John Horton Conway in 1970. The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of…

## Digital Sampling

Sampling is the process of recording the values of a signal at given points in time. The number of samples taken during one second is called the sample rate. By increasing the sample rate, you can record close to the…

## Binary Counting

In mathematics and digital electronics, a binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols: typically 0(zero) and 1(one).