Interactive Computer Science Simulations (Beta)
Explore interactive computer science simulations and visualizations designed to help students understand algorithms, data structures, operating systems, computer graphics, programming, and other core computer science concepts.
Programming
1Number Systems
6Number System Converter
Convert between binary, decimal, hex, octal
Try Simulation →
Two's Complement Simulator
Convert between denary and two's complement binary, with the invert-and-add-one steps and the negative place value shown.
Try Simulation →
Bitwise Operations Simulator
Apply AND, OR, XOR, NOT, logical and arithmetic shifts and rotations to 8-bit values, and use masks to set, clear and test bits.
Try Simulation →
Floating Point Representation Simulator
Store numbers as a two's complement mantissa and exponent, normalise them and see rounding errors, plus IEEE 754 32-bit and 64-bit.
Try Simulation →
BCD Representation Simulator
Store each denary digit as a 4-bit nibble, compare BCD with pure binary and add BCD numbers with the +6 correction.
Try Simulation →
Number System Operations
Add, subtract and multiply two or more numbers in binary, octal, denary or hexadecimal, with carries, borrows, overflow and underflow shown.
Try Simulation →
Data Representation
8Bitmap File Size Simulator
Calculate image file size from resolution and colour depth, with a live preview of how colour depth changes the image.
Try Simulation →
Sound File Size Simulator
Calculate audio file size from sample rate, bit depth, channels and duration, and see sampling, quantisation and aliasing on a wave.
Try Simulation →
Compression Simulator
Compare lossless dictionary compression of text with lossy compression of an image, and see the size saved and the data lost.
Try Simulation →
Run-Length Encoding Simulator
Compress text or a black-and-white image with run-length encoding, step by step, and compare the sizes before and after.
Try Simulation →
Huffman Coding Simulator
Build a Huffman tree from character frequencies one merge at a time, read off the prefix codes and compare the bits with ASCII.
Try Simulation →
Unicode / ASCII Simulator
See how characters are stored as numbers in ASCII, UTF-8 and UTF-16, with an interactive ASCII table.
Try Simulation →
Error Detection Simulator
Flip bits in transit and see how parity bits, parity blocks, checksums and majority voting detect or correct the errors.
Try Simulation →
Hamming Code Simulator
Encode data with Hamming (7,4) or (12,8), flip a bit and watch the parity checks find and correct it.
Try Simulation →
Logic Gates
1Data Structures
11B+ Tree
Insert, delete, search in a B+ tree visualiser
Try Simulation →
Stack (ADT) Simulator
Visualise push, pop, overflow, and underflow operations
Try Simulation →
Queue (ADT) Simulator
Show enqueue, dequeue, front, rear, overflow, and underflow.
Try Simulation →
Circular Queue (ADT) Simulator
Demonstrate wrap-around movement of front and rear pointers.
Try Simulation →
Linked List Simulator
Insert, delete and search in a linked list stored in arrays, with the start and free pointers and every pointer change shown step by step.
Try Simulation →
Doubly Linked List Simulator
Visualise prev and next pointer changes when inserting, deleting and traversing a doubly linked list in both directions.
Try Simulation →
Binary Tree Simulator
Build a binary tree, run pre-order, in-order, post-order and level-order traversals step by step, and see its height and leaf nodes.
Try Simulation →
Binary Search Tree Simulator
Insert, search and delete in a binary search tree step by step, including all three deletion cases and the in-order successor.
Try Simulation →
Heap Simulator
See min-heap and max-heap insertion, extraction and heapify as both a tree and an array, one swap at a time.
Try Simulation →
Hash Table Simulator
Hash keys into a table and resolve collisions with separate chaining, linear probing or quadratic probing, step by step.
Try Simulation →
Graph Data Structure Simulator
Create vertices and edges and watch the adjacency list and adjacency matrix update live, for directed or weighted graphs.
Try Simulation →
Algorithms
10Searching Algorithms
Run linear, binary, ternary and quaternary search on your own array and step through the code one line at a time.
Try Simulation →
Sorting Algorithm Visualiser
Visualise sorting algorithms
Try Simulation →
A* Algorithm
Show pathfinding using cost, heuristic, and total estimated distance.
Try Simulation →
BFS (Breadth First Search) Simulator
Build interactive graphs and watch BFS explore networks level-by-level using a visual queue.
Try Simulation →
DFS (Depth First Search) Simulator
Build interactive graphs and watch DFS plunge down deep paths and backtrack using a visual stack.
Try Simulation →
Dijkstra Simulator
Build interactive graphs and watch Dijkstra prioritize the lowest-cost paths to the target using a real-time priority queue.
Try Simulation →
Bellman-Ford Simulator
Build interactive graphs and watch Bellman-Ford algorithm prioritize the lowest-cost paths to the target.
Prim's Simulator
Build interactive graphs and watch Prim's algorithm prioritize the lowest-cost edges to connect all nodes into a Minimum Spanning Tree using a real-time priority queue.
Try Simulation →
Kruskal Simulator
Build interactive graphs and watch Kruskal's algorithm construct a Minimum Spanning Tree by sorting edges from lowest to highest cost and connecting the network while avoiding cycles.
Try Simulation →
Knapsack Simulator
Simulate 0/1 Knapsack using dynamic programming tabulation and Fractional Knapsack using greedy approach.
Try Simulation →
Theory of Computation: Automata and Computability
5DFA Simulator
Build, edit, and simulate strings in a DFA visualizer
Try Simulation →
State Transition Diagram
Create, edit, and test state machines interactively.
Try Simulation →
CFG (Context Free Grammar) Simulator
Interactive Context-Free Grammar parser and derivation visualizer
Try Simulation →
NFA Simulator
Build, edit, and simulate strings in an NFA visualizer
Try Simulation →
TM (Turing Machine) Simulator
Design, edit, and run computations in an interactive Turing Machine simulator
Try Simulation →
Artificial Intelligence
9Search Tree Simulator
Show BFS, DFS, uniform cost search, and heuristic search.
Decision Tree
Show how data is split using features.
Try Simulation →
Minimax Algorithm
Show game tree evaluation for two-player games.
Try Simulation →
Alpha-Beta Pruning Simulator
Show branches skipped during minimax optimization.
Try Simulation →
Weight Update Simulator
Show how weights change using error and learning rate.
Confusion Matrix Simulator
Show TP, FP, TN, FN, precision, recall, and accuracy.
Transformer Attention Simulator
Show query, key, value, attention scores, and weighted output.
Neural Network Forward Pass Simulator
Follow inputs through the layers of a neural network: weighted sums, biases and activation functions, neuron by neuron.
Gradient Descent Simulator
Watch gradient descent step down a loss curve, and see how the learning rate changes the speed and stability of training.
Computer Graphics
5DDA (Digital Differential Analyzer) Algorithm
Visualize how DDA draws a line step by step using slope, rounding, and pixel plotting.
Try Simulation →
Midpoint Line Drawing Algorithm
Simulate midpoint line drawing with zone conversion, decision parameters, and pixel plotting.
Try Simulation →
Cohen-Sutherland Line Clipping Algorithm
Visualize line clipping step by step using outcodes, boundary checks, and intersection points.
Try Simulation →
Cyrus-Beck Line Clipping Algorithm
Simulate parametric line clipping using boundary normals, PE/PL classification, and tE/tL values.
Try Simulation →
2D and 3D Geometric Transformation
Create shapes and apply serial transformations such as translation, scaling, rotation, reflection, shear, and custom matrices.
Try Simulation →
Operating Systems
4CPU Scheduling
Simulate FCFS, SJF, SRTF, LJF, LRTF, HRRN, Priority Scheduling, Round Robin and Multilevel Feedback Queue, with I/O bursts, Gantt charts, and waiting, turnaround and response times.
Try Simulation →
Paging Simulator
Translate virtual addresses with a page table and compare page replacement algorithms such as FIFO, LRU and Optimal.
File Allocation Simulator
See how files are stored on disk with contiguous, linked and indexed allocation, and how each handles growth and fragmentation.
Threading Simulator
Run threads side by side to see interleaving, race conditions and how locks and semaphores keep shared data safe.
Computer Architecture
2RISC-V Datapath Simulator
Type one RISC-V instruction and highlight the exact wires, components and control signals it uses in the single-cycle datapath.
Try Simulation →
RISC-V Assembly Language
Write and run RISC-V assembly one instruction at a time, watching registers and memory change after each step.
Data Communications
1Compiler Design
4SLR Parser Simulator
Enter a context-free grammar and build its LR(0) automaton, FIRST and FOLLOW sets and SLR parsing table, then parse an input string step by step.
Try Simulation →
Shift Reduce Parsing/Bottom Up Parsing Simulator
Enter a grammar, check whether it is ambiguous, then parse a string with shift and reduce actions step by step while the parse tree grows from the bottom up.
Try Simulation →
Syntax Directed Translation - Parse Tree using SDD
Enter a grammar and get its semantic rules and syntax tree construction rules, then apply them to an input string step by step on the annotated parse tree.
Lexical Analyzer Simulator
Turn source code into tokens step by step and see how a lexical analyser recognises keywords, identifiers, numbers and symbols.

