Special

Special Print Offer

Get the RBD Archive 7 printed book for FREE when you buy an Ultimate Combo printed back issue package! This perfect-bound book is over 300 pages and contains the full year 7 of RBD. Normally this book sells for $50, but with this special offer you not only save 25% off the normal package price, you get the book included for free!

RBD Magazines

Supplies are limited, so take advantage of this offer before it goes away.

Article Preview


Buy Now

Print:
PDF:

Beginner's Corner

Basic Data Structures, Part I

Finding for the most efficient data structure

Issue: 4.4 (March/April 2006)
Author: Marc Zeedar editor-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 9,290
Starting Page Number: 34
RBD Number: 4413
Resource File(s): None
Related Link(s): None
Known Limitations: None

Excerpt of article text...

It is a rare computer program that doesn't manage data -- information -- of some kind. A word processor manages text. Games need to remember high scores, player information, game progress, and more. Basically any program that creates files has to manage that data in memory before it is written to disk. Most programs need ways to organize and display this data, to allow the user to edit the data, and to save and retrieve the data. How this data is organized in memory is known as a data structure; using the correct data structure for your project can be the difference between success and failure, a project completed on time or lengthy delays caused by frustrating difficult-to-find bugs. The right data structure can also make updating and adding features to your program easier.

When I first began programming, I knew nothing about data structures: I simply used whatever was convenient or available in the language. This usually meant that I used arrays. Years later as I moved from BASIC to Pascal, I discovered records (called structures in other languages), pointers, and linked lists. Suddenly, what used to be such a simple decision that it was no decision at all, was complicated, and I had to think about my long-term goals.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com