Chapter 0, 1.1, 1.2, 4.2 Flashcards

1
Q

Define the objective of the Complexity Theory.

A

Classify problems as easy ones and hard ones.

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

Define the objective of the Computability Theory.

A

The classification of problems is by those that are solvable and those that are not.

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

Define Finite Automata.

A

Used in text-processing, compilers, and hardware design.

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

Define Context-Free Grammar.

A

Used in programming languages and A.I.

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

Define A ⊆ B.

A

A is a subset of B if every member of A is a member of B.

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

Define A ⊂ B.

A

A is a proper subset of B of A is a subset of B and not equal to B. (If A ⊆ B and A ≠ B)

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

Define A U B.

A

The union of A and B is when we combine all the elements in A and B into one set.

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

Define A ∩ B.

A

The intersection of A and B is the set of elements both in A and B.

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

Define A^c.

A

The complement of A is the set of all elements under consideration that are NOT in A.

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

Define the Cartesian Product.

A

A x B is the set of all ordered pairs.

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

Define the term Power Set.

A

The power set of A is the set of all subsets of A.

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

Define Lemmas.

A

It is the proof statements that assist in the proof of another more significant statement.

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

Define Corollaries.

A

The theorem or its proof can help us conclude that other statements are true.

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

What is Proof by Construction?

A

We demonstrate how to construct the object. ex. We define a graph to k-regular if every node in the graph has degree k.

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

What is Proof by Contradiction?

A

We assume that the theorem is false and then show that this assumption leads to an obviously false consequence. (refer to the Jack and Jill example)

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

What is Proof by Induction?

A

Show that all the elements of an infinite set have a specified property.

17
Q

What is the purpose of the Diagonalization Method?

A

It is to show enumerations that cannot be complete.

18
Q

What is the theorem of Undecidability?

A

Computers are limited in a fundamental way (algorithmically unsolvable). i.e You are given a program and a precise specification of what it is supposed to do. You need to verify that the program performs as specified, but with the program AND specification are precise, it is unsolvable.

19
Q

Is a Turing Machine recognizable? If so, why?

A

Yes, recognizers are more powerful than deciders.

20
Q

If we have two infinite sets, how can we tell whether one is larger than the other or whether they are of the same size?

A

We use the Diagonalization Method. Two sets are the same size if the elements of one set can be paired with the elements of the other set.

21
Q

When is the function ƒ one-to-one?

A

It is one-to-one when it never maps two different elements to the same place that is if ƒ (a) ≠ ƒ(b) whenever a ≠ b.

22
Q

When is the function ƒ onto?

A

It is onto if it hits every element of B, that is if for every b ∈ B there is an a ∈ A such that f(a) = b.

23
Q

A set A is ______ if either it is finite or it has the same size as N.

A

countable

24
Q

List the steps for designing a DFA

A
  1. Determine the # of states required. Define M = (Q (finite set of states), Σ (finite set of alphabet), δ (transition function), q0 (start state), F (set of accept states).
  2. Create a transition table for the rules listed.
  3. Draw the DFA according to the table.
25
Q

What are the regular operations in the regular languages?

A
  1. Union: A ∪ B = {x| x ∈ A or x ∈ B}.
  2. Concatenation: A ◦ B = {xy | x ∈ A and y ∈ B}.
  3. Star: A∗ = {x1x2 . . . xk | k ≥ 0 and each xi ∈ A}.
26
Q

The class if regular languages is closed under what operation?

A

Union. If A1 and A2 are regular languages, so is A1 U A2.

27
Q

What is the difference between a deterministic finite automaton (DFA) and a nondeterministic finite automaton (NFA)?

A

Every state of a DFA always has exactly one exiting transition arrow for each symbol in the alphabet.

28
Q

How does an NFA compute?

A

Suppose we run an NFA on an input string and come to a state with multiple ways to proceed. For example, if we are in state q1 in N1 and that the next symbol is a 1, then the machine splits into multiple copies of itself and follows all the possibilities in parallel. If the next input symbol doesn’t appear on the exiting arrows, then the machine copy dies. If any of them are in an accept state, then the NFA accepts the string.

29
Q

What does forking do in NFA’s?

A

When the NFA splits to follow several choices, that corresponds to a process “forking” into several children, each proceeding separately. If at least on of these processes accepts, then the entire computation accepts.

30
Q

Define Unary Alphabet.

A

An alphabet containing only one symbol.