4.2 Space's Complexity, Growth Rate of Functions, Complexity Classes

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

What is the space complexity of a (possibly deterministic) Turing Machine M?

The function:
sM: N → N where sM(n)

Where sM(n) is the maximum number of tape squares M can visit on any input of length n.

2
New cards

What is the maximum number of tape squares in multitape TMs?

The maximum of the numbers for the individual tapes (which differs only by a constant factor from the maximal number of squares visited on all tapes together)

3
New cards

Given f, g: N → R+ when is f of order g?

If there are positive integers c and n0 such that f(n) ≤ c · g (n) for all n ≥ n0.

4
New cards

What is the class of all functions of order g denoted by, and what is the relevance to f?

O(g), so f ∈ O(g)

5
New cards

Given there is a TM M’ for every k-tape TM M, what is L(M’)

L(M’) = L(M) and τM’ ∈ O(τ2M)

6
New cards

What does the theorem “There are arbitrarily complex languages” state?

Let f: N→N be a total computable function.

Then there exists a decidable language L such that for every Turing Machine M accepting L, the time complexity tM​ is not bounded by f.

In other words, there are decidable languages that are arbitrarily complex — no computable function can bound their time complexity.

7
New cards

What does the theorem “There need not exist a fastest Turing Machine” state?

There exists a decidable language L such that for every Turing Machine M accepting L, there exists another Turing Machine M′ with:

L(M′)=L(M)

and 

τM′​∈O(log2​(τM​))

8
New cards

When is a language L decidable in polynomial time?

If there is a Turing Machine M deciding L such that τM ∈ O(nr) for some r ∈ N. The class of all languages decidable in polynomial time is denoted by P.

9
New cards

When is a language L decidable in polynomial space?

If there is a Turing Machine M deciding L such that sM ∈ O(nr) for some r ∈ N. The class of all languages decidable in polynomial space is denoted by PSpace.

10
New cards

What is a path in terms of graphs?

A sequence of nodes connected by edges

11
New cards

What is the path problem?

Input: A graph G and nodes s and t
Question: Does G have a path from s to t

12
New cards

What is the algorithm that solves the path problem?

Marks all nodes that are reachable from node s:

<p>Marks all nodes that are reachable from node s:</p>
13
New cards

When is a language L accepted in nondeterministic polynomial time?

If there is a nondeterministic TM N accepting L such that τN ∈ O(nr) for some r ∈ N. The class of all languages that are accepted in nondeterministic polynomial time is denoted by NP.

14
New cards

When is a language L accepted in nondeterministic polynomial space?

If there is a NTM N accepting L such that sN ∈ O(nr) for some r ∈ N. The class of all languages that are accepted in nondeterministic polynomial space is denoted by NPSpace.

15
New cards

What is a complete graph?

A graph in which each 2 nodes are connected by an edge.

16
New cards

Define the complete subgraph problem

Input: A graph G and k >= 1
Question: Does G have a complete subgraph with k vertices?

17
New cards

What is a Hamiltonian circuit?

A path v0,….,vn through all nodes of a graph such that v0 = vn and v1,….,vn are pairwise distinct.

18
New cards

What is the Hamiltonian cicuit problem?

Input: A graph C
Question: Does G have a Hamiltonian circuit

Explore top flashcards