CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 15 Mälardalen University...

108
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 15 Mälardalen University 2007

description

CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 15 Mälardalen University 2007. - PowerPoint PPT Presentation

Transcript of CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 15 Mälardalen University...

Page 1: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

1

CD5560

FABERFormal Languages, Automata

and Models of ComputationLecture 15

Mälardalen University

2007

Page 2: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

2

Content

Church-Turing Thesis

Other Models of ComputationTuring MachinesRecursive FunctionsPost SystemsRewriting Systems

Matrix Grammars Markov AlgorithmsLindenmayer-Systems

Fundamental Limits of ComputationBiological ComputingQuantum Computing

Page 3: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

3

Church-Turing Thesis*

*Source: Stanford Encyclopaedia of Philosophy

Page 4: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

4

A Turing machine is an abstract representation of a computing device.

It is more like a computer program (software) than a computer (hardware).

Page 5: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

5

LCMs [Logical Computing Machines: Turing’s expression for Turing machines] were first proposed by Alan Turing, in an attempt to give a mathematically precise definition of "algorithm" or "mechanical procedure".

Page 6: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

6

The Church-Turing thesis concerns an effective or mechanical method in logic and mathematics.

Page 7: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

7

A method, M, is called ‘effective’ or ‘mechanical’ just in case:

1. M is set out in terms of a finite number of exact instructions (each instruction being expressed by means of a finite number of symbols);

2. M will, if carried out without error, always produce the desired result in a finite number of steps;

3. M can (in practice or in principle) be carried out by a human being unaided by any machinery except for paper and pencil;

4. M demands no insight or ingenuity on the part of the human being carrying it out.

Page 8: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

8

Turing’s thesis: LCMs [logical computing machines; TMs] can do anything that could be described as "rule of thumb" or "purely mechanical". (Turing 1948)

He adds: This is sufficiently well established that it is now agreed amongst logicians that "calculable by means of an LCM" is the correct accurate rendering of such phrases.

Page 9: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

9

Turing introduced this thesis in the course of arguing that the Entscheidungsproblem, or decision problem, for the predicate calculus - posed by Hilbert in 1928 was unsolvable.

Page 10: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

10

Church’s account of the Entscheidungsproblem

By the Entscheidungsproblem of a system of symbolic logic is here understood the problem to find an effective method by which, given any expression Q in the notation of the system, it can be determined whether or not Q is provable in the system.

Page 11: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

11

The truth table test is such a method for the propositional calculus.

Turing showed that, given his thesis, there can be no such method for the predicate calculus.

Page 12: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

12

Turing proved formally that there is no TM which can determine, in a finite number of steps, whether or not any given formula of the predicate calculus is a theorem of the calculus.

So, given his thesis that if an effective method exists then it can be carried out by one of his machines, it follows that there is no such method to be found.

Page 13: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

13

Church’s thesis: A function of positive integers is effectively calculable only if recursive.

Page 14: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

14

Misunderstandings of the Turing Thesis

Turing did not show that his machines can solve any problem that can be solved "by instructions, explicitly stated rules, or procedures" and nor did he prove that a universal Turing machine "can compute any function that any computer, with any architecture, can compute".

Page 15: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

15

Turing proved that his universal machine can compute any function that any Turing machine can compute; and he put forward, and advanced philosophical arguments in support of, the thesis here called Turing’s thesis.

Page 16: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

16

A thesis concerning the extent of effective methods - procedures that a human being unaided by machinery is capable of carrying out - has no implication concerning the extent of the procedures that machines are capable of carrying out, even machines acting in accordance with ‘explicitly stated rules’.

Page 17: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

17

Among a machine’s repertoire of atomic operations there may be those that no human being unaided by machinery can perform.

Page 18: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

18

Turing introduces his machines as an idealised description of a certain human activity, the one of numerical computation, which until the advent of automatic computing machines was the occupation of many thousands of people in commerce, government, and research establishments.

Page 19: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

19

Turing’s "Machines". These machines are humans who calculate. (Wittgenstein)

A man provided with paper, pencil, and rubber, and subject to strict discipline, is in effect a universal machine. (Turing)

Page 20: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

20

The Entscheidungsproblem is the problem of finding a humanly executable procedure of a certain sort, and Turing’s aim was precisely to show that there is no such procedure in the case of predicate logic.

Page 21: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

21

