M1| Introduction to Theory of Computation and Related Mathematical Notions

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/95

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

96 Terms

1
New cards

It deals with the definitions and properties of
mathematical models of computation

Automata theory

2
New cards

From the Greek word, this means "self-acting, self-willed, self-moving”

Automata theory

3
New cards

Are used in text processing, compilers, and
hardware design

Finite automata

4
New cards

Are used in programming languages and AI

Context-free grammars

5
New cards

It enables both machine/machine and person/machine communication

Languages

6
New cards

True or False:

Both the design and the implementation of modern programming languages rely heavily on the theory of context-free languages that we will study

True

7
New cards

These are used to document the languages' syntax and they form the basis for the parsing techniques that all compilers use

Context-free grammars

8
New cards

True or False:

Systems as diverse as parity checkers, vending machines, communication protocols, and security devices can be described as infinite state machines

False - these are described as finite state machines

9
New cards

True or False:

Many interactive video games are (large and often nondeterministic) finite automata

True

10
New cards

In math and computer science, these consist of words whose letters are taken from an alphabet and are well-formed according to a specific set of rules.

Formal languages

11
New cards

A set of words whose letters come from an alphabet and are well-formed according to specific rules.

Formal language

12
New cards

The set of symbols used in a formal system.

Alphabet

13
New cards

The syntactic rules for constructing sentences in a formal system.

A specific set of rules

14
New cards

A group of objects represented as a unit

Sets

15
New cards

Are called the elements or members in a set

Objects

16
New cards

What does the notation S={7,21,57} represent?

A set named S containing the elements 7, 21, and 57

17
New cards

What symbol denotes membership in a set?

18
New cards

Which expression shows that 7 is an element of the set {7,21,57}?

7 ∈ {7, 21, 57}

19
New cards

Which expression shows that 8 is not an element of the set {7,21,57}?

8 ∉ {7, 21, 57}

20
New cards

A set whose members are all contained in another set.

Subset

21
New cards

How do we denote that set A is a subset of set B?

A ⊆ B

22
New cards

A subset of a set that cannot be equal to the set.

Proper subset

23
New cards

How do we denote that set B is a proper subset of set A?

B ⊂ A

24
New cards

A set that contains an infinite number of elements.

Infinite set

25
New cards

How is the set of integers 𝑍 typically written?

{…,−2,−1,0,1,2,…}

26
New cards

A set with zero members.

Empty set

27
New cards

The set obtained by combining all elements of two sets A and B into a single set.

Union

28
New cards

The set of elements that are in both sets A and B.

Intersection

29
New cards

The set of all elements under consideration that are not in set A.

Complement

30
New cards

Is a widely used diagram style that shows the logical
relation between sets

Venn Diagrams

31
New cards

It represents sets as regions enclosed by circular lines

Venn Diagrams

32
New cards
<p>What Venn diagram is this? </p>

What Venn diagram is this?

A ∪ B

33
New cards
<p>What Venn Diagram is this?</p>

What Venn Diagram is this?

A ∩ B

34
New cards
<p>What Venn Diagram is this?</p>

What Venn Diagram is this?

Ā

35
New cards
<p>What Venn Diagram is this?</p>

What Venn Diagram is this?

B ⊂ A

36
New cards

A list of objects in a specific order

Sequence

37
New cards

In which type of collection does the order of elements matter?

Sequence

38
New cards

How is the sequence of 7, 21, 57 written?

(7, 21, 57)

39
New cards

In which type of collection does repetition matter?

Sequence

40
New cards

Which of the following shows that sequences (7, 7, 21, 57) and (7, 21, 57) are different?

They are different because sequences care about order and repetition

41
New cards

True or False:

Sets can be finite or infinite, and so can sequences.

True – They are true because sets and sequences can have a limited or unlimited number of elements

42
New cards

True or False:

Sets and sequences cannot appear as elements of other sets and sequences.

False – This is false because sets and sequences can appear as elements of other sets and sequences

43
New cards

A finite sequence is also called a…

Tuple

44
New cards

A 2-tuple, like (0, 1), is also called a…

Pair

45
New cards

The set of all subsets of a set A is called the…

Power set

46
New cards

True or False:

The Cartesian product of two sets A and B, written as A × B, is the set of all ordered pairs where the first element is from A and the second element is from B.

True – This is correct because each pair combines one element from A with one from B

47
New cards

If A = {1,2} and B = {x,y,z}, which of the following is A × B?

{ (1, x), (1, y), (1, z), (2, x), (2, y), (2, z) }

48
New cards

True or False:

In the Cartesian product A × B, the order of elements in each pair does not matter.

False – This is false because the first element must be from A and the second from B

49
New cards

True or False:

A function is an object that sets up an input-output relationship.

True – This is correct because functions pair each input with exactly one output

