• No results found

Non-computable? 1/45

N/A
N/A
Protected

Academic year: 2021

Share "Non-computable? 1/45"

Copied!
45
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)
(3)

The busy beaver game

A simple yet non-computable function

(4)

A Hierarchy of Program Types

Recursively Enumerable Function

Recursive

(5)

A Hierarchy of Program Types

A function that can be

de-recursed

i.e. that is the function can be computed by a computer

program whose loops are all "for" loops

Recursively Enumerable Function

Recursive

(6)

A Hierarchy of Program Types

Informally, functions that you just have to define them

re-cursively!

A function for which a ‘yes’ answer can be verified by a Turing machine in a finite amount of time

Recursively Enumerable

Recursive

(7)

A Hierarchy of Program Types

A subset of recursively enumerable (RE).

The Turing Machine will always halt in this case.

Recursively Enumerable

Recursive

(8)

A Hierarchy of Program Types

Recursively Enumerable

Recursive

Primitive Recursive

(Non-computable)

Undecidable!

(9)

Non-computable

• An non-computable function is a function

which can’t be computed by any algorithm.

• Equivalently, not by any

Turing machine

!

(10)

The Busy Beaver Game

• The concept was first introduced by Tibor Radó in his 1961 paper, "On Non-Computable Functions".

(11)

The Busy Beaver Game

•What is the maximum number of 1s that

get printed on your tape, for your

given

Turing machine

, when it

halts

?

(12)

The Busy Beaver Game

•We shall use

binary Turing machines

;

that is, Turing machines with the binary

alphabet 0, 1.

•We shall use the term

“card”

instead of

“state”.

(13)

Radó’s “Binary Turing Machine”

Divide a long tape into

squares, each square is a memory location

Read/write head (scanner)

(14)

Radó’s “Binary Turing Machine”

14/45

··· 0 0 0 0 0 0 0 0 ···

Difference Between Rado’s Turing Machine and what we’ve learned in the lecture:

• Initially an all-zero tape

• Start from the middle of the tape • Unbounded to both left and right

thus no left endmark symbol

• No blank symbol ▷

• Can’t “remain stationary”

(15)

“Card”

C

1

0 1 0 2

1 1 1 3

(16)

“Card”

C

1

0 1 0 2

1 1 1 3

(17)

“Card”

C

1

0 1 0 2

1 1 1 3

Contains the alphabet 0,1

(18)

“Card”

C

1

0 1 0 2

1 1 1 3

Contains the alphabet 0,1

The “shift” column:

0 : left shift 1 : right shift

(19)

“Card”

C

1

0 1 0 2

1 1 1 3

Contains the alphabet 0,1

The “shift” column: 0 : left shift 1 : right shift Overprint by The index of next card 0: halt

(20)

A 1-card Turing machine Example

C1

0 1 0 1 1 1 0 0

(21)

A 1-card Turing machine Example

C1

0 1 0 1 1 1 0 0

(22)

A 1-card Turing machine Example

C1

0 1 0 1 1 1 0 0

(23)

A 1-card Turing machine Example

C1

0 1 0 1 1 1 0 0

(24)

A 1-card Turing machine Example

C1

0 1 0 1 1 1 0 0

1 1 1 1 1 0 0 0 0 0

(25)

Rules

•The contestant selects a positive number

n; and makes up his own n-card, binary

Turing machine.

•He starts his machine on the all-zero

tape, and satisfies himself that his

machine

stops

after a certain number of

shifts.

(26)

Rules

• The BB-n champion is the contestant who

achieved the highest score (i.e. the number of 1s on the tape) in the BB-n game.

•The highest score in the BB-n game is

called

the busy beaver function (also

called Rado’s sigma function) Σ (n)

.

(27)

How to compute Σ (n)?

The answer is –

(28)

How to compute Σ (n)?

Overprint Shift Next card Read 0/1 n different cards

(29)

Strategy

To prove Σ(x) is non-computable, we would like to prove that for

some x>x0, Σ(x)≠f(x) for any

computable function x.

In this proof, we will try to prove

(30)

Notation: “-”

Let f(x), g(x) be two functions. We shall

write f(x)>-g(x) to state that f(x)>g(x) for x greater than a certain x0.

Using this notation, we shall now prove the following theorem.

(31)

Theorem

Σ(n)>-f(n) for every computable (that is, general

recursive) function f(n) for n. Hence Σ(n) is non-computable.

(32)
(33)
(34)
(35)

Proof

C1 0 1 1 2 1 1 1 0 C2 0 1 1 3 1 -C3 0 1 0 1 1 -0 0 0 0 0 0 0 0 0 0

(36)

Proof

C1 0 1 1 2 1 1 1 0 C2 0 1 1 3 1 -C3 0 1 0 1 1 -0 0 0 0 1 1 1 0 0 0

(37)
(38)
(39)
(40)
(41)
(42)

Proof

But note that C is decided by F, so n must be sufficiently large.

(43)

How big is Σ(n)?

Even though Σ(n) is non-computable, it is

entirely possible that Σ(n) can be effectively determined for particular values of n.

(44)

How big is Σ(n)?

How many TMs? Cards Max score

64 1 1

20736 2 4

16777216 3 6

25.6 trillion 4 13

•For 5-card busy beaver game, the

maximum score

so far

is 4098.

(45)

Summary

• The busy beaver function a famous function in

computation theory.

• We can prove its non-computability by proving that Σ(n)>f(n) for any computable function n for some

sufficiently large n.

• But we do can find Σ(n) for some n!

• Scientist are now working on 5-card and 6-card

busy beaver game.

References

Related documents

Considering both the massive rise in public and private data as well as the recent rise in data driven research methods, this design work critically reflects on the personal

But I think Guldsmeden very quickly became known for a fantastic breakfast and that is actually one of the things that people are always saying: “ah Guldsmeden, they

(Refer to Table 3.) When comparing the results by cancer type, indi- viduals with a diagnosis other than breast cancer reported improved energy levels (lack of energy was

Sales volumes: FY14 total volumes increased by 37% led by the accelerating usage of stevia by Food and Beverages companies and underpinned by PureCircle’s proprietary Stevia 3.0

• FICON is an upper layer protocol that provides for the transmission of mainframe CCW commands and data over the Fibre Channel transport layers.. World

African American women contribute disproportionately to disease in the United States. Researchers have repeatedly turned to issues related to poverty, access to medical care,

Zener Barrier Protected electrical equipment Safe area Protected field device Local earth. Remote earth Plant earth Main system earth

In addition, we describe the behaviour of this compound in mass spectrometry in the context of correlating between the fragmentation pathways and the electronic charges of