Design a physical track where a marble rolls and executes programming instructions. The marble carries a value and performs calculations as it hits different track pieces.
Puzzle
Calculate the factorial of 4 (4! = 4 × 3 × 2 × 1) and output the result 24.
Starting Conditions:
Marble begins carrying the value: 4
Expected output: 24
Available Track Pieces (Use Each Once):
2× CURVE - Changes marble direction 90°
1× STRAIGHT - Continues marble in same direction
1× LOOP-TRACK - Connects track to form a physical loop
1× BRANCH-ZERO - Marble goes LEFT if carrying 0, RIGHT otherwise
1× SUBTRACT-1 - Subtracts 1 from marble's value
1× MULTIPLY - Multiplies marble's value by memory slot A
1× STORE-A - Saves marble's current value to memory slot A
Design a physical track where a marble rolls and executes programming instructions. The marble carries a value and performs calculations as it hits different track pieces.
Puzzle
Calculate the factorial of 4 (4! = 4 × 3 × 2 × 1) and output the result 24.
Starting Conditions:
Marble begins carrying the value: 4
Expected output: 24
Available Track Pieces (Use Each Once):
2× CURVE - Changes marble direction 90°
1× STRAIGHT - Continues marble in same direction
1× LOOP-TRACK - Connects track to form a physical loop
1× BRANCH-ZERO - Marble goes LEFT if carrying 0, RIGHT otherwise
1× SUBTRACT-1 - Subtracts 1 from marble's value
1× MULTIPLY - Multiplies marble's value by memory slot A
1× STORE-A - Saves marble's current value to memory slot A
1× LOAD-A - Loads value from memory slot A into marble
PaperBugs is a puzzle where you control bugs on a grid by writing a simple program. Each bug executes the same program step-by-step to reach their targets. The key challenge is that ALL bugs run the SAME program simultaneously!
Puzzle:
Available instructions:
MOVE - move forward one cell
LEFT / RIGHT - rotate 90 degrees
IF FLOWER - execute next line only if flower ahead
IF EMPTY - execute next line only if path clear
IF WALL - execute next line only if wall ahead
IF GEM - execute next line only if gem ahead
Board:
Legend:
Flower (blocks movement)
Gem (collectable)
Wall (blocks movement)
Goal:
Write a single program that guides both bugs to collect gems and reach their targets safely.
PaperBugs is a puzzle where you control bugs on a grid by writing a simple program. Each bug executes the same program step-by-step to reach their targets. The key challenge is that ALL bugs run the SAME program simultaneously!
Puzzle:
Available instructions:
MOVE - move forward one cell
LEFT / RIGHT - rotate 90 degrees
IF FLOWER - execute next line only if flower ahead
IF EMPTY - execute next line only if path clear
IF WALL - execute next line only if wall ahead
IF GEM - execute next line only if gem ahead
Board:
Legend:
Flower (blocks movement)
Gem (collectable)
Wall (blocks movement)
Goal:
Write a single program that guides both bugs to collect gems and reach their targets safely.
PaperBugs is a puzzle where you control bugs on a grid by writing a simple program. Each bug executes the same program step-by-step to reach their targets. The key challenge is that ALL bugs run the SAME program simultaneously!
Puzzle:
Available instructions:
MOVE - move forward one cell
LEFT / RIGHT - rotate 90 degrees
IF FLOWER - execute next line only if flower ahead
IF EMPTY - execute next line only if path clear
IF WALL - execute next line only if wall ahead
IF GEM - execute next line only if gem ahead
Board:
Legend:
Flower (blocks movement)
Gem (collectable)
Wall (blocks movement)
Goal:
Write a single program that guides both bugs to collect gems and reach their targets safely.
PaperBugs is a puzzle where you control bugs on a grid by writing a simple program. Each bug executes the same program step-by-step to reach their targets. Heavy bugs have special abilities!
Available Instructions:
MOVE - move forward one cell
LEFT / RIGHT - rotate 90 degrees
IF FLOWER - execute next line only if flower ahead
IF EMPTY - execute next line only if path clear
IF ROCK - execute next line only if rock ahead
PUSH - push a rock forward (Heavy Bug only)
Puzzle:
Special Rule: Heavy Bug can push rocks with the PUSH command, but only into empty spaces.
Goal:
Push rocks to create a safe path and reach the target.
PaperBugs is a little puzzle where you control bugs on a grid by writing a simple program. Each bug executes the same program step-by-step to reach their targets.
Instructions:
MOVE - move forward one cell
LEFT / RIGHT - rotate 90 degrees
IF FLOWER - execute next line only if flower ahead (the next cell the bug is currently facing)
Edge AI refers to the deployment of AI models directly on local edge devices to enable real-time data processing and analysis without reliance on cloud infrastructure.
Federated learning provides an effective solution to the data privacy issue in distributed machine learning. However, distributed federated learning systems are inherently susceptible to data poisoning attacks and data heterogeneity. Under conditions of high data heterogeneity, the gradient conflict problem in federated learning becomes more pronounced, making traditional defense mechanisms against poisoning attacks less adaptable between scenarios with and without attacks. To address this challenge, we design a two-stage federated learning framework for defending against poisoning attacks—FedCVG. During implementation, FedCVG first removes malicious clients using a reputation-based clustering method, and then optimizes communication overhead through a virtual aggregation mechanism. Extensive experimental results show that, compared to other baseline methods, FedCVG improves average accuracy by 4.2% and reduces communication overhead by approximately 50% while defending a
Abstract: Distributed machine learning (DML) may become an important
component of IoT device fleets and smart homes in the future. However, it currently presents challenges where reliable (or frequent) internet connectivity is necessary, or trust is not handled. Since DML is generally decentralized and often relies on peer-to-peer networks, we argue that BitTorrent as a time-proven protocol in this space could aid in building a solution. This paper explores the possibilities of employing BitTorrent mechanisms for gossip-based DML. It provides initial evidence supporting the viability of this approach by analysing the behaviour of model training in a simulator representing 30 individual peers with distinct data sets.