∑GateAndNet
PlannerSign Up
Interactive CS Simulators

Algorithm, Operating Systems & Digital Logic Simulators

Step through partition pointers, merge passes, KMP prefix tables, Dijkstra edge relaxations, CPU scheduling Gantt charts, and logic circuits one frame at a time.

Algorithm Notes Solve Algorithm PYQs

Quick Sort (Lomuto Partition)

Avg Θ(n log n) • Worst O(n²)Space: O(log n) stackUnstableGATE CS Favorite
Comparisons: 0Swaps / Writes: 0
38
[0]
14
[1]
52
[2]
23
[3]
67
[4]
19
[5]
44
[6]
11
[7]
31
[8]
Live Execution Trace
quickSort(A, low, high):
if low < high:
pivot = A[high]; i = low - 1
for j = low to high - 1:
if A[j] <= pivot: swap(A[++i], A[j])
swap(A[i + 1], A[high]) // pivot locked!
Initial array of 9 elements ready for QUICK trace.
1 / 42
⚙️ + 🔌 Systems & Hardware Visual Lab

Operating Systems & Digital Logic Interactive Drawings & Simulators

Explore CPU Scheduling Gantt charts, Banker’s Safe Sequence, Disk Seek trajectories, TLB + 2-Level Paging buses, 4-Variable K-Maps, Counter Timing Waveforms, 4×1 MUX synthesis, and IEEE-754 bit fields.

Operating SystemsGantt + TAT/WT

CPU Scheduling Live Gantt Chart (SRTF / RR / SJF / FCFS)

Timeline t = 14 / 14
CPU Execution Gantt Chart:
P10–1
P21–4
P44–6
P16–10
P310–14
ProcessArrival (AT)Burst (BT)Completion (CT)TAT = CT − ATWT = TAT − BT
P10510105
P213430
P32414128
P442620
Average TAT = 6.75 • Average Waiting Time = 3.25

📐 Direct Simulator Directory & Complexity Summary (19 Interactive Labs)

SortingGATE CS Favorite
Quick Sort (Lomuto Partition)
Time: Avg Θ(n log n) • Worst O(n²) • Space: O(log n) stack
Open Dedicated Simulator
SortingRecurrence T(n)=2T(n/2)+Θ(n)
Merge Sort (Divide & Merge)
Time: All Cases Θ(n log n) • Space: O(n) aux
Open Dedicated Simulator
SortingΘ(n + Inversions)
Insertion Sort (Adaptive)
Time: Best Θ(n) • Worst Θ(n²) • Space: O(1)
Open Dedicated Simulator
SortingAt most (n − 1) swaps!
Selection Sort (Min-Swap)
Time: All Cases Θ(n²) • Space: O(1)
Open Dedicated Simulator
SortingLargest bubbles to end
Bubble Sort (Early-Exit Flag)
Time: Best Θ(n) • Worst Θ(n²) • Space: O(1)
Open Dedicated Simulator
Searching & StringsInvariant: target ∈ [L..H]
Binary Search (Interval Halving)
Time: Worst O(⌊log₂ n⌋ + 1) • Space: O(1) iterative
Open Dedicated Simulator
Searching & StringsText pointer i NEVER backs up!
KMP String Matching (LPS Table)
Time: Θ(n + m) Guaranteed • Space: O(m) LPS array
Open Dedicated Simulator
Graph AlgorithmsRequires w(u,v) ≥ 0
Dijkstra Shortest Path (Greedy)
Time: O((V + E) log V) • Space: O(V) min-heap
Open Dedicated Simulator
Graph AlgorithmsLevel-Order vs Backtracking
BFS Queue vs DFS Stack Traversal
Time: Θ(V + E) Adjacency List • Space: O(V)
Open Dedicated Simulator
Logic & OS SystemsGATE OS Paging Classic
OS Page Replacement (LRU vs FIFO)
Time: Belady Anomaly Demo • Space: 3 vs 4 Page Frames
Open Dedicated Simulator
Logic & OS SystemsDigital Logic Interactive
1-Bit Full Adder & Universal Gates
Time: Sum = A⊕B⊕Cin • Space: Cout = AB + Cin(A⊕B)
Open Dedicated Simulator
Operating SystemsGantt + TAT/WT
CPU Scheduling Live Gantt Chart (SRTF / RR / SJF / FCFS)
Interactive Operating Systems CPU Scheduling Gantt chart simulator for FCFS, SJF, preemptive SRTF, and Round Robin (Quantum=2) with CT, TAT, and Waiting Time tables.
Open Dedicated Simulator
Operating SystemsNeed ≤ Work Trace
Banker’s Deadlock Safety Sequence Step-by-Step
Step-by-step Banker’s Deadlock Avoidance algorithm animation computing Need = Max − Allocation and verifying Need[i] ≤ Work safe sequence for GATE OS.
Open Dedicated Simulator
Operating Systems2D Cylinder Plot
Disk Arm Seek Trajectory Drawing (SSTF / SCAN / C-SCAN / C-LOOK)
2D SVG Disk Arm seek trajectory visualizer comparing FCFS, SSTF, SCAN (Elevator), C-SCAN, and C-LOOK total head movement across cylinders 0–199.
Open Dedicated Simulator
Operating SystemsSVG Bus Diagram
Virtual Memory TLB + 2-Level Page Table Hardware Schematic
Interactive 32-bit Virtual Address (10-10-12) TLB + 2-Level Page Table hardware bus diagram with live Effective Memory Access Time (EMAT) calculator.
Open Dedicated Simulator
Digital LogicGray-Code Wrap
Interactive 4-Variable K-Map Grouping & Prime Implicants
Clickable 4-Variable Karnaugh Map (K-Map) solver with Gray-code wrap-around octets/quads, Essential Prime Implicants (EPIs), and minimal SOP Boolean expression.
Open Dedicated Simulator
Digital LogicCLK ÷2 ÷4 ÷8 SVG
3-Bit Synchronous Counter & Clock Divider Timing Waveforms
Interactive 3-bit Synchronous Counter digital timing waveform diagram showing rising clock edges, Q0/Q1/Q2 frequency division (f/2, f/4, f/8), and state transitions.
Open Dedicated Simulator
Digital LogicShannon Expansion
4×1 Multiplexer Universal Boolean Function Schematic
Interactive 4×1 MUX Boolean function implementation schematic using Shannon’s Expansion on select lines (A, B) with residue inputs {0, 1, C, C̅}.
Open Dedicated Simulator
Digital LogicSign • Exp • Mantissa
32-Bit IEEE-754 Floating-Point Bit-Field Decoder
Interactive 32-bit Single-Precision IEEE-754 Floating-Point bit toggle decoder illustrating Sign bit, Excess-127 biased Exponent, implicit 1.M Mantissa, Denormals, Inf & NaN.
Open Dedicated Simulator