100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
1.9 Algorithms £5.49   Add to cart

Lecture notes

1.9 Algorithms

 38 views  0 purchase

Full notes for the module 1.9 Algorithms

Preview 1 out of 8  pages

  • June 11, 2019
  • 8
  • 2016/2017
  • Lecture notes
  • Unknown
  • All classes
book image

Book Title:

Author(s):

  • Edition:
  • ISBN:
  • Edition:
All documents for this subject (12)
avatar-seller
luca_pass
AS Computing
Unit 1.9 – Algorithms
What is an Algorithm?
An algorithm is a finite set of instructions to solve a problem. These instructions must be able to be
processed by a computer. They can be represented in pseudocode or flowcharts.

What Are Three Possible Algorithm Structures?

1. Sequence
a. A set of instructions that are executed one after another.
b. They are used when you want things to happen in a certain order.
c. An example of this is logging on to a school network.
d. Examples:
i. Making a cup of tea.
ii. Baking a cake.
iii. Getting dressed for school.
2. Selection
a. A set of choices from which one can be chosen.
b. They are used when you want your solution to make a decision.
c. An example of this is deciding whether to put a coat on depending on whether it is
cold outside.
d. Essentially If, Then, Else statements.
3. Iteration
a. An algorithm that will run until a condition is met or a result is achieved.
b. They are used when you want something done and it will take more than one
process.
c. May be repeated a fixed number of times or even a variable number.
d. An example of this is washing your car until the car is clean.
e. Essentially, Loops.

What is Dry-Running an Algorithm?

It is when you read an algorithm and work out what it does and what it is supposed to do. A dry run
does not involve coding or a computer.

Why Are Self-Documenting Variables and Identifiers Important?

1. If the development stage takes a long time they are useful to remind the developer what
they do.
2. Useful for other programmers who have to perform maintenance on the code so that they
can understand what the program does and how to fix it.
3. It is good practice and companies often have house styles/policies requiring employees to
adopt certain coding styles.




Page |1 Luca Passariello AS Computing

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 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 luca_pass. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

84866 documents were sold in the last 30 days

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

Start selling
£5.49
  • (0)
  Add to cart