Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import unittest | |
| import itertools | |
| class Expression: | |
| """Expressions in algebraic normal form consist of terms which are combined with XOR, where each term is a | |
| combination of variables which are ANDed together, see | |
| https://en.wikipedia.org/wiki/Algebraic_normal_form |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <boost/iterator/iterator_facade.hpp> | |
| #include <boost/range/iterator_range.hpp> | |
| #include <iostream> | |
| #include <vector> | |
| template <typename Iterator, typename Key> | |
| class GroupedRange | |
| { | |
| public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef OVERLAP_H | |
| #define OVERLAP_H | |
| #include <bitset> | |
| #include <unordered_set> | |
| #include <vector> | |
| using Bitset = std::bitset<64>; | |
| using Iterator = std::vector<Bitset>::iterator; |