Other Models of Computation

Page 22: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

22

Models of Computation

• Turing Machines• Recursive Functions• Post Systems• Rewriting Systems

Page 23: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

23

Church’s Thesis (extended) All models of computation are equivalent.

Turing’s Thesis A computation is mechanical if and only ifit can be performed by a Turing Machine.

Page 24: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

24

Post Systems

• Axioms

• Productions

Very similar to unrestricted grammars.

Page 25: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

25

Theorem: A language is recursively enumerable if and only if it is generated by a Turing Machine.

Page 26: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

26

Theorem: A language is recursively enumerable if and only if it is generated by a recursive function.

Page 27: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

27

Post Systems Example: Unary Addition

Axiom: 1111

Productions:

1111

321321

321321VVVVVVVVVVVV

Page 28: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

28

111111111111111111

11 321321 VVVVVV

11 321321 VVVVVV

A production:

Page 29: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

29

Post systems are good for proving mathematical statements from a set of Axioms.

Page 30: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

30

Theorem: A language is recursively enumerable if and only if it is generated by a Post system.

Page 31: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

31

Rewriting Systems

• Matrix Grammars

• Markov Algorithms

• Lindenmayer-Systems (L-Systems)

They convert one string to another

Very similar to unrestricted grammars.

Page 32: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

32

Matrix Grammars

Example:

213

22112

211

,:,:

:

SSPcbSSaSSP

SSSP

A set of productions is applied simultaneously.

Derivation:

aabbccccbbSaaScbSaSSSS 212121

Page 33: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

33

213

22112

211

,:,:

:

SSPcbSSaSSP

SSSP

}0:{ ncbaL nnn

Page 34: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

34

Theorem: A language is recursively enumerable if and only if it is generated by a Matrix grammar.

Page 35: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

35

Markov Algorithms

Grammars that produce

Example:

SSaSbSab

Derivation:

SaSbaaSbbaaabbb

Page 36: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

36

SSaSbSab

}0:{ nbaL nn

In general: }:{*

wwL

Page 37: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

37

Theorem: A language is recursively enumerable if and only if it is generated by a Markov algorithm.

Page 38: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

38

Lindenmayer-Systems

They are parallel rewriting systems

Example: aaa

aaaaaaaaaaaaaaa Derivation:

}0:{ 2 naLn

Page 39: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

39

Lindenmayer-Systems are not generalas recursively enumerable languages

Theorem: A language is recursively enumerable if and only if it is generated by an Extended Lindenmayer-System.

Extended Lindenmayer-Systems: uyax ),,(

context

Page 40: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

40

L-System Example: Fibonacci numbers

Consider the following simple grammar:

variables : A B constants : none start: A rules: A B B AB

Page 41: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

41

This L-system produces the following sequence of strings ...

Stage 0 : A Stage 1 : B Stage 2 : AB Stage 3 : BAB Stage 4 : ABBAB Stage 5 : BABABBAB Stage 6 : ABBABBABABBAB Stage 7 : BABABBABABBABBABABBAB

Page 42: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

42

If we count the length of each string, we obtain the Fibonacci sequence of numbers :

1 1 2 3 5 8 13 21 34 ....

Page 43: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

43

Example - Algal growth

The figure shows the pattern of cell lineages found in the alga Chaetomorpha linum.

To describe this pattern, we must let the symbols denote cells in different states, rather than different structures.

Page 44: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

44

This growth process can be generated from an axiom A and growth rules

A DB B C C D D E E A

Page 45: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

45

Here is the pattern generated by this model.

It matches the arrangement of cells in the original alga.

Stage 0 : A Stage 1 : D B Stage 2 : E C Stage 3 : A D Stage 4 : D B E Stage 5 : E C A Stage 6 : A D D B Stage 7 : D B E E C Stage 8 : E C A A D Stage 9 : A D D B D B E Stage 10 : D B E E C E C A Stage 11 : E C A A D A D D B

Page 46: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

46

Example - a compound leaf (or branch)Leaf1 { ; Name of the l-system, "{" indicates start ; Compound leaf with alternating branches, angle 8 ; Set angle increment to (360/8)=45 degrees axiom x ; Starting character string a=n ; Change every "a" into an "n" n=o ; Likewise change "n" to "o" etc ... o=p p=x b=e e=h h=j j=y x=F[+A(4)]Fy ; Change every "x" into "F[+A(4)]Fy" y=F[-B(4)]Fx ; Change every "y" into "F[-B(4)]Fx" [email protected]@i1.18 } ; final } indicates end

