Skip to content

EPITECH — SYSTEMS & ALGORITHMS

Systems & Algorithmic Projects

A-maze-d

Multi-Robot Pathfinding Engine

A multi-robot pathfinding solver in C. It computes optimal distances with a reverse BFS from the exit in O(R+T), extracts non-overlapping shortest paths, distributes the robots by traversal cost, and resolves collisions turn by turn.

robots, one way in

Twelve robots wake up in ##start. They must all reach ##end, in as few turns as possible.

rooms from the exit

First, a wave leaves the exit and gives every room its distance to it, dead ends included.

separate routes

Walking down the numbers from the start, it opens three routes that never share a room.

turn

Each turn, every robot moves one room ahead, if that room is free: never two robots in the same room.

turns, all twelve out

Each robot took the route that got it out soonest: five on the shortest one, four and three on the others.

Animation: twelve robots cross a maze from one start room to one exit along three separate routes, one robot per room, in 11 turns.

BSQ (Biggest Square)

Dynamic Tabulation Solver

A C solver for the largest empty square in a grid full of obstacles. One dynamic-programming pass gives every cell the side of the biggest square ending there — min(top, left, diagonal) + 1 — and a second scan keeps the first, top-most left-most record. Checked against all 36 reference maps and a 10,000 x 10,000 grid.

No square yet

Minishell

Unix Command Interpreter

A Unix shell in C. The parser builds a binary execution tree from right-associative operator precedence, then walks it: fork/exec, pipe IPC, redirections (>, >>, <, <<), built-ins and environment variables.

~/minishell $ ./mysh
$>

Your turn: click and type.

The shell, rebuilt in your browser: ls, cat, grep, wc, head, echo, cd, env, setenv, make… chained with ; | > >> < <<. ↑ brings back a line.

1process
for this line

Type a line: its tree grows here.

Before running anything, the shell cuts the line into a tree: at ; first, then |, then >, then <. On Enter every command becomes a process (fork, then execve), and pipes carry the output from one to the next.

My Radar

Air Traffic Simulator, Fortnite Edition

An air traffic control simulator in CSFML, dressed as Fortnite: the planes are Battle Buses, the control towers are Tilted Towers' clock tower. Buses collide and explode unless one of them flies inside a tower's circle, and storms bounce around the map. An adaptive quadtree rebuilt every frame only compares buses that share a cell — the counters under the map show, live, how many checks that saves.

PLANES :0

PAIRS TESTED :0

EVERY PAIR :0

STORMS :3

X-

FEWER TESTS

TWO BUSES THAT TOUCH BOTH EXPLODE, UNLESS ONE OF THEM IS INSIDE A TOWER'S CIRCLE. EACH BUS IS ONLY TESTED AGAINST THE BUSES IN ITS OWN SQUARE, AND A SQUARE SPLITS IN FOUR PAST 8 BUSES.