50
New cards

True or False:

In every function, the same input always produces the same output.

True – This is correct because functions are deterministic

51
New cards

How do we write that a function f outputs b when the input is a?

f(a) = b

52
New cards

A function is also called a…

Mapping

53
New cards

Which of the following is an example of a function?

An addition function where the input is an ordered pair of numbers and the output is their sum

54
New cards

Is an object that setups up an input - output relationship

Function

55
New cards

True or False:

A graph is a set of points with lines connecting some of the points.

True – This is correct because graphs consist of vertices connected by edges

56
New cards

The points in a graph are called…

Nodes or vertices

57
New cards

The lines connecting nodes in a graph are called…

Edges

58
New cards

For a graph G with nodes i and j, the pair (i, j) represents…

The edge connecting i and j

59
New cards

If V is the set of nodes and E is the set of edges of a graph G, then we write…

G = (V, E)

60
New cards
<p>A formal description of the graph is:</p>

A formal description of the graph is:

G = ( {1, 2, 3, 4, 5}, {(1, 2), (2, 3), (3, 4), (4, 5), (5, 1)} )

61
New cards

True or False:

A path in a graph is a sequence of nodes connected by edges.

True – This is correct because a path links nodes through edges

62
New cards

A simple path is…

A path that doesn’t repeat any nodes

63
New cards

A graph is connected if…

Every two nodes have a path between them

64
New cards

A path is a cycle if…

It starts and ends at the same node

65
New cards

A simple cycle is…

A cycle that contains at least three nodes and repeats only the first and last nodes

66
New cards
<p>These are example of what?</p>

These are example of what?

Simple path and simple cycle

67
New cards

True or False:

A graph is a tree if it is connected and has no simple cycles.

True – This is correct because trees are connected graphs without cycles

68
New cards
<p>This graph is an example of what?</p>

This graph is an example of what?

Tree

69
New cards

True or False:

A directed graph has arrows instead of lines.

True – This is correct because edges have a direction in directed graphs

70
New cards

The number of arrows pointing from a particular node is called…

Outdegree

71
New cards

The number of arrows pointing to a particular node is called…

Indegree

72
New cards

In a directed graph, an edge from node i to node j is represented as…

(i, j)

73
New cards

The formal description of a directed graph G is…

G = (V, E)

74
New cards
<p>A formal description of the graph is:</p>

A formal description of the graph is:

G = ( {1,2,3,4,5,6}, {(1,2), (1,5), (2,1), (2,4), (5,4), (5,6), (6,1), (6,3)} )

75
New cards

True or False:

Strings of characters are fundamental building blocks in computer science.

True – This is correct because strings are used to represent data and text

76
New cards

An alphabet is defined as…

Any non-empty finite set

77
New cards

The members of an alphabet are also called…

Symbols

78
New cards

Which symbol is commonly used to designate alphabets?

Σ

79
New cards

The alphabet over which strings are defined…

May vary depending on the application

80
New cards

True or False:

A string over an alphabet is a finite sequence of symbols from that alphabet.

True – This is correct because strings are made by sequencing symbols from the alphabet

81
New cards

True or False:

If Σ1 = {0,1}, then 01001 is a string over Σ1.

True – This is correct because all symbols in 01001 are from Σ1

82
New cards

True or False:

The string of length zero is called the empty string.

True – This is correct because the empty string is denoted ε

83
New cards

What do you call a set of strings?

A language

84
New cards

True or False:

If Σ2 = {a,b,c,...,z}, then abracadabra is a string over Σ2.

True – Every character is from Σ2

85
New cards

True or False:

Boolean logic is a mathematical system built around the two values TRUE and FALSE.

True – Boolean logic only uses TRUE and FALSE.

86
New cards

True or False:

Boolean logic is the foundation of digital electronics and computer design.

True – Boolean logic underlies digital circuits and computing.

87
New cards

True or False:

The values TRUE and FALSE are called Boolean values.

True – TRUE and FALSE represent Boolean values.

88
New cards

Boolean values are often represented by the numbers…

0 and 1

89
New cards

Which symbol represents the NOT operation in Boolean logic?

¬

90
New cards

What is the result of ¬0 in Boolean logic?

1

91
New cards

The AND operation produces 1 only if both inputs are…

1

92
New cards

Which symbol represents the OR operation in Boolean logic?

93
New cards

If P represents “the sun is shining” and Q represents “today is Monday,” what does P ∧ Q represent?

The sun is shining and today is Monday

94
New cards

In the expression P ∨ Q, the symbol ∨ represents…

OR

95
New cards

True or False:

The values P and Q in a Boolean operation are called operands.

True – Operands are the input values for Boolean operations.

96
New cards

True or False:

P ∧ Q will be true if either P or Q is true.

False – AND only outputs 1 when both operands are true.