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

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

by Tom Stuart
November 2017
Beginner to intermediate
344 pages
7h 2m
Chinese
GoTop Information, Inc.
Content preview from 深入理解運算原理|從簡單的機器到無所不能的程式
160
|
5
increment_rules(added_one, added_two) +
increment_rules(added_two, added_three)
)
=> #<struct DTMRulebook rules=[]>
>> rulebook.rules.length
=> 18
>> tape = Tape.new(['1', '0', '1'], '1', [], '_')
=> #<Tape 101(1)>
>> dtm = DTM.new(TMConfiguration.new(added_zero, tape), [added_three], rulebook)
=> #<struct DTM >
>> dtm.run; dtm.current_configuration.tape
=> #<Tape 111(0)_>
以這種方式組成狀態和規則的能力,不需要任何明確的支援副常式,只要我們以機器的
大小準備好接受相關的遞增,就能建置任何大小和任何複雜程度的圖靈機規則手冊。
數個磁帶
有時候透過擴充機器的外部儲存空間,可以增加機器的運算能力。舉例來說,如果我們
讓下推自動機存取第 2 個堆疊,它的運算能力會變得更強大,因為兩個堆疊可以用來模
擬無限大的磁帶:每個堆疊儲存模擬磁帶的一半字元,而為了模擬磁帶頭的移動,PDA
可以在堆疊與堆疊之間提出和推入字元,就如同我們在第 148 頁『模擬物』裡的
Tape
實作物。任何存取無限大磁帶的有限狀態機都是圖靈機,所以只需要再加入額外的堆 ...
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