Chapter 0: Introduction, Math Review Flashcards

1
Q

What is a theorem?

A

A statement that has been proven to be true

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

What is a proof?

A

A convincing, logical argument that a statement is true

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

Explain (& differentiate between) this relationship:

Symbols → Alphabet → String → Language

A
  • Symbols are members of an alphabet
  • An alphabet is a finite, nonempty set of symbols
  • A string is a finite sequence of symbols over an alphabet
  • A language is a set of strings over an alphabet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is proof by induction?

A
  • Method used to show that all elements of an infinite set have a specified property
  • Always consists of two parts: basis & induction step
    • The basis proves that P(1) is true.
    • The induction step proves that for each i ≥ 1, if P(i) is true, then so is P(i + 1).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

If you take the cross (Cartesian) product of two sets A and B in both orders (A x B and B x A), under what conditions would you get equivalent results?

A
  • If A = B
  • If one or both are the empty set
  • If every element is the same
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a tuple?

A

A finite sequence of elements.

A sequence with k elements is a k-tuple.

  • (1, 2, 3) is a 3-tuple
  • (1, 4) is a 2-tuple or ordered pair
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a proper subset?

A

A subset that is not equal to the superset.

E.g., if set A is a proper subset of set B, then set A is not equal to set B.

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

What is an empty language?

A
  • A language without strings; an empty set: Ø or { }
  • Size is zero: | Ø |
  • Do not confuse with the empty string, which is not in the empty language. ϵ ≠ ∅ and ϵ ∉ ∅.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an alphabet (Σ)?

A

Any non-empty, finite set of symbols.

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

Can you have an empty language?

A

YES. An empty language is a set without strings (size zero, an empty set: Ø or { } )

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

What is proof by contradiction?

A
  • An argument where we assume that the theorem is false and then show that this assumption leads to an obviously false consequence, called a contradiction

Example: proof that 2 is irrational by starting with the claim that 2 is rational instead

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

What does it mean for A to be a subset of B?

A

If every member of A is also a member of B.

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

What is a language?

A
  • A set of strings over an alphabet Σ
  • if Σ = {0, 1}, then possible languages might be:

{00, 11, 0011} or {01, 10, 1001} …

• The syntax of a language constrains the set of strings that are part of that language to satisfy certain properties.

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

What is the length of a string?

A

The number of symbols in a string

• if w = 101, then |w | = 3

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

What is a statement?

A
  • An unambiguous, precise description of some property that an object has
  • May be true or not
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an infinite set?

A

A set containing infinitely many elements (e.g., natural numbers, integers).

17
Q

What is an unordered pair?

A

A set with two members.

18
Q

What is the Cartesian product of sets A and B?

A

A x B = the set of all ordered pairs wherein the first element is a member of A and the second element is a member of B.

19
Q

What is a sequence?

A

A list of objects in some order.

• Order & repetition matter

(1, 1, 2, 3) ≠ (1, 2, 3)

20
Q

What are 5 ways we could use to define a language?

A
  1. Listing all possible strings:
    {01, 0011, 000111, … }
  2. Describing how to construct a typical string:
    { 0k1k | k > 0 }
  3. Describing how to test a string for membership:
    { x over {0,1} | x has the same number of 0’s and 1’s, has at least one 0, and all 0s precede all 1s }
  4. Defining a machine/program that accepts all strings in a language
  5. Defining a machine/program that generates all strings in a language
21
Q

Can you have an empty alphabet?

A

NO. An alphabet is a finite, nonempty set of symbols.

22
Q

What is a string?

A

A finite sequence of symbols over an alphabet Σ.

• E.g., if Σ1 = {0,1}, then 01001 is a string over Σ1

23
Q

What is proof by construction?

A
  • A proof which demonstrates how to construct an object in question
  • Useful for proving theorems which state that a particular type of object exists

Example: For each even number n greater than 2, there exists a 3-regular graph with n nodes.

24
Q

What is a set?

A
  • A group of objects (elements or members) represented as a unit
  • May contain any kind of object (e.g., numbers, symbols, other sets)
  • Order is irrelevant
  • Cannot have repetition
25
Q

What is the power set of any set?

A
  • The set of all subsets of a set (including the empty set and set itself).
  • Creates all possible subsets of a set
  • Cardinality will always be 2|A| for powerset of set A
    • E.g., if A has 3 elements, |A|=3, and |P(A)| = 23 = 8
26
Q

What is the empty string ϵ ?

A
  • A string with no symbols
  • Length zero: | ϵ | = 0
  • Part of every alphabet
  • Not necessarily part of every language