CayleyR: Solving the TopSpin puzzle via cycle intersection

작성자

카테고리:

← 피드로
arXiv cs.AI · Yuri Baramykov · 2026-07-16 AI

[Submitted on 14 Jul 2026]

View PDF HTML (experimental)

Abstract:We present cayleyR, an R package for solving permutation puzzles by detecting cycle intersections in Cayley graphs. The core algorithm performs an iterative bidirectional search: from both the initial and target permutation states, random operation sequences generate cycles in the Cayley graph of the symmetric group Sn; their intersection yields a connecting path. When no direct intersection is found, a distance-guided bridge selection narrows the gap, and the process repeats. The package targets the TopSpin(n,k) puzzle, whose state space is a Cayley graph of Sn generated by a cyclic shift and a prefix reversal. We describe the mathematical framework, the algorithm, and its implementation, which combines a C++ hash-indexed state store with optional Vulkan GPU acceleration. The software is publicly available on CRAN.

Submission history

From: Yuri Baramykov [view email]
[v1] Tue, 14 Jul 2026 19:28:41 UTC (312 KB)

원문에서 계속 ↗

추출 본문 · 출처: arxiv.org · https://arxiv.org/abs/2607.13219

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다