⚙️
ArkyEdu ALGO & CPU LAB
RO Launch Algo & CPU Lab
4 Interactive CS Modules · Deterministic Browser Lab · Ages 10–15 · Free Forever

Visual Algorithms, 8-Bit Binary & Von Neumann CPU Lab

Interactive browser Computer Science workbench (ages 10-15): step-by-step Bubble/Selection/Insertion Sort & Binary Search animator synced with C++, 8-bit LED Binary/Hex/RGB/Bitwise studio, Von Neumann Fetch-Decode-Execute CPU simulator, and Half-Adder Logic Gates.

ArkyEdu Visual Algorithms, Binary Switchboard, Von Neumann CPU and Digital Logic Workbench

1. Sorting & Searching Visual Arena (Synced Line-by-Line with C++)

Grades 7–8 · Array Sorting · O(n²)

Bubble Sort (Swapping Adjacent Pairs)

Repeatedly compares adjacent elements and swaps them if out of order. Larger values bubble up to the end of the array each pass.

Grade 8 · Minimum Selection · O(n²)

Selection Sort (Minimum Pick)

Finds the smallest remaining element in the unsorted tail and swaps it once into position i.

Grade 8 · Incremental Sort · O(n²)

Insertion Sort (Playing Card Method)

Works like sorting playing cards in your hand: picks each key and shifts larger sorted items rightward to insert it.

Grade 8 · Logarithmic Lookup · O(log₂ n)

Binary Search (Divide & Conquer)

On a SORTED array, checks the middle index and halves the remaining search space every step—1,000 items take at most 10 checks!

Grade 7 · Sequential Loop · O(n)

Linear Search (Sequential Scan)

Inspects items one by one from left to right. Works on unsorted arrays, but worst-case checks all n items.

2. Von Neumann CPU Simulator & 8-Bit Digital Logic Workbench

Von Neumann CPU Fetch-Decode-Execute Registers and 16-Cell RAM Architecture Diagram

Von Neumann Fetch–Decode–Execute CPU Cycle

Step through live PC, IR, MAR, ACC, and ZERO_FLAG registers against editable 16-cell unified RAM using LOAD, ADD, SUB, STORE, JMP, JZ, OUT, and HALT.

8-Bit Binary LED Switchboard, RGB Pixel Studio, and Half-Adder Logic Gate Circuit

8-Bit Binary LED, Bitwise, RGB & Logic Gates Studio

Toggle 8-bit powers of 2 (128..1) for live Base10/Hex/ASCII conversion, explore A & B / A | B / A ^ B / shifts, and test AND, OR, XOR, NAND and the Binary Half-Adder.

CPU ASSEMBLY PRESET · +35 ByteCoins

Program 01 · Add Two RAM Numbers (A + B)

Fetches operand RAM[14] (15), adds RAM[15] (27), stores total in RAM[13], and prints via OUT.

CPU ASSEMBLY PRESET · +35 ByteCoins

Program 02 · Countdown Loop (JZ & JMP)

Starts from 3 in RAM[14], outputs and decrements by 1 each iteration until Zero Flag triggers JZ to HALT.

CPU ASSEMBLY PRESET · +35 ByteCoins

Program 03 · Multiply x3 via Repeated Addition

Computes 12 × 3 using pure ALU additions: loads 12, adds 12 twice, and outputs 36.

3. Logic Gate Topologies & National Curriculum Bridges (Grades 5–8)

OUT = A · B

AND Gate

Outputs 1 (HIGH) ONLY when both A and B are 1 simultaneously (same as `&&` in C++).

OUT = A + B

OR Gate

Outputs 1 whenever AT LEAST one input is 1 (same as `||` in C++).

OUT = A ⊕ B

XOR Gate (Exclusive OR)

Outputs 1 ONLY when A and B differ (one 0, one 1). Core building block of binary addition & encryption!

OUT = ¬(A · B)

NAND Gate (Universal Gate)

Inverted AND: outputs 0 only when both inputs are 1. Any CPU circuit can be built purely from NAND gates!

SUM = A ⊕ B · CARRY = A · B

Binary Half-Adder (ALU Core)

Adds two binary bits inside the CPU! When A=1 & B=1, SUM=0 and CARRY=1 (1 + 1 = 10 binary = 2!).

SIREN = (A · B) + C

Smart Lab Security Circuit

Alarm rings if (Motion A AND Armed B) OR Emergency Panic C is pressed.

Grade 5 · Von Neumann Hardware

From CPU & RAM to the Fetch–Decode–Execute Cycle

See firsthand how the CPU fetches instructions from RAM using PC, IR, and ALU registers.

Open Curriculum Lesson →
Grades 5–6 · Bit, Byte & RGB

Why 8 Bits Equal 1 Byte (0–255) & Encode RGB Colors

Every screen pixel stores three 8-bit color channels (Red, Green, Blue) ranging from 0 to 255.

Open Curriculum Lesson →
Grades 6–7 · Boolean Logic & Branches

AND, OR & XOR Hardware Gates Behind `if (A && B)`

Conditional statements in Scratch & C++ compile straight into silicon AND/OR/NOT logic gates.

Open Curriculum Lesson →
Grade 8 · Arrays, Sorting & Binary Search

Olympiad & Exam Prep: Sorting vs. Binary Search

Visually compare O(n²) sorting vs O(log n) Binary Search and step through C++ code in Visual Trace.

Open Curriculum Lesson →

Frequently Asked Questions — Algorithms & CPU Lab

How does the Visual Algorithm Arena work for Bubble Sort, Selection, Insertion & Binary Search?
Every step animates on dual-coded bars (amber = comparing, coral = swapping, green = sorted, cyan = Binary Search mid) synced line-by-line with C++ pseudocode and live operation counters.
Why is Binary Search O(log n) dramatically faster than Linear Search?
On a sorted array it checks the midpoint and discards half of remaining items every step—1,024 elements take at most 10 checks instead of 1,024.
What do students learn inside the Von Neumann CPU Simulator?
Students watch instructions and data share unified RAM while the Control Unit runs Fetch (PC → IR), Decode, and Execute (ALU + Accumulator + Zero Flag) on live assembly programs.
What can you build in the 8-Bit Binary, RGB & Digital Logic Gate Workbench?
Toggle individual 128..1 bits to inspect Decimal, Hex, ASCII, and bitwise operators (&, |, ^, <<, >>), mix 24-bit RGB colors, and test AND, OR, XOR, NAND & Binary Half-Adder truth tables live.
Does the Algorithm & CPU Lab award real ArkyEdu rewards?
Yes! Completing algorithm quizzes (+30 ByteCoins), binary LED puzzles (+25 ByteCoins), CPU checks (+35 ByteCoins), and logic circuit missions (+35 ByteCoins) awards real ByteCoins.