TOPIC 4 THEORY OF COMPUTATION
what is an algorithm? - correct answer--An algorithm is a sequence of steps that can
b b b b bb b b b b b b b b b
be followed to complete a task.
b b b b b b b
-An algorithm always terminates rather than going on forever in a loop.
b b b b b b b b b b b
describe abstraction in a representational way and general way? - correct answer--
b b b b b b b b b bb b
representational abstraction is removing unecessary details from a problem
b b b b b b b b b b
- A grouping by common characteristics to arrive at a hierarchical relationship of the
b b b b b b b b b b b b b
b"is a kind of" type.
b b b b
describe information hiding and procedural abstraction - correct answer--
b b b b b b bb b
Information hiding is defined as the process of hiding all details of an object that do
b b b b b b b b b b b b b b b b
not contribute to its essential characteristics. For example, if you're designing a
b b b b b b b b b b b b
program that works out how many cars can fit onto a ferry, information about the
b b b b b b b b b b b b b b b
manufacturer or the colour of a car can be disregarded and just information about
b b b b b b b b b b b b b b
the size and weight of cars retained.
b b b b b b b