看板
[ CSSE ]
討論串permutation algorithm
共 7 篇文章
內容預覽:
我不會離散數學 T___T. 不過,在存取陣列的時候多包一層就啥事情都沒了. class foo{. private int x[] = new int[2*n];. //普通的取得 element. public int getElement(int i){. return x[i]. }. //
(還有238個字)
內容預覽:
請教大家一個問題.. 有一個陣列 x[2N] 要將其內容根據某個排列規則做 permutation.. 規則如下:. x[0] -> x[0];. x[1] -> x[N];. x[2] -> x[1];. x[3] -> x[N+1];. :. :. x[2k] -> x[k];. x[2k+1]
(還有160個字)