Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 27th, 2007, 01:33 AM
Registered User
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to raju_1230
Default DEAPTH FIRSH SEARCH help

I need program of
DEAPTH FIRSH SEARCH







                                     s ---------- level 0
                                   / \
                               a b -----------level 1
                              / \ / c d e f ------------level 2


  in the above tree s has two children 'a' and 'b' where as 'a' has again two children 'c' and 'd' . ' b' has two children 'e' and 'f', and the proceeds so on.


DEAPTH FIRSH SEARCH
       in this we take one node and teh take its left child first, and to taht node its left child and so on. and if came to bottom then again we go at top and start from the node which is untouched
  for the above tree Deapth first search is
                    sacdbef.

  so if the goal is d then dfs is sacd




rAjU
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Search button doesn't search Access DB cbones Visual Studio 2008 1 October 27th, 2008 07:36 PM
New text search doesn't preselect search string planoie Visual Studio 2005 0 July 23rd, 2007 06:47 AM
File Search / Indexing Search with .net 2.0 maulik77 ASP.NET 1.0 and 1.1 Basics 2 March 15th, 2007 12:45 AM
Search Engine for Full-text Search Kala ASP.NET 1.0 and 1.1 Professional 2 August 29th, 2004 02:16 AM
Search engine that search through local drive! wenzation Classic ASP Basics 0 August 26th, 2003 09:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.