TOPIC 4 MAIN

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

1/60

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:22 PM on 4/7/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

61 Terms

1
New cards

Abstraction by generalisation

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

2
New cards

(Procedural) Decomposition

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.

3
New cards

Explain the functionality of the * metacharacter when it is used in a regular expression.

Zero or more

4
New cards

Explain the functionality of the ? metacharacter when it is used in a regular expression

Zero or one

5
New cards

Explain the difference between a subset and a proper subset.

A set is a subset of itself but not a proper subset of itself; There will be at least one value in a set that is not in a proper subset of that set

6
New cards

Cardinality of a finite set

The cardinality of a finite set is the number of elements in a set.

7
New cards

Explain the functionality of the | (vertical bar) metacharacter when it is used in a regular expression.

OR

8
New cards

Universal Turing machine

A universal Turing machine can simulate any other Turing machine

The UTM acts as an interpreter

9
New cards

State one reason why there are some problems that no real computer can solve that the Universal Turing Machine could solve.

It has an infinite amount of memory

10
New cards

Non-terminal (BNF)

An item enclosed in angle brackets in Backus–Naur form;

it can be replaced using production rules

11
New cards

Terminal (BNF)

An item in Backus–Naur form that cannot be broken down further

12
New cards

Why can BNF can represent more than regular expressions?

BNF supports recursion, so it can represent some languages regular expressions cannot

13
New cards

Three primary components of a Turing machine

Read/write head; Finite state machine; Infinite tape

14
New cards

What name is given to the set of symbols that a Turing machine can recognise?

Alphabet

15
New cards

What is the importance of Turing machines on the subject of computation?

Turing machines prove that there are problems which cannot be solved by computers.

16
New cards

Information hiding

Information hiding is the principle of hiding an actual implementation of a module and allowing access through a known interface. Or hiding all the details of an object that do not contribute to its essential characteristics.

17
New cards

Procedural abstraction

The result of abstracting away the actual values used in any particular computation, is a computational pattern or method (is the general method used to solve it) – a procedure.

18
New cards

Functional abstraction

A further level of abstraction, which disregards the particular computation method, which is hidden. We know what a function should do but we have abstracted (hidden) the implementation.

19
New cards

Data abstraction

Data abstraction is a methodology that enables us to isolate how a compound data object is used from the details of how it is constructed. For example, a stack could be implemented as an array and a pointer for top of stack.

20
New cards

Problem abstraction

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.

21
New cards

Composition abstraction

A composition abstraction is built by combining procedures to form compound procedures or combining data objects to form compound data (for example, a tree data structure).

22
New cards

Automation

Automation requires putting models (abstraction of real world objects/phenomena) into action to solve problems.

This is achieved by:

creating algorithms;

implementing the algorithms in program code (instructions);

implementing the models in data structures;

executing the code.

23
New cards

Empty set (symbols)

The empty set is {} and an alternative symbol is Ø

24
New cards

Set difference

The difference of two sets is those elements that belong in the first set but not in the second.

25
New cards

Countably infinite set

A countably infinite set is one that can be counted off by the natural numbers.

26
New cards

Regular expression + metacharacter

  • means “one or more repetitions”
27
New cards

Regular language

A language that can be defined by the use of a regular expression.

A regular language is any language that a finite state machine (FSM) will accept.

(Regular expressions and FSMs are equivalent ways of defining a regular language.)

28
New cards

Regular expression and FSM relationship

Regular expressions and FSMs are equivalent ways of defining a regular language (you can convert between them)

29
New cards

Algorithm

A sequence of steps that can be followed to complete a task and that always terminates.

30
New cards

Abstraction

The process of removing unnecessary details from a problem.

31
New cards

Representational abstraction

Removing unnecessary details.

32
New cards

Finite state machine (FSM)

A FSM is a model of computation for a machine that is always in one of a fixed number of states.

The state of the machine can be changed according to transition rules, based upon the input that it receives and its current state.

Some FSMs produce output as they carry out transitions, while others simply produce a yes/no response at the end of processing their input.

33
New cards

Set

A set is an unordered collection of unique elements.

34
New cards

Finite set

A finite set is one whose elements can be counted off by natural numbers up to a particular number, for example as: 1st element, 2nd element, …, 20th (and final) element.

35
New cards

Infinite set

A set which is not finite.

The set of natural numbers, ℕ and the set of real numbers, ℝ are examples of infinite sets.

36
New cards

Cartesian product of two sets

The Cartesian product of two sets, X and Y, written X x Y and read 'X cross Y', is the set of all ordered pairs (a, b) where a is a member of A and b is a member of B.

37
New cards

Subset

If every element of a set A belongs to a set B then A is a subset of B. The empty set is a subset of all sets.

38
New cards

Proper subset

If every element of a set A belongs to a set B, but there is at least one element of B that is not in A, then A is a proper subset of B.

39
New cards

Countable set

A countable set is a set with the same cardinality (number of elements) as some subset of natural numbers.

40
New cards

Set membership

