搜索乐高、人仔、零件

图灵机——乐高电脑

Turing Machine – Working Lego Computer

作者:The Bananaman 201864801 / 发布于:2024-09-12

What is a Turing machine?
It's an abstract model of an algorithmic machine. Although it was not designed to be implemented in real life, some people actually do this using esoteric "technologies" such as Minecraft Redstone or Conway's Game of Life – I decided to make it using Lego bricks. It's named after its creator, Alan Turing– an English cryptologist.
The machine consists of:
  • an infinitely long (in real life: long enough to do all practical programs) tape with symbols that can be moved left and right
  • a "head" over one of the symbols that can read it and overwrite it with a new one,
  • some registers containing the state of the machine,
  • a table linking each combination of state and symbol to an instruction what to do next.
…and the working cycle of the machine looks like this:
  1. read the symbol from the tape
  2. based on the symbol and the state, see what to do next in the table
  3. based on the instruction, go to a new state and print a new symbol in place of the one that has been read
  4. also based on the instruction, move the tape 1 symbol left or right or exit the program
The cycle continues until the machine stops. This way it can execute any computer algorithm – so it's technically a computer, although it works a bit differently than the electronic ones we use every day.

About the model
The model has 4 ( 2²) possible symbols and 8 (2 ³) possible states, so in total 32 possible symbol-state combinations. Each instruction has 7 bits (3 for the state, 2 for the symbol, 1 for moving left/right and 1 for stopping), so the "source code" takes 7*32 = 224 bits or 28 bytes. That means you can make 2^224 2.69*10⁶⁷ programs ! (most of them will be useless though).
The mechanism is also quiet complex for a Lego set. It connects all the functions to 1 input, so that the model requires no electric motor. You can see how it works in the video.

Won't there be a problem with Intellectual Property?
No, the Turing machine is a mathematical model and has no Intellectual Property :)

Isn't it too big?
Since October 2024, the Lego IDEAS' part count limit is 5000 parts. This model has ~2900 parts which still could make it quiet expensive, but a lot of them are functional (i.e. part of the mechanism) or used to make the framework more sturdy because the mechanism is very precise and needs good support.

Why would it be a good set?
Because:
  • You can play with it,
  • You can make your own programs,
  • It has an interesting mechanism inside,
  • Its an implementation of a popular theoretical model.

投稿状态

10000
票支持
待评审
状态
获得10000票支持 2024-10-25
获得5000票支持 2024-10-06
获得编辑选择 2024-09-26
获得1000票支持 2024-09-23
获得100票支持 2024-09-12
作者投稿 2024-09-12

猜你喜欢

Kerbal太空计划-模块化船舶系统

Sam67c / 2023-05-26

The Yellow Brick / 2020-12-20

海洋生物

Brick Dangerous / 2021-01-11

极地快车。20周年

Adwind / 2021-12-28

乐高运河游艇

JonasKramm / 2023-10-17

巫师小屋

piece to piece / 2023-02-09

近期热门

42083
布加迪 Chiron
# 42083 | 零件:3599
71043
霍格沃兹城堡
# 71043 | 零件:6020
10316
指环王™幽谷
# 10316 | 零件:6167
42171
奔驰AMG F1
# 42171 | 零件:1642
42143
法拉利Daytona
# 42143 | 零件:3778
42172
迈凯伦P1
# 42172 | 零件:3893
76269
复仇者大厦
# 76269 | 零件:5201
75331
剃刀冠号 UCS
# 75331 | 零件:6187
42115
兰博基尼
# 42115 | 零件:3696
40698
Books Are My Passion
# 40698 | 零件:285
返回顶部