Page 47: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

47

http://www.xs4all.nl/~cvdmark/tutor.html(Cool site with animated L-systems)

Page 48: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

48

Here is a series of forms created by slowly changing the angle parameter. lsys00.ls

Check the rest of the Gallery of L-systems:http://home.wanadoo.nl/laurens.lapre/

Page 49: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

49

A model of a horse chestnut tree inspired by the work of Chiba and Takenaka.

Here branches compete for light from the sky hemisphere. Clusters of leaves cast shadows on branches further down. An apex in shade does not produce new branches. An existing branch whose leaves do not receive enough light dies and is shed from the tree. In such a manner, the competition for light controls the density of branches in the tree crowns.

Reception

Internal processes

Response

Plant

Response

Internal processes

Reception

Environment

Page 50: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

50

Reception

Internal processes

Response

Plant

Response

Internal processes

Reception

Environment

Page 51: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

51

Apropos adaptive reactive systems:"What's the color of a chameleon put onto a mirror?" -Stewart

Brand (Must be possible to verify experimentally, isn’t it?)

Page 52: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

52

Fundamental Limits of Computation

Page 53: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

53

Biological Computing

Page 54: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

54

DNA Based Computing

Despite their respective complexities, biological and mathematical operations have some similarities:

• The very complex structure of a living being is the result of applying simple operations to initial information encoded in a DNA sequence (genes).

• All complex math problems can be reduced to simple operations like addition and subtraction.

Page 55: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

55

For the same reasons that DNA was presumably selected for living organisms as a genetic material, its stability and predictability in reactions, DNA strings can also be used to encode information for mathematical systems.

Page 56: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

56

The Hamiltonian Path ProblemThe objective is to find a path from start to end going

through all the points only once.

This problem is difficult for conventional (serial logic) computers because they must try each path one at a time. It is like having a whole bunch of keys and trying to see which fits a lock.

Page 57: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

57

Conventional computers are very good at math, but poor at "key into lock" problems. DNA based computers can try all the keys at the same time (massively parallel) and thus are very good at key-into-lock problems, but much slower at simple mathematical problems like multiplication.

The Hamiltonian Path problem was chosen because every key-into-lock problem can be solved as a Hamiltonian Path problem.

Page 58: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

58

Solving the Hamiltonian Path Problem

1. Generate random paths through the graph. 2. Keep only those paths that begin with the start city

(A) and conclude with the end city (G). 3. Because the graph has 7 cities, keep only those

paths with 7 cities. 4. Keep only those paths that enter all cities at least

once. 5. Any remaining paths are solutions.

Page 59: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

59

Solving the Hamiltonian Path Problem

The key to solving the problem was using DNA to perform the five steps in the above algorithm.

These interconnecting blocks can be used to model DNA:

Page 60: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

60

DNA tends to form long double helices:

The two helices are joined by "bases", represented here by coloured blocks. Each base binds only one other specific base. In our example, we will say that each coloured block will only bind with the same colour. For example, if we only had red blocks, they would form a long chain like this:

Any other colour will not bind with red:

Page 61: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

61

Programming with DNAStep 1: Create a unique DNA sequence for each city A

through G. For each path, for example, from A to B, create a linking piece of DNA that matches the last half of A and first half of B:

Here the red block represents city A, while the orange block represents city B. The half-red half-orange block connecting the two other blocks represents the path from A to B.

In a test tube, all the different pieces of DNA will randomly link with each other, forming paths through the graph.

Page 62: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

62

Step 2: Because it is difficult to "remove" DNA from the solution, the target DNA, the DNA which started at A and ended at G was copied over and over again until the test tube contained a lot of it relative to the other random sequences.

This is essentially the same as removing all the other pieces. Imagine a sock drawer which initially contains one or two coloured socks. If you put in a hundred black socks, chances are that all you will get if you reach in is black socks!

Page 63: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

63

Step 3: Going by weight, the DNA sequences which were 7 "cities" long were separated from the rest.

A "sieve" was used which allows smaller pieces of DNA to pass through quickly, while larger segments are slowed down. The procedure used actually allows you to isolate the pieces which are precisely 7 cities long from any shorter or longer paths.

