• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 1 out of 3 pages
Summary

Summary Cheat Sheet - OCR Computer Science

Document preview thumbnail
Preview 1 out of 3 pages

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

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

Document information

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

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

Sold
0
Followers
0
Items
7
Last sold
-



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions