@ARTICLE{bff2022,
author={García-Díaz, Jesús and Pérez-Sansalvador, Julio César and Rodríguez-Henríquez, Lil María Xibai and Cornejo-Acosta, José Alejandro},
journal={IEEE Access},
title={Burning Graphs Through Farthest-First Traversal},
year={2022},
volume={10},
number={},
pages={30395-30404},
doi={10.1109/ACCESS.2022.3159695}}
This repository contains the following approximation algorithms for the Graph Burning Problem.
Algorithm | Complexity | keyword | |
---|---|---|---|
BFF | bff | ||
BFF+ | bff+ |
sudo apt install libboost-all-dev
sudo apt install cmake
Run the following commands inside the folder of the downloaded project. The final dot is important.
cmake -DCMAKE_BUILD_TYPE=Release .
cmake --build .
The binary file will be generated onto the root folder with the name bff_alg
.
./bff_alg [file] [algorithm]
Parameter | Description |
---|---|
[file] |
(string) Instance file path with a valid format. |
[algorithm] |
(string) Algorithm to execute (bff and bff+) |
./bff_alg dataset/econ-mahindas.mtx bff
Compute all shortest paths running time: 0.125 seconds
Algorithm running time: 0 seconds
[367, 505, 555, 50, 503, 549]
6
./bff_alg dataset/econ-mahindas.mtx bff+
Compute all shortest paths running time: 0.140625 seconds
Algorithm running time: 0.046875 seconds
[989, 554, 555, 50, 51]
5