Development Cycles
  Home arrow Development Cycles arrow Greedy Strategy as an Algorithm Technique
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DEVELOPMENT CYCLES

Greedy Strategy as an Algorithm Technique
By: Barzan "Tony" Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-09-30

    Table of Contents:
  • Greedy Strategy as an Algorithm Technique
  • The Theory
  • Kruskal's Algorithm
  • Taking a Break

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Greedy Strategy as an Algorithm Technique


    (Page 1 of 4 )

    You are reading the third segment of our algorithm design patterns series. We have successfully covered the backtracking and divide-and-conquer techniques. In this article we will cover the so-called Greedy Strategy. Greedy algorithms often, but not always, yield the optimal solution in record time since they approach problem solving from a metaheuristic point of view. Thus, it is critical to master greediness.

    Before we begin, I’d like to advocate reading the previous two parts of this series if you missed either of them. While each article covers only one technique that can be read and understood independently, there is a logic behind the sequence of articles. That’s why we began with backtracking and then moved further to divide-and-conquer, and now we’re talking about the greedy technique.

    You can find both of those articles published here on Dev Articles. The upcoming segments of this series will also be located here. Don’t forget to tune in every so often so you can read them when they go live. 

    In the first article I presented the style that is going to be followed throughout this series. We start out by discussing the theory of each technique, and as soon as we understand how the algorithm design pattern in question works, we present problem(s) along with their solution(s) using the technique. We’ll present examples in pseudo-code and code samples in C/C++.

    This article will respect that pattern. At the end, I will also point out a few other  standard greedy problems and challenge you to research them to find optimal solutions (if possible), solve them as effectively and efficiently as possible, and eventually mathematically prove that your algorithm indeed finds the globally optimal solution. The same applies for other already famous algorithms… prove them!

    I think the timing couldn’t be better for us to kick-start our greediness. Let’s begin!

    More Development Cycles Articles
    More By Barzan "Tony" Antal


     

    DEVELOPMENT CYCLES ARTICLES

    - Division of Large Numbers
    - Branch and Bound Algorithm Technique
    - Dynamic Programming Algorithm Technique
    - Genetic Algorithm Techniques
    - Greedy Strategy as an Algorithm Technique
    - Divide and Conquer Algorithm Technique
    - The Backtracking Algorithm Technique
    - More Pattern Matching Algorithms: B-M
    - Pattern Matching Algorithms Demystified: KMP
    - Coding Standards
    - A Peek into the Future: Transactional Memory
    - Learning About the Graph Construct using Gam...
    - Learning About the Graph Construct using Gam...
    - Learning About the Graph Construct using Gam...
    - How to Strike a Match







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    Stay green...Green IT