CS 456 Larmore T/F

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/198

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:44 PM on 4/13/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

199 Terms

1
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.

F

2
New cards

The language {anbn | n >= 0} is context-free.

T

3
New cards

The language {anbncn | n >= 0} is context-free.

F

4
New cards

The language {aibjck | n >= 0} is context-free.

T

5
New cards

The intersection of any three regular languages is regular

T

6
New cards

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

T

7
New cards

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

F

8
New cards

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

T

9
New cards

There is a deterministic parser for any context-free grammar. (But not necessarily an LALR parser.)

T

10
New cards

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

T

11
New cards

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

T

12
New cards

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

T

13
New cards

If G is a context-free grammar, the question of whether L(G) = ∅ is decidable.

T

14
New cards

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

F

15
New cards

The language {anbncndn | n >= 0} is recursive

T

16
New cards

The language {anbncn | n >= 0} is in the class P-time.

T

17
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.

O

18
New cards

Every undecidable problem is N P-complete.

F

19
New cards

Every problem that can be mathematically defined has an algorithmic solution.

F

20
New cards

The intersection of two undecidable languages is always undecidable.

F

21
New cards

Every NP language is decidable.

T

22
New cards

The intersection of two N P languages must be N P.

T

23
New cards

If L1 and L2 are N P-complete languages and L1 ∩ L2 is not empty, then L1 ∩ L2 must be N P-complete.

F

24
New cards

N C = P.

O

25
New cards

P = NP.

O

26
New cards

N P = P-space

O

27
New cards

P-space = EXP-time

O

28
New cards

EXP-time = EXP-space

O

29
New cards

EXP-time = P-time.

F

30
New cards

EXP-space = P-space.

F

31
New cards

The traveling salesman problem (TSP) is NP-complete

T

32
New cards

The knapsack problem is NP-complete.

T

33
New cards

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

T

34
New cards

The Boolean Circuit Problem is in P.

T

35
New cards

The Boolean Circuit Problem is in N C.

O

36
New cards

If L1 and L2 are undecidable langugages, there must be a recursive reduction of L1 to L2.

F

37
New cards

The language consisting of all strings over {a, b} which have more a’s than b’s is LR(1).

T

38
New cards

2-SAT is P-time.

T

39
New cards

3-SAT is P-time.

O

40
New cards

Primality is P-time.

T

41
New cards

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

T

42
New cards

Every context-free language is in P.

T

43
New cards

Every context-free language is in N C.

O

44
New cards

Addition of binary numerals is in N C.

T

45
New cards

Every context-sensitive language is in P.

O

46
New cards

Every language generated by a general grammar is recursive.

F

47
New cards

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

F

48
New cards

The language of all fractions (using base 10 numeration) whose values are less than π is decidable.

T

49
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.

T

50
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.

T

51
New cards

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

F

52
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(22 n ).

F

53
New cards

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

T

54
New cards

Every bounded function is recursive.

F

55
New cards

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

O

56
New cards

If L is RE and also co-RE, then L must be decidable.

T

57
New cards

Every language is enumerable.

T

58
New cards

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

F

59
New cards

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

T

60
New cards

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

T

61
New cards

There exists a machine that runs forever and outputs the string of decimal digits of π (the well-known ratio of the circumference of a circle to its diameter).

T

62
New cards

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

F

63
New cards

Rush Hour, the puzzle sold in game stores everywhere, generalized to a board of arbitrary size, is N P–complete

O

64
New cards

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

O

65
New cards

If two regular expressions are equivalent, there is a polynomial time proof that they are equivalent.

O

66
New cards

Every subset of a regular language is regular.

F

67
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.

F

68
New cards

Every subset of any enumerable set is enumerable.

T

69
New cards

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

T

70
New cards

If L is any language, there is a reduction of L to the halting problem. (Warning: this is a trick question. Give it some serious thought.)

T

71
New cards

The computer language C++ has Turing power.

T

72
New cards

Let Σ be the binary alphabet. Every w ∈ Σ ∗ which starts with 1 is a binary numeral for a positive integer. Let Sq : Σ∗ → Σ∗ be a function which maps the binary numeral for any integer n to the binary numeral for n 2 . Then Sq is an N C function.

T

73
New cards

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

T

74
New cards

If an abstract Pascal machine can perform a computation in polynomial time, there must be some Turing machine that can perform the same computation in polynomial time.

T

75
New cards

The binary integer factorization problem is co-N P.

T

76
New cards

Let L be any RE language which is not decidable, and let ML be a machine which accepts L.

(a) If there are no strings of L of length n, let T(n) = 0.

(b) Otherwise, let T(n) be the largest number of steps it takes ML to accept any string in L of length n.

Then T is a recursive function

F

77
New cards

There is a polynomial time reduction of the subset sum problem to the binary factorization problem.

O

78
New cards

The language of all palindromes over {a, b} is an LR language.

F

79
New cards

The Simplex algorithm for linear programming is polynomial time.

F

80
New cards

Remember what a fraction is? It’s a string consisting of a decimal numberal, followed by a slash, followed by another decimal numeral whose value is not zero. For example, the string “14/37” is a fraction. Each fraction has a value, which is a number. For example, “2/4” and “1/2” are different fractions, but has the same value. For any real number x, the set of fractions whose values are less than x is RE.

F

81
New cards

The union of any two deterministic context-free languages must be a DCFL.

F

82
New cards

The intersection of any two deterministic context-free languages must be a DCFL.

F

83
New cards

The complement of any DCFL must be a DCFL.

T

84
New cards

Every DCFL is generated by an LR grammar.

T

85
New cards

The membership problem for a DCFL is in the class P-time.

T

86
New cards

If h : Σ1 → Σ*2 is a function, L1 ∈ Σ*1 , L2 ⊆ Σ*2 , h(L1) = L2 and L1 is regular, then L2 must be regular.

T

87
New cards

If h : Σ1 → Σ*2 is a function, L1 ∈ Σ*1 , L2 ⊆ Σ*2 , h(L1) = L2 and L1 is regular, then L1 must be regular.

F

88
New cards

If h : Σ1 → Σ*2 is a function, L1 ∈ Σ*1 , L2 ⊆ Σ*2 , L1 = h −1 (L2) and L2 is regular then L1 must be regular.

T

89
New cards

If a computable sequence of fractions converges to x, then x must be a recursive real number.

F

90
New cards

If L is a recursively enumerable language, there must be a computable reduction of L to the halting problem.

F

91
New cards

If two context-free grammars are equivalent, there is must be a proof that they are equivalent.

F

92
New cards

If two context-free grammars are not equivalent, there is must be a proof that they are not equivalent.

T

93
New cards

The membership problem for any regular language is N C.

T

94
New cards

Given any sequence M1, . . . Mn of square Boolean matrices, the product M1 × M2 × · · · × Mn is N C computable.

T

95
New cards

The problem of determining whether a given integer is a square is N C.

T

96
New cards

The set of all real numbers which are limits of convergent sequences of fractions is countable

F

97
New cards

√ 2 is a recursive real number.

T

98
New cards

Let x be a real number whose decimal digits are all either 0 or 1. then x must be a recursive real number.

F

99
New cards

Every context-sensitive language is decidable.

T

100
New cards

P–time = EXP–time.

F