Skip to Content
深入理解運算原理|從簡單的機器到無所不能的程式
book

深入理解運算原理|從簡單的機器到無所不能的程式

by Tom Stuart
November 2017
Beginner to intermediate
344 pages
7h 2m
Chinese
GoTop Information, Inc.
Content preview from 深入理解運算原理|從簡單的機器到無所不能的程式
142
|
5
然而,這種特定形式的外部記憶體會對如何使用儲存之後的資料強加不便的限制。但只
要以更靈活的儲存機制替換堆疊,我們就可以消除這些限制並且增強運算能力。
儲存空間
在紙上編寫某些符號通常可以完成運算,我們可以假設這張紙被分成像是孩子
算術書的諸多方塊。基本的算術有時會用到這紙張的二維字元。但是這類的使
用也一定能夠避免,而我認為將會獲得同意的是,紙張的二維字元不是運算的
本質。接著我假設運算是在一維紙張完成,也就是在劃分成諸多方塊的磁帶。
—艾倫圖靈,可運算的數值,在可判斷性的應用
http://dx.doi.org/10.1112/plms/s2-42.1.230
圖靈的解決方法是為機器配備長度無限的空白磁帶(有效的一維陣列,可視需要在兩端
增加),並允許它在磁帶的任何位置讀取和寫入字元。單一磁帶同時當作儲存空間和輸
入:可以預先將一串字元填入磁帶當作輸入,而機器可以在執行時讀取那些字元,並在
必要時覆寫它們。
可以存取無限長度磁帶的有限狀態機稱為
圖靈機
Turing machine
TM)。這個名稱
通常意指具有決定論規則的機器,但我們也可以稱它為
決定論圖靈機
deterministic
Turing machine
DTM),以避免模糊不清。
我們已經知道下推自動機只能存取它外部儲存空間裡的單一固定位置(堆疊頂端),但
是這對圖靈機似乎限制太大了。提供磁帶的整個重點是允許任意數量的資料儲存在磁帶
的任何地方,並能以任何順序再次讀取,那麼我們該如何設計能和磁帶的整個長度互動
的機器呢? ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

JSON實務手冊

JSON實務手冊

Tom Marrs

Publisher Resources

ISBN: 9789864766000