100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
OCR Computer Science Unit 2 $11.01   Add to cart

Class notes

OCR Computer Science Unit 2

1 review
 133 views  1 purchase
  • Course
  • Institution
  • Book

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.

Preview 1 out of 26  pages

  • November 13, 2018
  • 26
  • 2016/2017
  • Class notes
  • Unknown
  • All classes

1  review

review-writer-avatar

By: sajedmo • 4 year ago

avatar-seller
(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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller ravi15. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $11.01. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

66579 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$11.01  1x  sold
  • (1)
  Add to cart