Category:Data Structures and Algorithms

From DmWiki

No matter what you are programming, if it is more than a couple of hundred lines, you will be using data structures of some type. If you use any sort of API or library, you will very likely be using prebuilt data structures.

And unless you are printing "Hello, World!" a hundred times, you will definitely be using some sort of algorithm.

But Data Structures and Algorithms are complicated mysterious beasts, aren't they? How can everyone be using them in all programs? Let me answer that with a simple example:

Task: Add all the numbers between 1 and 100 inclusive.

So you think to yourself "Easy! that's just a for loop!" Well congratulations, you just thought yourself up an example of a simple algorithm. And data structures? Well whether you use OO or not, you will most likely want to keep pieces of related information together. Then you get a data structure.

Of course, there are more complicated examples of each. Data structures become really useful when you start implementing linked lists, trees and other such things.


Articles in category "Data Structures and Algorithms"

There are 10 articles in this category.

A

H

L

Q

S

S cont.

T

V

DevMaster navigation