Java程序使用四维阵列 [英] Java Program using 4D array

查看:443
本文介绍了Java程序使用四维阵列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一年级的计算机工程的学生,我很新来的。我一直在学习Java在过去的三个半月,和C ++为之前六个月。我的Java知识是有限的定义与使用自己的方法,如使用静态数据成员和成员的知名度面向对象编程的基础知识绝对

I'm a first year computer engineering student and I'm quite new here. I have been learning Java for the past three and a half months, and C++ for six months before that. My knowledge of Java is limited to defining and using own methods, absolute basics of object-oriented programming like use of static data members and member visibility.

今天下午,我的计算机编程教授教我们如何用Java多维数组。关于多维数组是简单数组的数组等。他提到,在名义上,教育节目,几乎从来没有使用超过2维数组。即使是3D阵列只用在绝对必要的,如进行科学的功能。这使得接零使用了四维数组使用它们显示,您使用了错误的数据类型在我教授的话。

This afternoon, my computer programming prof taught us about multi-dimensional arrays in Java. About multi-dimensional arrays being simply arrays of arrays and so on. He mentioned that in nominal, educational programming, arrays beyond 2 dimensions are almost never used. Even 3D arrays are used only where absolutely essential, like carrying out scientific functions. This leaves next to zero use for 4D arrays as using them shows that "you're using the wrong datatype" in my prof's words.

不过,我想编写一个程序,其中使用了四维阵列中,任何数据类型,原始或以其他方式,是有道理的。程序必须不能作为印刷数组元素作为琐碎

However, I'd like to write a program in which the use of a 4D array, of any data type, primitive or otherwise, is justified. The program must not be as trivial as printing the elements of the array.

我不知道从哪里开始,这就是为什么我张贴这在这里。我想你的建议。有关问题陈述,算法和位和code片也欢迎。

I have no idea where to begin, this is why I am posting this here. I'd like your suggestions. Relevant problem statements, algorithms, and bits and pieces of code are also welcome.

感谢您。

编辑:忘了提,我绝对没有关于使用图形用户界面的工作在Java中,所以请不要发布任何实现的GUI想法主意

Forgot to mention, I have absolutely no idea about working with GUIs in Java, so please do not post ideas that implement GUIs.

推荐答案

思路:

<击>
  - 矩阵乘法,它就像找出图中的最短路径的应用
  - 方程的求解系统
  - 密码学 - 许多cryptoprotocols重新在矩阵的形式present数据或密钥或他们的内部结构。
  - 在图形上的任何算法中重新psented作为基质$ P $

我必须一直有关于矩阵某种固定的,抱歉:)

I must have been having some kind of fixation on matrices, sorry :)

有关4D数组我能想到的一个明显的一点是3D环境的重新presentation随时间变化的,所以第四维度重新presents时间尺度。或三维的任何重新presentation已附加关联的属性放置在数组的第四维。

For 4D arrays one obvious thing I can think of is the representation of 3D environment changing in time, so 4th dimension represents time scale. Or any representation of 3D which have additional associated property placed in 4th dimension of array.

这篇关于Java程序使用四维阵列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