实际使用的N-维阵列,其中的(N→3) [英] Practical use of N-Dimensional Arrays,where (N>3)
问题描述
我一直在编程在过去的8年,现在我只是想知道,如果有任何实际用途n维数组,这里N> 3.我只能可视化的数据结构小于或等于3 dimensions.Has任何一个在任何程序中使用超过3个维度?是否有一个ND数组这超出了3d的任何实际用途吗?如果有,请张贴一些样品。
I have been programming for the last 8 years and now I was just wondering that if there is any practical use of N-Dimensional array,where N>3.I can only visualize of a data structure that is less than or equal to 3 dimensions.Has any one used more than 3 dimensions in any program?Are there any practical uses of a N-D array which is beyond 3d?If so please post some samples.
推荐答案
唯一像样的例子,我记得是在1982年文本的唉!帕斯卡尔!,让你对它如何罕见一直在我的经验有所了解。
The only decent example I recall was in the 1982 text Oh! Pascal! which gives you some idea of how rare it has been in my experience.
这个例子是股票保存系统,其中牛仔裤可以通过
The example was a stock-keeping system where jeans could be indexed by
inventory[sex][size][length][color][fit] = number_received
这是只有略微做作。你必须用这样的方式构建的数据库没有问题,但它看起来有趣,因为code。
which is only slightly contrived. You'd have no problem with a database structured in such a way but it does look funny as code.
这篇关于实际使用的N-维阵列,其中的(N→3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!