100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Summary Notes essential for achieving A/A* in WJEC A Level CS Unit 3 Exam £2.99   Add to cart

Summary

Summary Notes essential for achieving A/A* in WJEC A Level CS Unit 3 Exam

 35 views  1 purchase

These notes are essential for achieving an A/A* in the WJEC A Level Computer Science Unit 3 exam. They cover key topics such as data structures, algorithms, programming principles, databases, and system analysis. The notes provide clear explanations, examples, and important definitions, ensuring a ...

[Show more]

Preview 4 out of 43  pages

  • June 15, 2024
  • 43
  • 2023/2024
  • Summary
All documents for this subject (4)
avatar-seller
ruslanpavliichuk
1. Data Structures

(*) Arrays
Array – is a data structure that allows to store one single type of data
during running of a computer program.

2D Array – collection of elements that are stored in rows and columns
(x,y).

3D Array – collection of elements that are stored in rows, columns and
tables (x,y,z).



NOTE: In programming the most popular type of array is 1D and 2D arrays
as with the 3D arrays it is very complex to represent them due to extra
dimension is added.

When searching element in the array:
1D - ArrayName(position in a row) Array(0)

2D – ArrayName(row, column) Array(1,2)

3D – ArrayName(table, row, column) Array(1,2,1)




(*) Hash Tables
Hash table is created from two components which are: table where the
actual data is stored, mapping function (hashing algorithm).

Purpose of mapping function - It calculates the number of characters in
the value that is going to be stored, then the length of the string is divided
by 5 using MOD operator to find the remainder. When the value is
calculated the index (key identifier) is written to the hash table where the
value is stored.

,NOTE: If someone with a name that contains the same number of
characters and a previous name is used, then it generated the same index
value. It will therefore overwrite the previous name with the new one.

E.g. ERIN is to be added ERIN = 4 MOD 5 = 4




(*) Pointers and Lists
List – is an ordered collection of data or items that can be different data
type (but usually they are the same).

Each record in list is called a node.

Null pointer – is a last node in the list.

Start Pointer – links to the first node in a list.

Next Free – gives the address of the next free record space.

,Lists also can be represented as a diagram, where data and a pointer are
used to link each element in the list.




(*) Stacks and Ques
Stack – is a linear data structure that operates in a LIFO manner (Last in
First out). Elements are added on the top of the stack, can only be the
elements that are able to be accessed or removed.

Pushing – is adding a new element to the top of the stack.

Popping – is removing of element on the top of the stack.

Stack Pointer – is a variable that denotes the location of the top of the
stack.



Why stacks are important in computing?

 When a program runs and a specific action is carried out, like calling
a procedure, the program remembers where it stopped by saving
that location in a stack. Then, it executes the procedure, and once
it's finished, it goes back to the point in the program saved on the
top of the stack (which is removed from the stack). This process
allows procedures to call other procedures, creating a chain of
actions.

,  Used to evaluate an arithmetic expression in a Reversed Polish
Notation. For example, the signs of operators are placed after the
operands. For example, if we want to do following calculation 3 + 4
in Reverse Polish Notation it will be written as 3 4 +. Operands are
pushed onto the stack as they are encountered, and when an
operator is encountered, it operates on the top elements of the
stack. This makes evaluation straightforward and efficient because
operators always have their operands immediately available on the
stack.



Queue – is a linear data structure that operates in a FIFO manner (First in
First out). The first item added is the first item that can be accessed.

Front Pointer – is a variable that denotes the first element in the queue
(item that was the longest).

Back Pointer – is a variable that denotes the last element in the queue
(item that was recently added).

Circular Queue – is a queue where first element is connected to the last
element forming a circular structure.




Why queues are important in computing?

 Task Scheduling: They are important for scheduling tasks and
processes in computer system. For example, in operating systems,
queues are used in task scheduling algorithms to prioritise and
schedule tasks for execution based on various criteria such as
priority levels, deadlines, and resource availability.




(*) Tree Traversal Algorithms
A binary tree can be implemented in the format of array or linked list. It is
more useful to implement it using a linked list as it allows the binary tree
to be dynamic and they can grow to any size.

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

73216 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
£2.99  1x  sold
  • (0)
  Add to cart