@InProceedings{PebblesRedBlue_SPAA2018,
AUTHOR = {Erik D. Demaine and Quanquan C. Liu},
TITLE = {Red-Blue Pebble Game: Complexity of Computing the Trade-Off between Cache Size and Memory Transfers},
BOOKTITLE = {Proceedings of the 30th on Symposium on Parallelism in Algorithms and Architectures (SPAA 2018)},
ADDRESS = {Vienna, Austria},
MONTH = {July 16--18},
YEAR = 2018,
PAGES = {195--204},
withstudent = 1,
papers = {PebblesInapprox_WADS2017},
doi = {https://dx.doi.org/10.1145/3210377.3210387},
dblp = {https://dblp.org/rec/conf/spaa/DemaineL18},
comments = {This paper is also available from the <A HREF="http://dx.doi.org/10.1145/3210377.3210387">ACM Digital Library</A>.},
}
In this paper, we investigate the complexity of computing this trade-off between red-pebble limit (cache size) and number of recolorings (memory transfers) in general DAGs. First we prove this problem PSPACE-complete through an extension of the proof PSPACE-hardness of black pebbling complexity [13]. Second, we consider a natural restriction on the red-blue pebble game to forbid pebble deletions, or equivalently, forbid discarding data from cache without first writing it to disk. This assumption both simplifies the model and immediately places the trade-off computation problem within NP. Unfortunately, we show that even this restricted version is NP-complete. Finally, we show that the trade-off problem parameterized by the number of transitions is W[1]-hard, meaning that there is likely no algorithm running in a fixed polynomial for constant number of transitions.