Business and technology qualifications, Levels 3-6, in Brussels. Explore qualifications
Portal login
Level 4 Diploma in Cyber Security

Binary in computer science: binary addition and overflow, two's complement and floating point

CYB402 · Mathematics for Computer Science — Week 2 of 16

CourseCYB402
Week2 of 16
SemesterI
TutorOnline in the course chat

This week’s topics

Binary in computer science: binary addition and overflow, two's complement and floating point

  1. How numbers are represented in binary
  2. The use of binary representation in the field of computer science

What you will be able to do

  • 1.3 Explain how numbers are represented in binary.
  • 1.4 Evaluate the use of binary representation in the field of computer science.

Activity

Start with this week’s 4 videos, then: Seminar, guided reading and a short written task: explain how numbers are represented in binary.

Study materials

Videos

  • Binary addition · Oak National Academy, Key Stage 4 (GCSE level) · for registered students
  • Binary Addition & Overflow - Computerphile · YouTube · Computerphile · 7 min · for registered students
  • Binary Addition · YouTube · Neso Academy · 8 min · for registered students
  • Representing Numbers and Letters with Binary: Crash Course Computer Science #4 · YouTube · CrashCourse · 11 min · for registered students

Further resources

  • Contemporary Mathematics, 4.4: Addition and Subtraction in Base Systems · PDF · OpenStax Contemporary Mathematics (2023), 4.4: adding and subtracting in binary and other bases, pp. 300–314 · for registered students
  • Computer Systems: A Programmer's Perspective, 2.1.3: Data Sizes · PDF · Bryant & O'Hallaron, CS:APP 2e manuscript sample, 2.1.3 on bits, bytes and word sizes (a step up), pp. 36–37 · for registered students
  • Introduction to Python Programming, 2.2–2.4: Type conversion · PDF · OpenStax Introduction to Python Programming (2024), 2.2–2.4: type conversion, mixed data types and floating-point errors, pp. 40–48 · for registered students
  • Understanding integer overflow in C/C++ · Open-access article · Dietz et al. (2012), International Conference on Software Engineering (ICSE). Real-world consequences of integer overflow in programs. · for registered students
Materials marked “for registered students” open in the student portal, which is set up as soon as you receive final acceptance.
Course chat

Admitted students ask questions on this week’s page in the student portal: an AI assistant trained on the course answers first, and during the course’s timetabled classes Connect to your tutor brings your tutor into the chat, who may start a call if needed.

Open this week in the portal
Course plan
  • Week 1: Number bases: binary, denary and hexadecimal, and convertin…
  • Week 2: Binary in computer science: binary addition and overflow, t…
  • Week 3: Propositional logic: Boolean operators and truth tables
  • Week 4: Set theory: Venn diagrams, notation, union, intersection an…
  • Week 5: Proof techniques: induction and strong induction, contradic…
  • Week 6: Finite fields and modular arithmetic: algebras, identities …
  • Week 7: Number-theoretic theorems (Fermat's little theorem, Euler's…
  • Midterm: Midterm evaluation
  • Week 9: Sequences and series: arithmetic, geometric and harmonic pr…
  • Week 10: Vectors and matrices: matrix multiplication, inverses and s…
  • Week 11: Matrix types and properties (trace, determinant), LU decomp…
  • Week 12: Applying Mathematics for Computer Science in practice: case…
  • Week 13: Assignment workshop: research, planning and referencing
  • Week 14: Assignment workshop: drafting, feedback and improvement
  • Week 15: Review and coursework completion
  • Final: Final assessment and submission
Back to the course
Scroll