This project implements the Kth Shortest Path algorithm using parallel computing techniques. It includes both C and Python implementations and utilizes datasets such as email communication records and character mappings.
- Parallel computation of path lengths (
length_parallel.c
) - Parallel computation of paths (
path_parallel.c
) - Python script to generate and manipulate datasets (
create_data.py
) - Various datasets related to character mappings and email communication
- C Compiler (e.g., GCC)
- Python 3.x
- Required Python libraries (if any)
To compile the C programs:
gcc -o length_parallel length_parallel.c -fopenmp
gcc -o path_parallel path_parallel.c -fopenmp
- Compute path lengths:
./length_parallel input_file.txt
- Compute the Kth shortest path:
./path_parallel input_file.txt k
To generate data:
python3 create_data.py
-
path_parallel.c
prints the Kth shortest path while the file "length_parallel" prints the 3 shortest node traversal lengths from source to destination. -
mapped.txt
is the doctorwho dataset translated into integers using the python codecreate_data.py
.
doctorwho.csv
,doctorwho1.csv
: Character interaction datasetsEnron_Email.txt
: Email communication datasetPath.txt
: Stores computed pathsmapped.txt
: Contains mapped data from preprocessing
Feel free to submit pull requests or report issues to enhance this project.
This project is licensed under the MIT License.