• Keine Ergebnisse gefunden

Space-Bounded Computation

N/A
N/A
Protected

Academic year: 2022

Aktie "Space-Bounded Computation"

Copied!
6
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Komplexitätstheorie

Space-Bounded Computation

• Input tape: read-only, for free

• working tape: read/write, incurs cost

• output tape: write-only, one-way, for free

streaming computation Def: A

L

B iff there is some log-space

computable f: Σ * →Σ * s.t. xAf(x)B .

Call A NL NL -hard if every B NL NL satisfies B

L

A,

NL NL -complete if in addition ANL NL holds.

L LNL NL P P

NP NP

PSPACE=NPSPACE PSPACE=NPSPACE

EXP EXP

(2)

Komplexitätstheorie

Reductions

• polynomial-time many-one: A

pm

B

f: Σ * →Σ * P P -computable s.t.: xA f(x)B – in general B

pm

Σ

\B (example?)

• log-spacebounded many-one: A

Lm

B

f: Σ * →Σ * L L -computable s.t.: xA f(x)B

– A

Lm

B A

pm

B (proof?)

• polynomial-time Turing Reduction: A

pT

B

A can be solved in polynomial time

by aid of oracle queries to B: AP P

B

A

pm

B A

pT

BA

pT

Σ

\B (proof?)

• Further reductions: truthtable, parsimonious…

(3)

Komplexitätstheorie

Theorem: dirPath is NL NL -complete

Let A

NL NL

, decided by c·log n space-bounded NTM M Input: w; output: dir.Graph G and vertices s,t such that:

M accepts wthere is a path in G from s to t G=(V,E), V:=all configurations of M of size c·log |w|

(K1,K2)∈E :K2 is a successor config of K1

s:=start config of M on w; t:=accept.config (wlog unique)

• M accepts wthere is a path in G from s to t √

• How large is G? Constructible in logarithmic space?

qed

(4)

Komplexitätstheorie

Immerman-Szelepcsényi

L = NL ? =

L = NL ? = coNL coNL ? ? = P ? = P ?

Compare „

P P

vs.

NP NP

L L

vs.

NL NL

:

NL NL

-complete dirGraph, 2unSAT, nonBipartite

NL NL

vs.

P P

:

P P

-complete problems

(probably do not admit an efficient parallelization)

NL NL

vs.

coNL coNL

: solved in 1987, ACM Gödel Prize 1995 !

Theorem (Neil Immerman,

Róbert Szelepcsényi):

NL NL

=

coNL coNL

Proof: Show

dirGraph

coNL coNL

Theorem: For s(n)log n increasing,

NSPACE

NSPACE(

s(n)

)

=

coNSPACE( coNSPACE

s(n)

)

.

(5)

Komplexitätstheorie

Given G=(V,E), s,tV={1,…,m}. Goal:

Logspace NTM accepts iff t not reachable from s.

Ai := { vV : exists path in G of lengthi from s to v }, ci := #Ai , i=0,…,m-1. A0={s}, c0=1. Accept iff tAm-1 Definition: NTM computes (partial) f:⊆Σ*→Σ* iff

• ∀ inputs xdom(f) there is an accepting computation.

• Every accepting computation outputs f(x).

FNL FNL

is closed under composition! (proof?) Lemma: For each i, Ai

NL NL

.

Given (!) ci, logspace NTM can even enumerate Ai:

• For each vV, ‘guess‘ whether vAi (1) or not (0)

• If guessed 1: output, verify (

NL NL

) and increase counter

• In the end, accept iff counter=c !!!

dirGraph coNL coNL

(6)

Komplexitätstheorie

Given G=(V,E), s,tV={1,…,m}. Goal:

Logspace NTM accepts iff t not reachable from s.

Ai := { vV : exists path in G of lengthi from s to v }, ci := #Ai , i=0,…,m-1. A0={s}, c0=1. Accept iff tAm-1

Lemma: For each i, Ai

NL NL

.

Given (!) ci, logspace NTM can even enumerate Ai. Lemma: Given (!) ci, Ai+1

coNL coNL

:

Enumerate Ai and, if no edge to v found, accept.

Lemma: Given ci, logspace NTM can compute ci+1:

For each v, ‘guess‘ whether vAi+1 holds, and verify Proof (Theorem): 1=c0c1c2 c3 → … → cm-1

dirGraph coNL coNL

Referenzen

ÄHNLICHE DOKUMENTE

Institut für Informatik Ludwig-Maximilians-Universität München Prof..

Zu beziehen nur gegen Voreinsendung des Betrages bei Robert Seeger jun., Graz, Albrechtgasse 9, sowie durch sämmtliche

verbringen mit Dir einen Abend pro Woche, an dem Ihr Euch (=Du und Deine StudienkollegInnen und die TutorInnen) ~ennenlemt, gemeinsam die (Trink- )Kultur von Graz und

Eidgenössisches Departement für Umwelt, Verkehr, Energie und Kommunikation UVEK.

 FR  Sécher avec un linge propre et doux  DE  Trocknen Sie mit einem sauberen, frischen Tuch  IT  Asciugare con un panno asciutto e pulito  ES  Seca con un paño

Návod k použitί Lite Mode Brugsanvisning Lite Mode Кαθоδήγηση Lite Mode Kezelési útmutató Lite Mode Istruzioni d’uso Lite Mode Gebruiksaanwijzing Lite Mode

Návod k použitί Lite Mode Brugsanvisning Lite Mode Кαθоδήγηση Lite Mode Kezelési útmutató Lite Mode Istruzioni d’uso Lite Mode Gebruiksaanwijzing Lite Mode

Voor het programmeren van het slot (openen van het menu) druk op de knop ‘Function’ als het symbool ‘M’ in het display verschijnt.. Met de toets ‘1’ scroll up (symbool in