News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Data Structures for PHP Devs Trees
July 08, 2013 @ 11:20:29

PHPMaster.com has posted their second article in their "data structures" series, this time focusing on trees - a structure for effectively storing related data in an easier to access format.

In a previous article I introduced two basic data structures: stack and queue. The article was well received so I've decided to share data structures in an intermittent on-going series here at PHPMaster. In this entry I'll introduce you to trees, another data structure used in software design and architecture.

He helps you get your head around the concept of trees using the idea of searching data, nothing that a stack or queue aren't exactly the right tools for the job. He talks about the basic concepts behind trees including "leaves" and "root nodes." He includes sample code showing how to make a simple node, insert some child nodes and "walking the tree" to find the information you're looking for.

0 comments voice your opinion now!
data structure tree tutorial introduction

Link: http://phpmaster.com/data-structures-2

blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: How to Deploy Symfony Apps with Capifony

IBM developerWorks: What's new in PHP V5.2, Part 4: Using the new ZIP extension

Ibuildings Blog: symfony 1.2: It's not just about code

Systems Architect:API-based Web Application with Backbone, Require.js and Slim framework

Chris Hartjes' Blog: Smarter DB Migrations using Zend Framework and Doctrine 1.2


Community Events





Don't see your event here?
Let us know!


podcast framework voicesoftheelephpant version library interview opinion laravel security introduction composer package update symfony language release community tool series install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework