Solved

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

Posted on 2003-11-02
8
225 Views
Last Modified: 2010-04-17
Just a poll: programmers can be divided by the way they visualize an array. Answer and find out where you belong to.
0
Comment
Question by:dstasyuk
8 Comments
 
LVL 100

Expert Comment

by:mlmcc
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

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

Expert Comment

by:Spyder596
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 100

Expert Comment

by:mlmcc
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 7

Expert Comment

by:vbwizardry
ID: 9683899
from left to right if it is 1D
0
 
LVL 100

Expert Comment

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

mlmcc
0
 

Author Comment

by:dstasyuk
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 100

Expert Comment

by:mlmcc
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now