Implementation of Prefix Sum and Tree-based Reduce using mpi4py.
This repository contains solutions for the Distributed Programming assignment using `mpi4py`. It implements a parallel prefix sum algorithm and a custom tree-based reduction, along with performance benchmarking.
## Requirements
- Python 3
- mpi4py
- OpenMPI (System installed)
## 📂 Project Structure
## Usage
-**`src/problem1/`**: Contains `prefix_sum.py` (Parallel Prefix Sum implementation).
-**`src/problem2/`**: Contains `manual_reduce.py` (Tree-based Reduce) and `benchmark.py` (Performance comparison).
-**`src/common/`**: Shared utility functions for data generation and verification.
-**`simgrid/`**: XML configuration files for SimGrid simulations.
-**`Makefile`**: Shortcuts for running tests and benchmarks.