4: Theory of Computation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Representation Abstraction

A

A representation arrived at by removing unnecessary details

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

Abstraction by Generalisation or Categorisation

A

Grouping by common characteristics to arrive at a hierarchal relationship of the ‘is a kind of’ type

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

Information Hiding

A

The process of hiding all details of an object that do not contribute to its essential characteristics

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

Procedural Abstraction

A

The result of abstracting away the actual values used in any particular computation is a computational pattern or computational method - a procedure

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

Functional Abstraction

A

The result of a procedural abstraction is a procedure, not a function. To get a function requires yet another abstraction, which disregards the particular computation method

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

Data Abstraction

A

Details of how data are actually represented are hidden, allowing new kinds of data objects to be constructed from previously defined types of data objects

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

Problem Abstraction / Reduction

A

Details are removed until the problem is represented in a way that is possible to solve, because the problem reduces to one that has already been solved

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

Decomposition

A

Procedural decomposition means breaking a problem into a number of sub-problems, so that each sub-problem accomplishes an identifiable task, which might itself be further subdivided

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

Automation

A

Putting models (abstraction of real-world objects / phenomena) into action to solve problems

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

Finite Set

A

One whose elements can be counted off by natural numbers up to a particular number

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

Infinite Set

A

One whose elements cannot be counted off by natural numbers up to a particular number

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

Countably Infinite Set

A

One that can be counted off by the natural numbers

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

Cardinality of Finite Set

A

The number of elements in the set

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

Cartesian Product of Sets

A

X x Y (X cross Y) is the set of all ordered pairs (x, y) where x is a member of X and y is a member of Y

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

Proper Subset

A

If A ⊂ B then B contains everything in A, but there is at least one element in B that is not in A

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

Subset

A

⊆ includes both ⊂ and =

17
Q

Countable Set

A

A set with the same cardinality as some subset of natural numbers

18
Q

Set Difference Operation

A

A\B = {x : x ∈ A and x ∉ B}

19
Q

Regular Expressions Metacharacters (5)

A
  • * means 0 or more repetitions
  • + means 1 or more repetitions
  • ? means 0 or 1 repetitions (i.e. optional)
  • | means alternation
  • () used to group regular expressions
20
Q

Relationship between Regular Expressions & FSMs

A

They are equivalent ways of defining a regular language

21
Q

Regular Language

A

A language is regular if it can be represented by a regular expression

22
Q

BNF Production Rules (4)

A
  • Chevrons denote a non-terminal symbol, which has another set of production rules to define it
  • Symbols without chevrons are terminal
  • The pipe symbol is a metacharacter denoting alternatives
  • <fullname> :: =<title> Moloney|<title> Pope
    <title> :: =Mr|Mrs
24
Q

BNF vs Regular Expressions (3)

A
  • All regular languages are context-free but the reverse is not true
  • Any regular expression can be converted to a set of BNF production rules
  • As an FSM has a finite number of states, a context-free language is required when an infinite number of elements in a string must be counted
25
Q

Mathematical Concept of a Function

A

A mapping from one set of values, the domain, to another set of values, drawn from the co-domain

26
Q

Order of Complexity (5)

A
  • Constant time
  • Logarithmic time
  • Linear time
  • Polynomial time
  • Exponential time
27
Q

Tractable

A

Problems that have a polynomial (or less) time solution

28
Q

Intractable

A

Problems that have no polynomial (or less) time solution

29
Q

Heuristic Methods

A

Often used when tackling intractable problems

30
Q

Halting Problem

A

The unsolvable problem of determining whether any program will eventually stop if given particular input

31
Q

Significance of Halting Problem for Computation

A

The Halting problem demonstrates that there are some problems that cannot be solved by a computer

32
Q

Turing Machine

A

A computer with a single fixed program

33
Q

Components of Turing Machine (4)

A
  • A finite set of states in a state transition diagram
  • A finite alphabet of symbols
  • An infinite tape with marked-off squares
  • A sensing read-write head that can travel along the tape, one square at a time
34
Q

Importance of Turing Machines to Subject of Computation

A

Turing machines provide a general / formal model of computation and provide a definition of what is computable

35
Q

Universal Turing Machine

A

A Turing machine that can solve any computable problem where the transition functions as well as the data are stored on the tape