CS With NehalCS With Nehal

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

1

Number Systems

6

Data Representation

8

Logic Gates

1

Data Structures

11

B+ 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

10

Theory of Computation: Automata and Computability

5

Artificial Intelligence

9

Search 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

5

Operating Systems

4

CPU 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

2

RISC-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

1

Compiler Design

4

SLR 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.