返回卡包市场

theory of computation

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 22内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (22 张)

#1
正面 (问题)

What is an algorithm?

背面 (解答)

this is an sequence of steps that can be followed to complete a task.

#2
正面 (问题)

Whats Abstract by Generalisation and Representational Abstraction.

背面 (解答)

Abstraction by Generalisation: is simplifying a problem by grouping together common characteristics of a problem to arrive at a hierarchal relationship. Representational Abstraction: Simplifying a problem by only taking into consideration the necessary details required to obtain a solution, leaving representation without any unnecessary details.

#3
正面 (问题)

Name and explain the different procedural Abstraction.

背面 (解答)

Procedural Abstraction: simplifying a problem by breaking it down into a series of procedures or subroutines that are generalised with variable parameters. Procedure: The result of abstracting away the actual values used in any particular computation is a computational pattern.

#4
正面 (问题)

Whats functional Abstraction.

背面 (解答)

Simplifying a problem by breaking it down into a series of reusable functions which disregard the particular computational method.

#5
正面 (问题)

Name the different Data Abstractions.

背面 (解答)

Data abstraction: The storage and representation of data in a computer system along with its logical description and interaction with operators. This allows a construction of new compound data objects from existing ones. Data Objects: Data abstractions that hide details of ho data are actually represented from the user.

#6
正面 (问题)

What is Problem Abstraction?

背面 (解答)

The repeated removal of unnecessary details from a problem until a underlying problem representation is reached which is identical to a previously solved problem.

#7
正面 (问题)

What is procedural decomposition.

背面 (解答)

The process of breaking down a problem into a number of sub-problems so that each sub-problem accomplished an identifiable task, which might itself be further subdivided.

#8
正面 (问题)

Name and describe the different states in a finite machine.

背面 (解答)

Accepting states: an optional state of a FSM that indicates whether or not an input has been accepted by the FSM. FSM: A model of computation for a machine that is always in one of a fixed number of states. Mealy machine: a finite state machine that determines its outputs from the preset state from the inputs. State Transition diagrams: a visual representation of a FSm that uses circles to represent states. State Transition tables: contains current states and inputs and successor state in a table.

#9
正面 (问题)

whats a finite and infinite set.

背面 (解答)

Finite set: A set who’s elements can be counted off by natural numbers up to a particular number. Infinite sets: A set that is not finite. cardinality of finite set: the number of elements in the set.

#10
正面 (问题)

What is a regular expression and language.

背面 (解答)

Regular Expression: A way of describing sets and the elements present within it using string s of characters. Regular language: A language that can be represented by a regular expression.

#11
正面 (问题)

What is the cartesian product of a set?

背面 (解答)

Cartesian product of set: The set of all ordered pairs(a, b) where a and b are from different sets. Countable sets: A set with same cardinality as some subset of

#12
正面 (问题)

what is a set and set comprehension?

背面 (解答)

The creation of a set(an unordered collection of values In which each value is unique) by mathematically defining the element that qualify to be in the set.

#13
正面 (问题)

What is the Backus-Naur Form(BNF).

背面 (解答)

A notation technique to express syntax of languages in computing.

#14
正面 (问题)

Whats the difference between a computable and non-computable problem?

背面 (解答)

A computable problem is one that can be solved algorithmically. whilst a non-computable is one that can’t be solved algorithmically.

#15
正面 (问题)

what is the halting problem.

背面 (解答)

The unsolvable problem of deterring whether any program will eventually stop if given a particular input.

#16
正面 (问题)

What is a Turing machine.

背面 (解答)

this a model that consists of a finite state machine, a read/write head and a tape that is infinitely long in one direction. This tape is divided into several cells each of which can either be blank or contain a symbol. These can be changed using the read/write head.

#17
正面 (问题)

How can the rules of a Turing machine be laid out.

背面 (解答)

This can be done using a transition function using δ(S0, □) = (S1, 1, R), this means if the machine is in state 1 and reads an empty cell then the machine should write a 1, move to state S1 and move to the right.

#18
正面 (问题)

What is a universal Turing machine.

背面 (解答)

These are able to represent any finite state machine, they can be said to act as interpreters as they follow a sequence of instructions before executing the operations.

#19
正面 (问题)

What is the halting problem and why is it significant? [4 marks]

背面 (解答)

This states whether a program will stop or run forever, this means that no computer can see solve it.

#20
正面 (问题)

Explain what is meant by a tractable problem. [2 marks]

背面 (解答)

this can be solved in a reasonable amount of time. so it has a polynomial time solution O(n^k).

#21
正面 (问题)

Explain why the language {aⁿbⁿ | n ≥ 0} cannot be expressed as a regular expression. [3 marks]

背面 (解答)

this requires unlimited memory to be able to match equal number of a’s and b’s requires counting how many a’s were seen.

#22
正面 (问题)

Distinguish between data abstraction and procedural abstraction, giving an example of each. [4 marks]

背面 (解答)

data abstraction hides how data is internally stored(using a stack without know how its implemented) whilst procedural abstraction hides how a procedure of function works internally. e.g. sort()