Development Cycles
  Home arrow Development Cycles arrow The Backtracking 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 
Sun Developer Network 
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

The Backtracking Algorithm Technique
By: Barzan "Tony" Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2008-09-16

    Table of Contents:
  • The Backtracking Algorithm Technique
  • The Theory
  • Problem and Solution
  • 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


    The Backtracking Algorithm Technique


    (Page 1 of 4 )

    Every so often during our software development endeavors we might face situations where the solution(s) can be found easily or the job can be done quickly using typical well-known algorithms that can be implemented routinely. This is the first part of a multi-segment series on programming techniques where we briefly present algorithm methods one by one. This time we are going to cover backtracking.

    Before we begin, let me present the structure of this series and how each article will be constructed. To preserve clarity and straightforwardness each article will be limited to the presentation of only one algorithm technique. Gradually, we are going to learn each of the fab fives: backtracking, divide and conquer (divide et impera), greedy method, dynamic programming, and branch and bound.

    Each article will start by explaining concisely what the algorithm is all about, which are the situations where their application is recommended, and typical places where their usage is efficient and, thus, worthwhile. Then we will present real world applicable examples, first in pseudo-code and then in ANSI C. The problems will be famous for those algorithms under which we'll solve them.

    Ultimately, we may some time in the future refer back to the algorithm methods we learned during the earlier parts of the series (no worries, it won't happen with this first part) explaining why this or that may not be considered as a possible solution.

    Keep in mind that these articles will give a brief overview of the techniques and their usage, as well as their implementation, but they cannot replace a complete and comprehensive few-days-long course or a text book specializing just on one of the algorithms. Clear presentations with applicable implementations along with succinct resumes are the most we can do. But this series can surely get you started.

    All of this being said, I bet you are anxious to begin. Let's backtrack!

    More Development Cycles Articles
    More By Barzan "Tony" Antal


       · I sort of thought this would be interesting to read as a fledglingprogrammer with...
     

    DEVELOPMENT CYCLES ARTICLES

    - 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
    - Entity Relationship Modeling






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT