AtlasLog in
Black FridayHalf off Premium, through Sunday, Nov 29.See plans

Years 1–2

College computer science

Computer science5

Intro to Programming

Intro to Programming in Python

No. 018 pages

Values, names and types

Five lines of Python beside a frame of names: score and best each send an arrow to an int object, score now to 43 and best still to 42, while name and other both point at the one string object 'Ada'
No. 028 pages

Decisions and loops

Scores falling down a ladder of paper diamonds, score >= 90, score >= 80 and score >= 70, to the first true condition, which turns red and sends the score right into its grade, beside the if / elif / else code
No. 038 pages

Functions

The recursive fact function beside its call stack: under the global frame, three paper boards for fact(3), fact(2) and fact(1), each holding its own n, the deepest returning 1
No. 048 pages

Lists, tuples and strings

A list of six paper tiles, nums, with its indices beneath and blue fence posts between items marking a slice; the items the slice takes rise in red
No. 058 pages

Dictionaries, sets and files

A hash table of eight paper slots numbered 0 to 7, with keys 12, 20, 5 and 9 in their slots and a red key stepping past a taken slot to the next free one
No. 068 pages

Classes and exceptions

A class Dog drawn as a board holding its shared attribute kind, beside two dog objects, each a board of its own attributes, with names in the global frame pointing at them
No. 078 pages

Searching, sorting and efficiency

A list drawn as eight paper bars of different heights, part way through merge sort, the part just merged in blue beside the merge_sort code

Data Structures and Algorithms

Data Structures and Algorithms

No. 018 pages

Analyzing algorithms

Two rows of paper tiles holding the same fifteen sorted numbers: linear search on top has darkened ten of them on its way to 72, while binary search below has reached it in four probes, its low, high and mid pointers beneath
No. 027 pages

Lists, stacks and queues

Paper nodes joined by ink arrows: a linked list with a new red node being spliced in between two others
No. 038 pages

Hash tables

A row of paper buckets with short chains of keys hanging from them, one key in red being hashed into its bucket
No. 048 pages

Trees and heaps

A binary search tree of paper discs joined by ink rods, a red path running from the root down to the key being searched for
No. 059 pages

Sorting

A row of paper tiles mid quicksort, the pivot in red and the elements smaller than it in blue on its left
No. 068 pages

Graph algorithms

A weighted graph of paper discs and ink rods, Dijkstra’s algorithm having settled the blue vertices and lighting the next one in red
No. 078 pages

Algorithm design

A dynamic programming table of paper tiles filling row by row, the cell being computed in red and the cells it reads in blue

Computer Architecture

Computer Architecture

No. 0110 pages

Bits and numbers

A row of eight paper cells holding one byte, its 1 bits raised, read as the number 65, the letter A and hex 0x41
No. 0210 pages

Combinational logic

Logic gates cut from card, wired into a full adder, red wires carrying 1s
No. 039 pages

Sequential logic

A D flip-flop and a clock wave, a register capturing its input on the rising edge
No. 049 pages

The instruction set

A RISC-V instruction split into its fields beside the register file and memory
No. 059 pages

The single-cycle processor

The single-cycle RISC-V datapath: PC, instruction memory, register file, ALU and data memory, the path of a load lit red
No. 0610 pages

Pipelining

Five instructions overlapping in a five-stage pipeline diagram, one forwarded value in red
No. 079 pages

The memory hierarchy

A direct-mapped cache table, an address split into tag, index and offset, a hit lit blue and a miss red

Operating Systems

Operating Systems

No. 016 pages

What an operating system does

Three programs taking turns on one CPU chip, each lit with its own frames of memory beside the kernel’s, and a disk
No. 026 pages

Processes

A process’s address space as a column of code, data, heap and stack, with process blocks moving between ready, running and blocked
No. 036 pages

CPU scheduling

Jobs as colored bars on a timeline, queued in front of one CPU chip
No. 046 pages

Virtual memory

A virtual address split into page number and offset, translated through a page table into a frame of physical memory
No. 056 pages

Concurrency

Two threads sharing one address space, each with its own stack and program counter on its own core
No. 066 pages

File systems

A hard disk whose arm seeks while the platter turns the wanted sector under the head

Blockchain

College Blockchain

No. 017 pages

Hash functions

The word Atlas fed through a SHA-256 machine into a 256-bit digest written in red hex
No. 028 pages

Keys and signatures

A red private key turned one way into a blue public key, a payment signed with one and verified with the other
No. 037 pages

Transactions and blocks

Eight nodes linked peer to peer, each holding its own copy of the chain with a new payment in red on top
No. 047 pages

Proof of work

A miner trying nonce after nonce, each hash landing on the strip of all hashes until one falls under the blue target
No. 057 pages

Proof of stake

Six validators with stacks of coins, a bar chart behind them counting how often each was drawn to propose
No. 067 pages

Smart contracts

Three transactions calling increment() on a counter contract whose stored count reads 3