top of page


Chromatic Polynomials 14 – Generating Code
Just like we can translate CPs to SAT, we can also translate CPs to code. I added the ability for my CP engine to export C-like code, compatible with C, C++, and C#, only because those are the languages I was most commonly working in when I wrote it. I’ll cover the how to convert CPs to code first, then I’ll talk about why you might want to do this. How to Convert CPs to Code The addition, subtraction, and multiplication operations in CPs can be directly converted into
Sep 712 min read
bottom of page