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
Summary

Summary Cheat Sheet - OCR Computer Science

Rating
-
Sold
-
Pages
3
Uploaded on
29-05-2025
Written in
2024/2025

A Cheat sheet that helps with all major topics in remembering.

Institution
Course

Content preview

OCR A Level Computer Science Cheat Sheets
=========================================

1) Data Structures Cheat Sheet
------------------------------
- Array:
- Fixed size, indexed collection of elements.
- Access by index is O(1).
- Insertion/deletion expensive if not at the end (O(n)).

- Stack:
- Last In First Out (LIFO).
- Operations: PUSH (add), POP (remove).
- Used in recursion, undo features.

- Queue:
- First In First Out (FIFO).
- Operations: ENQUEUE (add), DEQUEUE (remove).
- Used in scheduling, buffering.

- Linked List:
- Collection of nodes, each containing data + pointer to next node.
- Dynamic size, efficient insertions/deletions O(1) if position known.
- Access by index O(n).

- Tree:
- Hierarchical structure, nodes with children.
- Binary tree: max 2 children per node.
- Used in searching, sorting (e.g., binary search trees).

- Hash Table:
- Key-value pairs.
- Fast access O(1) average, uses hash functions.
- Collisions handled by chaining or open addressing.

- Graph:
- Nodes (vertices) connected by edges.
- Can be directed/undirected.
- Used for networks, pathfinding.

---

2) Python / Pseudocode Syntax Cheat Sheet
-----------------------------------------
- Variables and assignment:
x = 5
name = "Alice"

- Conditionals:
IF condition THEN
statements
ELSE
other statements

- Loops:
FOR i FROM 0 TO 10 DO
statements
WHILE condition DO
statements

Written for

Study Level
Examinator
Subject
Unit

Document information

Uploaded on
May 29, 2025
Number of pages
3
Written in
2024/2025
Type
SUMMARY

Subjects

$10.50
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
viyan

Get to know the seller

Seller avatar
viyan me
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
10 months
Number of followers
0
Documents
7
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

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 tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

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

Student with book image

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

Alisha Student

Frequently asked questions