计算机科学 > 离散数学
[提交于 2013年12月12日]
标题:On the number of proper $k$-colorings in an $n$-gon
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We define an $n$-gon to be any convex polygon with $n$ vertices. Let $V$ represent the set of vertices of the polygon. A proper $k$-coloring refers to a function, $f$ : $V$ $\rightarrow$ $\{1, 2, 3, ... k\}$, such that for any two vertices $u$ and $v$, if $f(u) = f(v)$, $u$ is not adjacent to $v$. The purpose of this paper is to develop a recursive algorithm to compute the number of proper $k$-colorings in an $n$-gon. The proposed algorithm can easily be solved to obtain the explicit expression. This matches the explicit expression obtained from the popular conventional solutions, which confirms the correctness of the proposed algorithm. Often, for huge values of $n$ and $k$, it becomes impractical to display the output numbers, which would consist of thousands of digits. We report the answer modulo a certain number. In such situations, the proposed algorithm is observed to run slightly faster than the conventional recursive algorithm.
提交历史
来自:Shantanu Chhabra[v1] 2013年12月12日 星期四 18:08:28 UTC