Page 64: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

64

Step 4: To ensure that the remaining sequences went through each of the cities, "sticky" pieces of DNA attached to magnets were used to separate the DNA.

The magnets were used to ensure that the target DNA remained in the test tube, while the unwanted DNA was washed away. First, the magnets kept all the DNA which went through city A in the test tube, then B, then C, and D, and so on. In the end, the only DNA which remained in the tube was that which went through all seven cities.

Page 65: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

65

Step 5: All that was left was to sequence the DNA, revealing the path from A to B to C to D to E to F to G.

Page 66: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

66

Advantages

The above procedure took approximately one week to perform. Although this particular problem could be solved on a piece of paper in under an hour, when the number of cities is increased to 70, the problem becomes too complex for even a supercomputer.

While a DNA computer takes much longer than a normal computer to perform each individual calculation, it performs an enormous number of operations at a time (massively parallel).

Page 67: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

67

DNA computers also require less energy and space than normal computers. 1000 litres of water could contain DNA with more memory than all the computers ever made, and a pound of DNA would have more computing power than all the computers ever made.

Page 68: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

68

The Future

DNA computing is less than ten years old and for this reason, it is too early for either great optimism of great pessimism.

Early computers such as ENIAC filled entire rooms, and had to be programmed by punch cards. Since that time, computers have become much smaller and easier to use.

Page 69: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

69

DNA computers will become more common for solving very complex problems.

Just as DNA cloning and sequencing were once manual tasks, DNA computers will also become automated. In addition to the direct benefits of using DNA computers for performing complex computations, some of the operations of DNA computers already have, and perceivably more will be used in molecular and biochemical research.

Read more at:http://www.cis.udel.edu/~dna3/DNA/dnacomp.html; http://dna2z.com/dnacpu/dna.html;http://www.liacs.nl/home/pier/webPagesDNA; http://www.corninfo.chem.wisc.edu/writings/DNAcomputing.html;http://www.comp.leeds.ac.uk/seth/ar35/

Page 70: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

70

Quantum Computing

Page 71: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

71

Today: fraction of micron (10-6 m) wide logic gates and wires on the surface of silicon chips.

Soon they will yield even smaller parts and inevitably reach a point where logic gates are so small that they are made out of only a handful of atoms.

1 nm = 10-9 m

Page 72: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

72

On the atomic scale matter obeys the rules of quantum mechanics, which are quite different from the classical rules that determine the properties of conventional logic gates.

So if computers are to become smaller in the future, new, quantum technology must replace or supplement what we have now.

Page 73: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

73

What is quantum mechanics?

The deepest theory of physics; the framework within which all other current theories, except the general theory of relativity, are formulated. Some of its features are:

Quantisation (which means that observable quantities do not vary continuously but come in discrete chunks or 'quanta'). This is the one that makes computation, classical or quantum, possible at all.

Page 74: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

74

Interference (which means that the outcome of a quantum process in general depends on all the possible histories of that process).

This is the feature that makes quantum computers qualitatively more powerful than classical ones.

Page 75: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

75

Entanglement (Two spatially separated and non-interacting quantum systems that have interacted in the past may still have some locally inaccessible information in common – information which cannot be accessed in any experiment performed on either of them alone.)

This is the one that makes quantum cryptography possible.

Page 76: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

76

The discovery that quantum physics allows fundamentally new modes of information processing has required the existing theories of computation, information and cryptography to be superseded by their quantum generalisations.

Page 77: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

77

Let us try to reflect a single photon off a half-silvered mirror i.e. a mirror which reflects exactly half of the light which impinges upon it, while the remaining half is transmitted directly through it.

It seems that it would be sensible to say that the photon is either in the transmitted or in the reflected beam with the same probability.

Page 78: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

78

Indeed, if we place two photodetectors behind the half-silvered mirror in direct lines of the two beams, the photon will be registered with the same probability either in the detector 1 or in the detector 2.

Does it really mean that after the half-silvered mirror the photon travels in either reflected or transmitted beam with the same probability 50%?