With a set A = { 1, 2, 3 } we can say that 1∈ A (1 is a member of A) and that 4 ∉ A (4 is not a member of A).

41
New cards

Set union

The union of two sets is all of the elements that belong to the two sets.

42
New cards

Set intersection

The intersection of two sets is all of the elements that belong to both of the two sets.

43
New cards

Regular expression

Is a way of describing a set (allowed strings). Regular expressions allow particular types of languages to be described in a convenient shorthand notation.

44
New cards

Context-free language

A context-free language can be described by a context-free grammar or a set of rules for deriving strings in a language. Backus-Naur Form and syntax diagrams are two ways of defining the grammar for a context-free language.

45
New cards

Backus-Naur Form (BNF)

Backus-Naur Form can be used to define a context-free grammar which can be used to define the syntax rules of a programming language. BNF allows us to write production rules that use terminal and non-terminal symbols. Recursion is used in BNF production rules to allow the definition of ‘one of more’ of a symbol.

46
New cards

Syntax diagram

A syntax diagram is another method that can be used to define a context-free grammar.

47
New cards

Big-O notation

Algorithmic complexity is a means of comparing the efficiency of an algorithm. Complexity can be measured in terms of the time taken to complete the algorithm (time complexity) or in terms of the memory space needed (space complexity). Complexity is usually found to vary in terms of the size of the input and can be expressed using Big-O notation. Big-O notation allows for the comparison of algorithms.

48
New cards

Mathematical definition of a function

A mapping from one set of values, the domain, to another set of values, drawn from the co-domain, for example ℕ → ℕ.

49
New cards

Permutation

The number of ways a particular set can be arranged.

50
New cards

Tractable

Problems that are computable and have a polynomial (or less) time solution are called tractable problems.

51
New cards

Intractable

Problems that are computable but have no polynomial (or less) time solution are called intractable problems.

52
New cards

Heuristic

An approach that uses experience to make informed guesses that assist in finding a polynomial time ’solution’ to an intractable problem. The solution may be non-optimal.

53
New cards

Computable

The ability to solve a problem with the use of an algorithm.

54
New cards

Non-computable

A problem for which there is no algorithm that can be used to solve it.

55
New cards

Halting problem

The unsolvable problem of writing a computer program that can tell whether a given program and its inputs will halt, without running the given program. The Halting problem demonstrates that there are some problems that cannot be solved by a computer.

56
New cards

State transition table

A state transition table shows which state a finite state machine will move to based on the current state and inputs.

57
New cards

State transition diagram

A state transition diagram can graphically represent a finite state machine. States are represented by nodes. Edges represent transitions between states and are normally directed and labelled with the input, and sometimes output, symbols. Any accepting state(s) are drawn as double circles.

58
New cards

Transition rule

A Turing machine’s transition rule defines the behaviour when reading a specific symbol from the tape in a current state. The rule defines what to write to the tape, how to move the tape and the next state.

59
New cards

Transition function

A transition function is a mapping from a current state and input to the next state and any output. δ(SCurrent , input) = (SNext , output)

60
New cards

Turing machine

A Turing machine can be viewed as a computer with a single fixed program, expressed using:

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.

61
New cards

Start state and halting state

In a Turing machine, one of the states is called a start state, and states that have no outgoing transitions are called halting states.

Explore top notes

note
Photosynthesis Quiz
Updated 1282d ago
0.0(0)
note
Unit 5: Period 5: 1844-1877
Updated 1063d ago
0.0(0)
note
Dutch
Updated 410d ago
0.0(0)
note
Iteration
Updated 1094d ago
0.0(0)
note
Specific Phobias
Updated 1161d ago
0.0(0)
note
Photosynthesis Quiz
Updated 1282d ago
0.0(0)
note
Unit 5: Period 5: 1844-1877
Updated 1063d ago
0.0(0)
note
Dutch
Updated 410d ago
0.0(0)
note
Iteration
Updated 1094d ago
0.0(0)
note
Specific Phobias
Updated 1161d ago
0.0(0)

Explore top flashcards

flashcards
Unit 2 Health ILSW 7
149
Updated 277d ago
0.0(0)
flashcards
Religion 2 - Kristendom
53
Updated 1146d ago
0.0(0)
flashcards
La Siesta del Martes
55
Updated 928d ago
0.0(0)
flashcards
Piliavin
59
Updated 1105d ago
0.0(0)
flashcards
9
106
Updated 1138d ago
0.0(0)
flashcards
Structures with Hammy
92
Updated 1072d ago
0.0(0)
flashcards
Unit 2 Health ILSW 7
149
Updated 277d ago
0.0(0)
flashcards
Religion 2 - Kristendom
53
Updated 1146d ago
0.0(0)
flashcards
La Siesta del Martes
55
Updated 928d ago
0.0(0)
flashcards
Piliavin
59
Updated 1105d ago
0.0(0)
flashcards
9
106
Updated 1138d ago
0.0(0)
flashcards
Structures with Hammy
92
Updated 1072d ago
0.0(0)