Master the mindset that powers every algorithm
Theme B: Computational Thinking & Problem-Solving
This is where computer science stops being syntax and starts being strategy. Theme B equips you with the universal mental models — procedural, logical, concurrent, abstract, recursive — that turn messy real-world problems into elegant, verifiable algorithms. Master the patterns that appear in every exam paper and every technical interview.
- IBDP COMPUTER SCIENCE CORE
This unit
- Topics
- 10
- Unit of Computer Science
- 2 / 8
Overview
Theme B: Computational Thinking and Problem-Solving
Theme B spans the full problem-solving lifecycle: thinking procedurally, logically, concurrently, abstractly, and recursively; applying divide-and-conquer, backtracking, and heuristic strategies; designing and tracing algorithms with flowcharts and pseudocode; implementing core data structures (arrays, stacks, queues, linked lists, trees, hash tables) and abstract data types; and analysing standard searching, sorting, and graph algorithms for correctness and Big-O efficiency.
Assessment is woven across the IBDP Computer Science papers. Paper 1 tests conceptual understanding and algorithm tracing; Paper 2 demands coded solutions and structured problem-solving; the Internal Assessment requires a documented computational solution showcasing the very techniques taught here. HL students extend into advanced recursion, dynamic programming, and algorithmic complexity proofs.
Key ideas
What Theme B: Computational Thinking and Problem-Solving covers
- 01
Five Modes of Computational Thought
Procedural, logical, concurrent, abstract, and recursive thinking — the cognitive toolkit examiners expect you to deploy fluently.
- 02
Algorithm Design Paradigms
Divide-and-conquer, greedy heuristics, backtracking, and dynamic programming — learn when each fits and how to justify your choice.
- 03
Core Data Structures & ADTs
Arrays, stacks, queues, linked lists, trees, hash tables, and their abstract interfaces — implemented, traced, and complexity-analysed.
- 04
Standard Algorithm Library
Binary search, quicksort, mergesort, Dijkstra, DFS/BFS — know the pseudocode, trace tables, edge cases, and Big-O bounds cold.
- 05
Exam-Aligned Problem Solving
Structured approaches to Paper 1 trace questions, Paper 2 coding tasks, and the IA development cycle — all grounded in Theme B techniques.
- 06
HL Extensions: Complexity & Correctness
Formal recurrence relations, Master Theorem, loop invariants, and NP-completeness awareness — the deeper layer for Higher Level candidates.
Outcomes
What you will learn
- Decompose any problem into algorithmic stepsApply structured decomposition, abstraction, and pattern recognition to unfamiliar scenarios — the hallmark of Paper 2 success.
- Write and trace pseudocode with precisionProduce exam-ready pseudocode using IB-approved constructs; execute trace tables that earn full marks on Paper 1.
- Select and implement the right data structureMatch problem constraints to arrays, stacks, queues, trees, or hash tables; code them in your IA language (Python, Java, or C++).
- Analyse time and space complexity rigorouslyDerive Big-O, Big-Ω, and Big-Θ for iterative and recursive algorithms; apply the Master Theorem for HL recurrences.
- Construct a high-scoring Internal AssessmentFollow the IA criteria: planning, design, development, testing, and evaluation — all framed through Theme B's problem-solving lens.
- Communicate computational logic clearlyProduce flowcharts, structure charts, and written justifications that satisfy the 'communication' strand across all assessment components.
Topics
Topics in this unit
10 topics, each with notes to preview.
- 01B1.1 Computational Thinking
- 02B2.1 Programming Fundamentals
- 03B2.2 Data Structures
- 04B2.3 Programming Constructs
- 05B2.4 Programming Algorithms
- 06B2.5 File Processing
- 07B3.1 Fundamentals of OOP for a Single Class
- 08B2.4 Programming Algorithms (HL)Higher Level
- 09B3.2 Inheritance and Polymorphism (HL)Higher Level
- 10B4.1 Abstract Data Types (HL)Higher Level
FAQs
Common questions
Is Theme B examined differently for HL and SL?
The core topics are identical, but HL students must additionally master recursive algorithm analysis, dynamic programming, and formal complexity proofs. Both levels face Theme B questions in Paper 1 and Paper 2.
Which programming language should I use for Theme B practice?
The IB accepts Python, Java, or C++ for the IA and Paper 2. Choose the language your school teaches; conceptual understanding transfers across all three.
How much of the Internal Assessment relies on Theme B?
The entire IA is a Theme B showcase: you must demonstrate computational thinking, algorithm design, appropriate data structures, and complexity awareness in your solution and documentation.
Can I self-study Theme B effectively?
Self-study is possible with the syllabus guide and past papers, but the abstract thinking modes and trace-table discipline benefit enormously from expert feedback — especially for Paper 1 tracing and IA design reviews.
Ready to master Theme B: Computational Thinking and Problem-Solving?
This is where computer science stops being syntax and starts being strategy. Theme B equips you with the universal mental models — procedural, logical, concurrent, abstract, recursive — that turn messy real-world problems into elegant, verifiable algorithms. Master the patterns that appear in every exam paper and every technical interview.