CS 456 Final Exam (T/F/O & fill & Mult.Choice)

5.0(1)
studied byStudied by 12 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/147

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.

148 Terms

1
New cards

Every subset of a regular language is regular.

False

2
New cards

Let L be the language over {a,b,c} consisting of all strings which have more a's than b's and more b's than c's. There is some PDA that accepts L.

False

3
New cards

The intersection of any regular language with any context-free language is context-free.

True

4
New cards

The intersection of any two context-free languages is context-free.

False

5
New cards

Every language accepted by a non-deterministic machine is accepted by some deterministic machine.

True

6
New cards

The language {a^n b^n c^n : n is prime} is decidable.

True

7
New cards

If a language L is EXP-space complete, L must be decidable.

True

8
New cards

NC = P

Open

9
New cards

P = NP

Open

10
New cards

EXP-time = P-time

False

11
New cards

The Boolean Circuit Problem is NC

Open

12
New cards

3-SAT is P-time.

Open

13
New cards

Addition of binary numerals is NC.

True

14
New cards

Every language generated by a general grammar is recursive.

False

15
New cards

Every language generated by a general grammar is recursively enumerable.

True

16
New cards

The problem of whether two given context-free grammars are equivalent is co-RE.

True

17
New cards

The language of all fractions (using base 10 numeration) whose values are less than π is decidable. (Recall that a fraction is a string consisting of two numerals separated by a slash, "/".)

True

18
New cards

If L is RE and co-RE, then L is decidable.

True

19
New cards

For every real number x, there exists a machine that runs forever and outputs the string of decimal digits of x.

False

20
New cards

There exists a mathematical proposition that can be neither proved nor disproved.

True

21
New cards

If a Boolean expression is satisfiable, there is a P-time proof that it's satisfiable.

True

22
New cards

Every subset of any enumerable set is enumerable.

True

23
New cards

Every subset of any recursively enumerable set is recursively enumerable.

False

24
New cards

The binary numeral factorization problem is co-NP.

True

25
New cards

All C++ programs which halt with no input.

A Known to be N C.

B Known to be P–time, but not known to be N C.

C Known to be N P, but not known to be P–time and not known to be N P–complete.

D Known to be N P–complete.

E Known to be P–space but not known to be N P

F Known to be EXP–time but not nown to be P–space.

G Known to be EXP–space but not nown to be EXP–time.

H Known to be decidable, but not nown to be EXP–space.

K RE but not decidable.

L co-RE but not decidable.

M Neither RE nor co-RE.

(k) RE but not decidable.

26
New cards

All base 10 numerals for perfect squares.

A Known to be N C.

B Known to be P–time, but not known to be N C.

C Known to be N P, but not known to be P–time and not known to be N P–complete.

D Known to be N P–complete.

E Known to be P–space but not known to be N P

F Known to be decidable, but not known to be P–space.

G RE but not decidable.

H co-RE but not decidable.

I Neither RE nor co-RE.

(a) Known to be NC.

27
New cards

All context-free grammars that generate the Dyck language.

A Known to be N C.

B Known to be P–time, but not known to be N C.

C Known to be N P, but not known to be P–time and not known to be N P–complete.

D Known to be N P–complete.

E Known to be P–space but not known to be N P

F Known to be EXP–time but not nown to be P–space.

G Known to be EXP–space but not nown to be EXP–time.

H Known to be decidable, but not nown to be EXP–space.

K RE but not decidable.

L co-RE but not decidable.

M Neither RE nor co-RE.

(L) co-RE but not decidable.

28
New cards

All configurations of RUSH HOUR from which it's possible to win.

Known to be N C.

B Known to be P–time, but not known to be N C.

C Known to be N P, but not known to be P–time and not known to be N P–complete.

D Known to be N P–complete.

E Known to be P–space but not known to be N P

F Known to be EXP–time but not nown to be P–space.

G Known to be EXP–space but not nown to be EXP–time.

H Known to be decidable, but not nown to be EXP–space.

K RE but not decidable.

L co-RE but not decidable.

M Neither RE nor co-RE.

(E) Known to be P-space but not known to be NP

29
New cards

All satisfiable Boolean expressions.
A Known to be N C.

B Known to be P–time, but not known to be N C.

C Known to be N P, but not known to be P–time and not known to be N P–complete.

D Known to be N P–complete.

E Known to be P–space but not known to be N P

F Known to be decidable, but not known to be P–space.

G RE but not decidable.

H co-RE but not decidable.

K Neither RE nor co-RE

(D) Known to be NP-complete.

30
New cards

All binary numerals for composite integers. (Composite means not prime.)

A Known to be N C.

B Known to be P–time, but not known to be N C.

C Known to be N P, but not known to be P–time and not known to be N P–complete.

D Known to be N P–complete.

E Known to be P–space but not known to be N P

F Known to be EXP–time but not nown to be P–space.

G Known to be EXP–space but not nown to be EXP–time.

H Known to be decidable, but not nown to be EXP–space.

K RE but not decidable.

L co-RE but not decidable.

M Neither RE nor co-RE.

(B) Known to be P-time, but not known to be NC.

31
New cards

Define 'Accept' (That is, what does it mean for a machine M to accept a language L over an alphabet Σ.)

If M is given an input string w∈Σ∗, it will halt and accept w if and only if w∈L.

32
New cards

Define 'Decide' (That is, what does it mean for a machine M to decide a language L over an alphabet Σ.)

If M is given an input string w∈Σ∗, it will halt. If w∈L, M will accept w, if not, it will reject w.

33
New cards

Define 'Canonical order of a language L'

In the canonical order, if u,v ∈ L, we say u < v if either |u| < |v|, or |u| = |v| and u comes before
v in alphabetic ordering.

34
New cards

Which class of languages does each of these machine classes accept?
Deterministic finite automata.

Regular languages.

35
New cards

Which class of languages does each of these machine classes accept?
Non-Deterministic finite automata.

Regular languages.

36
New cards

Which class of languages does each of these machine classes accept?
Push-down automata.

Context-free languages.

37
New cards

Which class of languages does each of these machine classes accept?
Turing Machines.

Recursively enumerable languages.

38
New cards

--------- Spring 2022 below

------

39
New cards

There is some PDA that accepts the language over {a, b, c} consisting of all strings which have more a's than b's and more b's than c's.

False

40
New cards

The language {a^n b^n | n ≥ 0} is context-free.

True

41
New cards

The language {a^n b^n c^n | n ≥ 0} is context-free.

False

42
New cards

The language {a^i b^j c^k | j = i + k} is context-free.

True.

43
New cards

If L is a context-free language over an alphabet with just one symbol, then L is regular.

True

44
New cards

The set of strings that your high school algebra teacher would accept as legitimate expressions is a context-free language.

True

45
New cards

The problem of whether a given string is generated by a given context-free grammar is decidable.

True

46
New cards

Every language generated by an unambiguous context-free grammar is accepted by some DPDA.

False

47
New cards

The language {a^n b^n c^n | n ≥ 0} is in the class P-time.

True

48
New cards

There exists a polynomial time algorithm which finds the factors of any positive integer, where
the input is given as a binary numeral.

Open

49
New cards

The intersection of any two undecidable languages is undecidable.

False

50
New cards

Every NP language is decidable.

True

51
New cards

The intersection of two NP languages must be NP.

True

52
New cards

There exists a P-time algorithm which finds a maximum independent set in any graph G.

Open

53
New cards

NP = P-space

Open

54
New cards

EXP-space = P-space.

False

55
New cards

The traveling salesman problem (TSP) is NP-complete.

True

56
New cards

The knapsack problem is NP-complete.

True

57
New cards

The language consisting of all satisfiable Boolean expressions is NP-complete.

True

58
New cards

The Boolean Circuit Problem is in P-time.

True

59
New cards

2-SAT is P-time.

True

60
New cards

Primality, using binary numerals, is P-time.

True

61
New cards

There is a P-time reduction of the halting problem to 3-SAT.

False

62
New cards

Every context-free language is in P.

True

63
New cards

Every context-free language is in NC.

True

64
New cards

Every language generated by an unrestricted grammar is recursive.

False

65
New cards

The problem of whether two given context-free grammars generate the same language is decidable.

False

66
New cards

There exists a polynomial time algorithm which finds the factors of any positive integer, where the input is given as a unary ("caveman") numeral.

True

67
New cards

For any two languages L1 and L2, if L1 is undecidable and there is a recursive reduction of L1 to L2, then L2 must be undecidable.

True

68
New cards

If P is a mathematical proposition that can be written using a string of length n, and P has a proof, then P must have a proof whose length is O(2^(2^n) ).

False

69
New cards

If L is any NP language, there must be a P-time reduction of L to the partition problem.

True

70
New cards

Every bounded function is recursive.

False

71
New cards

If L is NP and also co-NP, then L must be P.

Open

72
New cards

Every language is enumerable.

True

73
New cards

If a language L is undecidable, then there can be no machine that enumerates L.

False

74
New cards

There is a non-recursive function which grows faster than any recursive function.

True

75
New cards

Rush Hour, the puzzle sold in game stores everywhere, generalized to a board of arbitrary size,
is NP-complete.

Open

76
New cards

There is a polynomial time algorithm which determines whether any two regular expressions are equivalent.

Open

77
New cards

If L is a context-free language which contains the empty string, then L\{λ} must be context-free.

True

78
New cards

The computer language Pascal has Turing power.

True

79
New cards

The binary integer factorization problem is co-NP.

True

80
New cards

Label each of the following sets as countable or uncountable.
The set of integers.

countable

81
New cards

Label each of the following sets as countable or uncountable.
The set of rational numbers.

countable

82
New cards

Label each of the following sets as countable or uncountable.
The set of real numbers.

uncountable

83
New cards

Label each of the following sets as countable or uncountable.
The set of binary languages.

uncountable

84
New cards

Label each of the following sets as countable or uncountable.
The set of co-RE binary languages.

countable

85
New cards

Label each of the following sets as countable or uncountable.
The set of undecidable binary languages.

uncountable

86
New cards

Label each of the following sets as countable or uncountable.
The set of functions from integers to integers.

uncountable

87
New cards

Label each of the following sets as countable or uncountable.
The set of recursive real numbers.

countable

88
New cards

------ Fall 2022 below

-----

89
New cards

The intersection of any two N P languages is N P.

True

90
New cards

The independent set problem is P-time

True

91
New cards

If S is a recursive set of positive integers, then ∑_
n∈S 2^−n must be a recursive real number.

True

92
New cards

Multiplication of matrices with binary numeral entries is N C.

True

93
New cards

Equivalence of regular expressions is decidable.

True

94
New cards

Every recursively enumerable language is generated by a general grammar.

True

95
New cards

Equivalence of context-free grammars is co-RE.

True

96
New cards

The language consisting of all fractions whose values are less than the natural logarithm of 5.0
is recursive.

True

97
New cards

Every sliding block problem is P-space.

True

98
New cards

If L is any P-time language, there is an N C reduction of L to CVP, the Boolean circuit problem.

True

99
New cards

There is a polynomial time algorithm for checking whether an integer is prime.

True

100
New cards

Every finite language is regular.

NO ANSWER ON STUDY GUIDE but True...probably