100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 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.









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

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

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
£7.16
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
viyan

Get to know the seller

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

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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 revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions