Unit 4 Flashcards

(30 cards)

1
Q

Sequence

A

a control structure in which a set of instructions is executed once in the order that they were written

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

Assignment

A

giving a variable a value

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

Selection

A

a control structure in which an option of various statements is provided and a variable is used to decide which statements (if any) are executed

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

Iteration (Repetition)

A

a control structure in which a group of statements is executed repeatedly until a condition is met

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

definite vs indefinite iteration

A

definite gets repeated a certain number of times, indefinite until a condition is met

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

Representational 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
7
Q

information hiding

A

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
8
Q

Representational Abstraction

A

representational abstraction is a representation arrived at by removing unnecessary details (creating a model)

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

Abstraction by generalisation

A

a grouping by common characteristics to arrive at a hierarchical relationship of the ‘is a kind of’ type, used a lot in OOP

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

Procedural Abstraction

A

Where the particular processes of a computational method is hidden, abstracting it into a procedure

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

Functional abstraction

A

abstracts it into a function

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

Data abstraction

A

details of how data are actually represented are hidden, allowing new kinds of data objects

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

Composition abstraction

A

opposite of Decomposition, usually built by combining procedures to form compound procedures or by combining data objects to form compound data

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

regular expression

A

a way of describing a set of data or a pattern of data

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

regular language

A

can be represented by a regular expression

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

Metacharacters

A

the characters used in regular expression

17
Q

*

A

0 or more repetitions of the preceding element

18
Q

+

A

1 or more repetitions of the preceding element

19
Q

?

A

0 or 1 repetitions of the preceding element

20
Q

|

A

or for regular expressions

21
Q

Backus-Naur Form

A

somewhat like regular expression but recursive, make statement to say it can be +|-

22
Q

Tractable

A

problems that have a polynomial (or less) time solution are called tractable problems

23
Q

Intractable

A

problems that can be solved BUT have no polynomial (or less) time solution are called intractable problems; the solution is exponential time or worse

24
Q

Heuristic methods

A

are often used when tackling intractable problems

25
Non-computable
problems are not able to be solved
26
heuristic method
produces a solution in a reasonable time frame that is good enough for solving the problem at hand
27
Travelling Salesman Problem
intractable
28
Halting Problem
non-computable
29
turing machine main points
has a starting and stopping state, infinite memory, a processor with read/write head, cells with symbols in it that are part of the alphabet of the machine, a single fixed program with state transition rules and usually indication of current state for ex in a state register
30
transition function turing machine
δ (Current State, Input Symbol) = (Next State, Output Symbol, Movement)