These were done using the MPI library. Both questions use 4 processors.
$ module load hpcx-2.7.0/hpcx-ompi
$ mpic++ Q3.cpp
$ mpirun -np 4 -mca coll ^hcoll --use-hwthread-cpus ./a.out
This is an assignment where I did recursive matrix multiplication and cycle detecting in a distributed computing environment.
C++