• Keine Ergebnisse gefunden

Complexity Theory

N/A
N/A
Protected

Academic year: 2022

Aktie "Complexity Theory"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Martin Ziegler Distributed on 4.11.2011 Carsten R¨osnick Solutions to be submitted by 10.11.2011 14h25

Complexity Theory

WS 2011/2012, Exercise Sheet #2

EXERCISE 6:

The Turing machines considered in the lecture employ one single head (accessing possibly multiple tapes simultaneously).

a) Formalize the concept of a Turing machine with k heads it can move independently. Where does its transition function map from/to?

b) In view of Exercise 4b) describe now a Turing machine with two heads decidingPALINin linear timeO(n).

EXERCISE 7:

So far we have considered decision problems (i.e. formal languages) L⊆Σ. A Turing machineM is said to compute a function f : dom(f)⊆Σ→Σif

• on inputs~x∈dom(f),Mprints f(~x)and enters the accepting state;

• on inputs~x6∈dom(f)does not enter the accepting state.

Running time and memory consumption are defined canonically. Prove:

a) If f can be computed in polynomial time, there exists a k∈Nwith |f(~x)| ≤O(|~x|k) for all

~x∈dom(f), where|~x|=n denotes the length of~x∈Σn.

b) If f can be computed in polynomial time then the following language, subgraph(f), is polynomial-time decidable:

h~x,~yi:~x∈dom(f),~y4 f(~x) where ~y4~z :⇔ |~y|<|~z| ∨ |~y|=|~z| ∧bin(~y)≤bin(~z)

c) If subgraph(f) is decidable in polynomial time and|f(~x)| ≤O(|~x|k) holds for some k∈N and all~x∈dom(f), then f can be computed in polynomial time.

EXERCISE 8:

Recall the algorithms discussed in the lecture for matrix multiplication in the so-called algebraic model: addition, multiplication, and division of arbitrary (nonzero) elements from the ground field are charged one step each. Fixω≥2 and prove:

a) If multiplication of upper triangular n×n matrices is possible in O(nω) steps then so is multiplication of arbitrary n×n-matrices.

b) If inverting non-singular upper triangular matrices is possible inO(nω)steps then so is mul- tiplication of arbitrary n×n matrices.Hint: Calculate the inverse of

I A 0

0 I B 0 0 I

!

Referenzen

ÄHNLICHE DOKUMENTE

As long as the model of the world and the underlying mental categories are not questioned, the effect of the degree of confidence is that of introducing sudden jumps in the

In order to give a push-down automaton which realizes the above mentioned idea, we need a context-free grammar which generates L. In the former case we compare a with the scanned

A Turing machine either fails to accept an input because it rejects it (entering q reject ) or. because it loops (= does

I A Turing machine either fails to accept an input I because it rejects it (entering q reject ) or. I because it loops (= does

I A Turing machine either fails to accept an input I because it rejects it (entering q reject ) or. I because it loops (= does

Gabriele R¨ oger (University of Basel) Theory of Computer Science April 12, 2021 2 /

Random-access machine (RAM): adds indirect addressing Random-access stored-program machines: related to the von Neumann architecture (very close to modern computer

By additivity again, it follows that every number bigger than N with a computable binary expansion is an l 2 -Betti number arising from a finitely presented group.. Let r be