请输入您要查询的字词:

 

单词 Array
释义

Array

An array is a ``list of lists'' with the length of each level of list the same. The size (sometimes called the ``shape'')of a -dimensional array is then indicated as . The most commontype of array encountered is the 2-D rectangular array having columns and rows. If , a square arrayresults. Sometimes, the order of the elements in an array is significant (as in a Matrix), whereas at other times,arrays which are equivalent modulo reflections (and rotations, in the case of a square array) are considered identical (asin a Magic Square or Prime Array).


In order to exhaustively list the number of distinct arrays of a given shape with each element being one of possiblechoices, the naive algorithm of running through each case and checking to see whether it's equivalent to an earlier oneis already just about as efficient as can be. The running time must be at least the number of answers, and this is soclose to that the difference isn't significant.


However, finding the number of possible arrays of a given shape is much easier, and an exact formula can be obtained usingthe Polya Enumeration Theorem. For the simple case of an array, even this proves unnecessary since thereare only a few possible symmetry types, allowing the possibilities to be counted explicitly. For example, consider the caseof and Even and distinct, so only reflections need be included. To take a specific case, let and so the array looks like


where each , , ..., can take a value from 1 to . The total number of possible arrangements is ( in general). The number of arrangements which are equivalent to their left-right mirror images is (ingeneral, ), as is the number equal to their up-down mirror images, or their rotations through 180°. There are also arrangements (in general, ) with full symmetry.


In general, it is therefore true that


so there are


arrangements with no symmetry. Now dividing by the number of images of each type, the result, for with Even, is
 
  
  

The number is therefore of order , with ``correction'' terms of much smaller order.

See also Antimagic Square, Euler Square, Kirkman's Schoolgirl Problem, Latin Rectangle, LatinSquare, Magic Square, Matrix, Mrs. Perkins' Quilt, Multiplication Table,Orthogonal Array, Perfect Square, Prime Array, Quotient-Difference Table, Room Square,Stolarsky Array, Truth Table, Wythoff Array
随便看

 

数学辞典收录了8975条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/2/22 16:36:10