- 注册时间
- 2017-12-7
- 最后登录
- 1970-1-1
- 威望
- 星
- 金币
- 枚
- 贡献
- 分
- 经验
- 点
- 鲜花
- 朵
- 魅力
- 点
- 上传
- 次
- 下载
- 次
- 积分
- 3243
- 在线时间
- 小时
|
发表于 2018-11-23 19:07:08
|
显示全部楼层
本帖最后由 .·.·. 于 2018-11-23 19:35 编辑
学会了
感谢你提供了这样许许多多的关于群论的函数
其实你只离目的地差一个GroupElementToWord- In[1]:=
- rot1 = Cycles[{{1, 3, 8, 6}, {2, 5, 7, 4}, {9, 48, 15, 12}, {10, 47, 16, 13}, {11, 46, 17, 14}}];
- rot2 = Cycles[{{6, 15, 35, 26}, {7, 22, 34, 19}, {8, 30, 33, 11}, {12, 14, 29, 27}, {13, 21, 28, 20}}];
- rot3 = Cycles[{{1, 12, 33, 41}, {4, 20, 36, 44}, {6, 27, 38, 46}, {9, 11, 26, 24}, {10, 19, 25, 18}}];
- rot4 = Cycles[{{1, 24, 40, 17}, {2, 18, 39, 23}, {3, 9, 38, 32}, {41, 43, 48, 46}, {42, 45, 47, 44}}];
- rot5 = Cycles[{{3, 43, 35, 14}, {5, 45, 37, 21}, {8, 48, 40, 29}, {15, 17, 32, 30}, {16, 23, 31, 22}}];
- rot6 = Cycles[{{24, 27, 30, 43}, {25, 28, 31, 42}, {26, 29, 32, 41}, {33, 35, 40, 38}, {34, 37, 39, 36}}];
- RubikGroup = PermutationGroup[{rot1, rot2, rot3, rot4, rot5, rot6}];
- rtm1 = PermutationProduct[rot1, rot1, rot1];
- rtm5 = PermutationProduct[rot5, rot5, rot5];(*不会求逆只好这样将就了*)
- GroupElementToWord[PermutationGroup[{rot1, rot5}], Cycles[{{2, 5, 7}, {47, 16, 13}}]] /. {1 -> "rot1", 2 -> "rot5", -1 -> "rtm1", -2 -> "rtm5"}
- PermutationProduct @@ (GroupElementToWord[PermutationGroup[{rot1, rot5}], Cycles[{{2, 5, 7}, {47, 16, 13}}]] /. {1 -> rot1, 2 -> rot5, -1 -> rtm1, -2 -> rtm5})
- Out[8]= {"rot5", "rtm1", "rtm5", "rtm1", "rtm5", "rot1", "rot5", \
- "rot1", "rot5", "rot1", "rtm5", "rtm5", "rtm1", "rtm5", "rtm1", \
- "rtm5", "rot1", "rot5", "rot1", "rot5", "rot5", "rot1", "rtm5", \
- "rtm5", "rtm1", "rtm5", "rot1", "rot5", "rot5", "rtm1", "rtm5", \
- "rot1", "rtm5", "rtm1", "rtm5", "rot1", "rot5", "rtm1", "rot5", \
- "rot1", "rot5", "rot5", "rtm1", "rtm1", "rtm5", "rtm1", "rtm5", \
- "rtm1", "rot5", "rot5", "rot1", "rot5", "rot1", "rot5", "rtm1", \
- "rtm5", "rot1", "rtm5", "rtm5", "rtm1", "rtm5", "rot1", "rtm5", \
- "rtm5", "rtm1", "rtm5", "rot1", "rot5", "rtm1", "rot5", "rot1", "rot5"}
- Out[9]= Cycles[{{2, 5, 7}, {13, 47, 16}}]
复制代码 应当注意到,Mathematica只给出了一种“解法”(GroupElementToWord 使用 Minkwitz 算法)
并不能保证算出来的结果是最优的 |
|