Add spanning tree path to cosets.

This commit is contained in:
2020-01-03 22:37:11 -05:00
parent f1c57b241f
commit 3c3cd69be7
4 changed files with 35 additions and 1 deletions

View File

@@ -1,2 +1,5 @@
add_executable(bench bench.cpp)
target_link_libraries(bench PRIVATE tc)
add_executable(path path.cpp)
target_link_libraries(path PRIVATE tc)

17
example/path.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "solver.h"
#include "groups.h"
#include <ctime>
#include <iostream>
int main() {
auto cube = tc::group::B(3);
auto vars = tc::solve(cube, {});
for (int target = 1; target < vars.len; target++) {
auto &action = vars.path[target];
std::cout << action.coset << " " << action.gen << " " << target << std::endl;
}
return 0;
}