Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 TrustPilot
logo-home
Class notes

OCR Computer Science Unit 2

Rating
1,0
(1)
Sold
1
Pages
26
Uploaded on
13-11-2018
Written in
2016/2017

Notes for OCR A Level Computer Science, first examined in 2016 (AS) and 2017 (A2). Notes written from course text books and other third party resources and research. Comprehensively mapped to the specification. I got an A* using them.

Show more Read less
Institution
Course

Content preview

(02) Algorithms and Programming
2.1.1 Thinking Abstractly




(a) The nature of abstraction.
Abstraction is a “Concept of Reality” – it helps to solve a problem by representing it in a more simple
way. It can be used to test if a factor is important in a scenario for example. A Lot of information in a
problem is not important to solving it. It can be applied using many methods to interpret a variety of
problems. It is the simplification of reality into a flowing method of solution.

(b) The need for abstraction
Abstraction maximises chances of solving a problem - breaks down into the components needed,
otherwise using computers to solve problems would be impossible. Abstraction is often essential to
gain an understanding of the problem and its components. Instead of having one person plan a
large event, the task is first simplified into its basic components, such as decorations, catering and
so. Each task is solved individually and gradually more detail can be added. IT makes problems
efficient so solve in a methodical manner.

(c) The differences between an abstraction and reality.
‘Layers of Abstraction’ breaks a problem into its components, these are further broken down to
solve a particular element, different problems are solved by different components - a big system can
do a variety of tasks by using different components. Abstraction can be used to remove unnecessary
data in a model eg Craters on a solar system model or pot holes in a road. Only keep the data that is
important to complete the task at hand. This will vary on different levels.

(d) Devise an abstract model for a variety of situations.
This process can be called “Abstraction by Generalisation”, first identify the components that may
generally be used, then implement them catering for the current environment they are in. Slowly
add more detail to the model and expand on the specific details.

Abstraction is also seen when a precondition or sub-procedure is called, as we might not be aware of
how the process is completed. For example in python “print” and “input” are preconditions calling
code written by developers.

Variables are a form of Abstraction - represent a real world value. Example - A chair is an object with
a surface to sit on and legs to stand on. Each chair is an instance of the class chair.

Procedural Abstraction – Programmers use a procedure via its interface Procedure Name(a, b, c).
They receive the expected output but are not aware of how this was done, and are not concerned
with it. The procedure will have been written and tested such that it works in a versatile and robust
manner.




P a g e 56 | 81
Ravi Shah

Connected book

Written for

Study Level
Publisher
Subject
Course

Document information

Uploaded on
November 13, 2018
Number of pages
26
Written in
2016/2017
Type
Class notes
Professor(s)
Unknown
Contains
All classes

Subjects

R200,74
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
ravi15
2,0
(2)

Document also available in package deal

Reviews from verified buyers

Showing all reviews
6 year ago

1,0

1 reviews

5
0
4
0
3
0
2
0
1
1
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
ravi15 OCR
Follow You need to be logged in order to follow users or courses
Sold
4
Member since
7 year
Number of followers
3
Documents
8
Last sold
2 year ago

2,0

2 reviews

5
0
4
0
3
1
2
0
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions