ATFL - Midterm

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

1/47

encourage image

There's no tags or description

Looks like no tags are added yet.

48 Terms

1
New cards

Theory of Computation

Is defined as "the branch that deals with how efficiently problems can be solved on a model of computation, using an algorithm"

2
New cards

Theory of Computation

Its purpose is to create computational mathematical models that can reflect real-world computers

3
New cards

Automata, computability, computational complexity

three branches of theory of computations (_____ theory)

4
New cards

Complexity Theory

deals with the efficiency with which a computer can solve a problem. Computer problems come in different varieties: some are easy, and some are hard.

5
New cards

Complexity Theory

its objective is to classify problems as easy ones and hard ones

6
New cards

Computability Theory

deals with the extent to which a computer can solve a problem

7
New cards

Computable

When a problem can be solved by a computer, the problems are called __________ problems.

8
New cards

Computability Theory

its objective is the classification of problems that are solvable and those problems that are not

9
New cards

Automata

is a theoretical branch of computer science and mathematics. It is the study of abstract machine.

10
New cards

Automata theory

deals with the definitions and properties of mathematical models of computation. These models play a role in several applied areas of computer science.

11
New cards

Finite automaton

Is used in text processing, compilers, and hardware design.

12
New cards

Context-free Grammar

Is used in programming languages and artificial intelligence.

13
New cards

Grammars, regular expressions

2 important notations that are not automaton like but play an important role in the study of automata and their applications

14
New cards

Grammars

are useful models when designing software that processes data with a recursive structure.

Example: ⟨SENTENCE⟩⇒⟨NOUN-PHRASE⟩⟨VERB-PHRASE⟩

*a boy sees

15
New cards

Variables, terminals, production rules, start variables

Grammar : (V, T, P, S)

Where

V : finite set of variables

T : finite set of terminals

P : finite set of production rules

S : start variables

16
New cards

Regular Expressions

denote the structure of data, especially text. The patterns of strings they describe are the same as what can be described by finite automata.

17
New cards

UNIX style regular expression

type of regular expression [A -Z] [a- z]*[ ] [A- Z] [ A -Z] that represents capitalized words followed by a space and two capital letters.

18
New cards

*

In UNIX style regular expression, the symbol _ represents "any number of the preceding expression"

19
New cards

Alphabet

It is defined as a finite set of symbols.

20
New cards

Alphabet

any nonempty finite set.

21
New cards

Symbols

The members of the alphabet are the _______ of the alphabet. Denoted by ⅀

22
New cards

String

A "______" over an alphabet is a finite sequence of symbols from that alphabet, which is usually written next to one another and not separated by commas

23
New cards

Length

The "______" of a string is its length as a sequence. The length of a string w is written as |w|

24
New cards

Reverse string

"tite" -> "etit"

25
New cards

Substring

z is a _________ of w if z appears consecutively within w. • Example: If ∑a = {a, b, ..., z) then "deck" is a substring of "abcdeckabcjkl"

26
New cards

Concatenation

the string obtained by appending y to the end of x, as in x1x2...xm y1 y2... yn

27
New cards

Suffix

last letter of the string

28
New cards

Prefix

first letter of the string

29
New cards

regular expression

can be defined as a language or string accepted by a finite automata.

30
New cards

regular expression

can also be described as a sequence of pattern that defines a string. The patterns of strings they describe are the same as what can be described by finite automata.

31
New cards

.

Wildcard which matches any character

32
New cards

[xyz]

Matches either an x, y or z character

33
New cards

[^xyz]

Matches all token except the character indicated

34
New cards

()

Groups token inside

35
New cards

\s

any whitespace character

36
New cards

\S

any non-whitespace

37
New cards

\d

Matches any digit

38
New cards

\D

Matches any Non-digit

39
New cards

?

matches zero or one occurrence of the preceding expression.

40
New cards

+

matches one or more occurrences of the preceding expression.

41
New cards

*

matches zero or more occurrences of the preceding expression.

42
New cards

x{3}

Matches exactly 3 consecutive `x` characters.

43
New cards

x{3,}

Matches at least 3 consecutive `x` characters.

44
New cards

x{3,6}

Matches any digit

45
New cards

Context-Free Grammar

A more powerful method of describing languages. First used in the study of human languages.

46
New cards

Context-Free Grammar

its Application occurs in the specification and compilation of programming languages.

47
New cards

Parser

a component that most compilers and interpreters have. extracts the meaning of a program before generating the compiled code

48
New cards

Variables, terminals, production rules, start variables

Grammar : (V, T, P, S)

Where

V : finite set of variables

T : finite set of terminals

P : finite set of production rules

S : start variables