No, it does not ! In fact the photon takes `two paths at once'.

Page 79: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

79

This can be demonstrated by recombining the two beams with the help of two fully silvered mirrors and placing another half-silvered mirror at their meeting point, with two photodectors in direct lines of the two beams.

With this set up we can observe a truly amazing quantum interference phenomenon.

Page 80: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

80

If it were merely the case that there were a 50% chance that the photon followed one path and a 50% chance that it followed the other, then we should find a 50% probability that one of the detectors registers the photon and a 50% probability that the other one does.

However, that is not what happens. If the two possible paths are exactly equal in length, then it turns out that there is a 100% probability that the photon reaches the detector 1 and 0% probability that it reaches the other detector 2. Thus the photon is certain to strike the detector 1!

Page 81: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

81

It seems inescapable that the photon must, in some sense, have actually travelled both routes at once for if an absorbing screen is placed in the way of either of the two routes, then it becomes equally probable that detector 1 or 2 is reached.

Page 82: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

82

Blocking off one of the paths actually allows detector 2 to be reached. With both routes open, the photon somehow knows that it is not permitted to reach detector 2, so it must have actually felt out both routes.

It is therefore perfectly legitimate to say that between the two half-silvered mirrors the photon took both the transmitted and the reflected paths.

Page 83: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

83

Using more technical language, we can say that the photon is in a coherent superposition of being in the transmitted beam and in the reflected beam.

In much the same way an atom can be prepared in a superposition of two different electronic states, and in general a quantum two state system, called a quantum bit or a qubit, can be prepared in a superposition of its two logical states 0 and 1. Thus one qubit can encode at a given moment of time both 0 and 1.

Page 84: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

84

In principle we know how to build a quantum computer; we can start with simple quantum logic gates and try to integrate them together into quantum circuits.

A quantum logic gate, like a classical gate, is a very simple computing device that performs one elementary quantum operation, usually on two qubits, in a given period of time.

Of course, quantum logic gates are different from their classical counterparts because they can create and perform operations on quantum superpositions.

Page 85: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

85

So the advantage of quantum computers arises from the way they encode a bit, the fundamental unit of information.

The state of a bit in a classical digital computer is specified by one number, 0 or 1.

An n-bit binary word in a typical computer is accordingly described by a string of n zeros and ones.

Page 86: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

86

A quantum bit, called a qubit, might be represented by an atom in one of two different states, which can also be denoted as 0 or 1.

Two qubits, like two classical bits, can attain four different well-defined states (0 and 0, 0 and 1, 1 and 0, or 1 and 1).

Page 87: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

87

But unlike classical bits, qubits can exist simultaneously as 0 and 1, with the probability for each state given by a numerical coefficient.

Describing a two-qubit quantum computer thus requires four coefficients. In general, n qubits demand 2n numbers, which rapidly becomes a sizable set for larger values of n.

Page 88: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

88

For example, if n equals 50, about 1015 numbers are required to describe all the probabilities for all the possible states of the quantum machine--a number that exceeds the capacity of the largest conventional computer.

A quantum computer promises to be immensely powerful because it can be in multiple states at once (superposition) -- and because it can act on all its possible states simultaneously.

Thus, a quantum computer could naturally perform myriad operations in parallel, using only a single processing unit.

Page 89: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

89

The most famous example of the extra power of a quantum computer is Peter Shor's algorithm for factoring large numbers.

Factoring is an important problem in cryptography; for instance, the security of RSA public key cryptography depends on factoring being a hard problem.

Despite much research, no efficient classical factoring algorithm is known.

Page 90: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

90

However if we keep on putting quantum gates together into circuits we will quickly run into some serious practical problems.

The more interacting qubits are involved the harder it tends to be to engineer the interaction that would display the quantum interference.

Apart from the technical difficulties of working at single-atom and single-photon scales, one of the most important problems is that of preventing the surrounding environment from being affected by the interactions that generate quantum superpositions.

Page 91: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

91

The more components the more likely it is that quantum computation will spread outside the computational unit and will irreversibly dissipate useful information to the environment.

This process is called decoherence. Thus the race is to engineer sub-microscopic systems in which qubits interact only with themselves but not not with the environment.

Page 92: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

92

But, the problem is not entirely new!

Remember STM? (Scanning Tuneling Microscopy )

STM was a Nobel Prize winning invention by Binning and Rohrer at IBM Zurich Laboratory in the early 1980s

Page 93: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

93

Title : Quantum Corral Media : Iron on Copper (111)

Page 94: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

94

Scientists discovered a new method for confining electrons to artificial structures at the nanometer length scale.

Surface state electrons on Cu(111) were confined to closed structures (corrals) defined by barriers built from Fe adatoms. T

The barriers were assembled by individually positioning Fe adatoms using the tip of a low temperature scanning tunnelling microscope (STM). A circular corral of radius 71.3 Angstrom was constructed in this way out of 48 Fe adatoms.

Page 95: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

95

The standing-wave patterns in the local density of states of the Cu(111) surface. These spatial oscillations are quantum-mechanical interference patterns caused by scattering of the two-dimensional electron gas off the Fe adatoms and point defects.

Page 96: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

96

What will quantum computers be good at?

The most important applications currently known:

• Cryptography: perfectly secure communication. • Searching, especially algorithmic searching

(Grover's algorithm). • Factorising large numbers very rapidly

(Shor's algorithm). • Simulating quantum-mechanical systems

efficiently

Page 97: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

97

What is Computation?

Theoretical Computer Science 317 (2004)

Burgin, M., Super-Recursive Algorithms, Springer Monographs in Computer Science, 2005, ISBN: 0-387-95569-0

Minds and Machines (1994, 4, 4) “What is Computation?”

Journal of Logic, Language and Information (Volume 12 No 4 2003) What is information?

Page 98: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

98

Theoretical Computer Science, 2004 Volume:317 issue:1-3 Hypercomputation

Three aspects of super-recursive algorithms and hypercomputation or finding black swans Burgin, Klinger Toward a theory of intelligence KugelAlgorithmic complexity of recursive and inductive algorithms BurginCharacterizing the super-Turing computing power and efficiency of classical fuzzy Turing machines WiedermannExperience, generations, and limits in machine learning Burgin, KlingerHypercomputation with quantum adiabatic processes KieuSuper-tasks, accelerating Turing machines and uncomputability ShagrirNatural computation and non-Turing models of computation MacLennanContinuous-time computation with restricted integration capabilities CampagnoloThe modal argument for hypercomputing minds Bringsjord, ArkoudasHypercomputation by definition WellsThe concept of computability ClelandUncomputability: the problem of induction internalized KellyHypercomputation: philosophical issues Copeland

Page 99: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

99

FABER COURSE WRAP-UPHighlights

Page 100: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

100

REGULAR LANGUAGES

Mathematical PreliminariesLanguages, Alphabets and StringsOperations on Strings Operations on Languages Regular ExpressionsFinite AutomataRegular Grammars

Page 101: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

101

CONTEXT-FREE LANGUAGES Context-Free Languages, CFLPushdown Automata, PDAPumping Lemma for CFLSelected CFL Problems

Page 102: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

102

TURING MACHINES AND DECIDABILITY

Unrestricted GrammarsTuring MachinesDecidability

OTHER MODELS OF COMPUTATION

Page 103: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

103

EXAM

1. DFA & RE...minimal DFA2. REGULAR OR NO?3. PUSH DOWN AUTOMATON (PDA)3. CONTEXT FREE LANGUAGES4. PRIMITIVE RECURSION5. TURING MASCHINE 6. DECIDABILITY

Page 104: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

104

One must pass all three midterms in order to pass the course. (7+7+6 points)

points total examMidterm 1 (RL) 5+5+4 14 8 + 6Midterm 2 (CFL) 5+5+4 14 8 + 6Midterm 3 (RFL) 4+4+4 12 6 + 6 

Page 105: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

105

The final exam is open-book, which means you can have one book of your choice with you.

Page 106: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

106

Midterm Exam 3Restriction-Free Languages

Time: on Thursday 2007-05-31, 13:15-15:00 It is OPEN BOOK/OPEN NOTES. (This means you are allowed to bring in one book of your choice or your lecture notes.)It will cover Turing Machines/Restriction-free Languages).

You will have the two hours to do the test.

Page 107: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

107

THAT’S ALL FOLKS!

…so you should now be well on your way to finishing the course…

good luck!

Page 108: CD5560 FABER Formal Languages, Automata  and Models of Computation Lecture 15 Mälardalen University 2007

108

REFERENCES

1. Lenart Salling, Formella språk, automater och beräkningar

2. Peter Linz, An Introduction to Formal Languages and Automata

3. http://www.cs.rpi.edu/courses/ Models of Computation, C Busch

4. http://www.cs.duke.edu/~rodger Mathematical Foundations of Computer Science; Susan H. Rodger; Duke University