9: Past Paper Stuff Flashcards

1
Q

What is co-NP?

A

The set of problems whose complement is in NP.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is PSPACE?

A

The set of all decision problems that can be solved by a Turing machine using a polynomial amount of space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is QSAT?

A

Quantified SAT, aka Quantified Boolean Formula, are problems finding the satisfiability of formulae defined in quantified propositional logic, where every variable is quantified (or bound), using either existential or universal quantifiers, at the beginning of the sentence.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you determine if a problem is NP-complete?

A

Prove that the problem is in NP, and then that any problem in NP can be reduced/transformed to it (in practice only need to show 1 problem can be transformed into it since, in turn, all others must be able to transform into that 1 problem).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you determine if a language can be recognised by an FSA?

A

??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you determine if a language can be recognised by a PDA?

A

??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Turing-completeness?

A

A programming language is said to be Turing-complete if we can simulate every Turing machine in it, or equivalently that you can simulate the Universal Turing Machine on it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you determine if an algorithm falls within the Master Theorem?

A

If it is of the general form of 𝑇(𝑛) = π‘Ž β‹… 𝑇 (𝑛 / 𝑏) + 𝑓 (𝑛)

where π‘Ž β‰₯ 1 and 𝑏 > 1 are constants, and 𝑓 (𝑛) is asymptotically positive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can you use the master Theorem to find the time complexity of an algorithm to which it applies?

A

??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How can you determine the best, average, and worst-case time complexities of an algorithm?

A

??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does it mean for a problem to be decidable, and semi-decidable?

A

A language L is Turing-decidable if there exists a decider TM, M with L = L(M). A decider TM is one that always halts and never infinitely loops. So, equivalently, a decidable problem is one that has an algorithm to resolve it to a yes/no answer.

A semi-decidable language is one which accepts all inputs of words in the language and either rejects or infinitely loops on input words not in the language. So the difference between semi and fully decidable languages is the absence of guaranteed halting found with fully decidable languages, since TMs running for semi-decidable words may infinitely loop when the input is a word no in the language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How can you determine if a problem is decidable, semi-decidable, or undecidable?

A

??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How can you design a DFA to recognise a specific language?

A

??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How can you convert from a DFA to a regular expression?

A

??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the Pumping Lemma for formal languages and its proof?

A

??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Prove that if L is a regular language then there is an NFA N with a single accept state such that L ( N ) = L. Fully justify your claim that the languages L ( N ) and L are equal.

A

??

17
Q

How do you convert from a language to a CFG?

A

??

18
Q

How do you convert from a language to a TM?

A

??

19
Q

What does it mean for a set of languages to be closed under union?

A

??

20
Q

Why is the collection of Turing-recognisable languages is closed under union?

A

??

21
Q

What is EXPTIME?

A

The set of decision problems that can be solved by a deterministic Turing machine within exponential asymptotic time.

22
Q

What is NEXPTIME?

A

The set of decision problems that can be solved by a non-deterministic Turing machine within exponential asymptotic time.

23
Q

How can you solve a recurrence relation?

A

??

24
Q

How do you convert from a language to a CFG?

A

??

25
Q

How do you prove a language to be regular?

A

??

26
Q

How do you prove a language to be irregular?

A

??

27
Q

How do you determine whether a language is context-free?

A

??

28
Q

What is the complement of a language?

A

For a language X βŠ† Ξ£* then the complement of X, denoted XΜ„, is the language of all words in Ξ£* that are not in X.

So X is the language built from all of the words of the alphabet Ξ£, and the complement of X, XΜ„, is the language made of all remaining words in Ξ£* (all words built from the alphabet Ξ£) that are not in X.

29
Q

Is the complement of a regular language regular? Why?

A

??

30
Q

What is Rice’s theorem?

A

Let P be a nontrivial property of the languages recognised by Turing machines. Then the following language is undecidable:

LP = { | M satisfies P}.
That is, there is no algorithm to decide whether a TM satisfies P.

31
Q

How can you determine if it is decidable if a TM accepts a given language?

A

??

32
Q

How can you determine if it is decidable if an NFA accepts a given language?

A

??

33
Q

What are the relationships between NP, co-NP, P, NP-complete, PSPACE, and co-NEXP problems?

A

??

34
Q

How can you determine if a problem is in NP?

A

It is in NP if you can provide a certificate allowing the problem to be verified by a nondeterministic TM within polynomial asymptotic time complexity.