I need to use a compact data structure for permutations [1,2] in Java. I know several libraries for C++ that contain them, but none for Java. Does anyone know about such library?
[1] Munro, J. Ian, Rajeev Raman, Venkatesh Raman, and S. Srinivasa Rao. “Succinct Representations of Permutations and Functions.” Theor. Comput. Sci. 438 (2012): 74–88. https://doi.org/10.1016/j.tcs.2012.03.005.
[2] Barbay, Jérémy, and Gonzalo Navarro. “On Compressing Permutations and Adaptive Sorting.” Theor. Comput. Sci. 513 (2013): 109–23. https://doi.org/10.1016/j.tcs.2013.10.019.