Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# what direction the array is growing ?? up, down, right or left?

Posted on 2003-11-02
Medium Priority
232 Views
Just a poll: programmers can be divided by the way they visualize an array. Answer and find out where you belong to.
0
Question by:dstasyuk
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 101

Expert Comment

ID: 9665782
What do you mean growing.  In most languages the array is static and doesn't grow once declared?

If you mean when I fill the array as in
arr[1] := 1;
arr[2] := 2;
...
arr[Last] := LastValue;

Depending on  the application I may visualize it as being
Up - A stack
Right - a Queue
Down - Lists of information like in a grade book
Left - I don't think I have ever visualized it that direction.

mlmcc
0

LVL 48

Accepted Solution

AlexFM earned 880 total points
ID: 9665918
Don't forget also: forward, back.
0

Expert Comment

ID: 9675942
if i'm dealing with a multidimensional array, i usually visualize up, then to the left, and then away from me. Once i get to 4 dimensions (never used that in a practical application though), i cant visualize it. i dont think any could, or can you?
0

LVL 101

Expert Comment

ID: 9676519
Yes a 4-D array makes excellent sense in weather prediction.

Latitude, Longitude, Altitude, and Time

From my understanding weather models are really much more complex.

mlmcc
0

LVL 7

Expert Comment

ID: 9683899
from left to right if it is 1D
0

LVL 101

Expert Comment

ID: 9684118
Any particular reason you selected that as the answer?

mlmcc
0

Author Comment

ID: 9686097
sorry, just though i could mark more than one answer as accepted
2mlmcc: 4D array example is great, never came accross 4D arrays before!
0

LVL 101

Expert Comment

ID: 9692016
I just happen to know some of the weather programmers.  Actually I believ their arrays have more than 4 dimensions but I have no idea what the other dimensions are.

I taught several of them and we discussed their programs when we did the chapter on arrays.  I believe one of the other dimensions is type of observation (balloon, satellite, etc).

For future reference - To accept more than one answer first click SPLIT POINTS (it appears after all comments and before the new comment block.

mlmcc
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Introduction to Processes
###### Suggested Courses
Course of the Month8 days, 9 hours left to enroll