1 / 24

Depth First Search

CS 146 Lecture 9. Depth First Search. Prof. S M Lee Department of Computer Science. '' Nothing in life is to be feared. It is only to be understood.'' - Marie Curie. Games. Problem: a position in a Chess/Go/ … game Solution: a strategy to guarantee winning game

hateya
Download Presentation

Depth First Search

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 146 Lecture 9 Depth First Search Prof. S M Lee Department of Computer Science

  2. ''Nothing in life is to be feared. It is only to be understood.'' - Marie Curie

  3. Games • Problem: a position in a Chess/Go/… game • Solution: a strategy to guarantee winning game • Harder than NP problems • it is not easy to check that a strategy wins

  4. Presenting Search Abstractly • Helps to understand the abstract nature of search • search states, search spaces, search trees… • know what particular search algorithms are trying to do • There are two kinds of search algorithm • Complete • guaranteed to find solution or prove there is none • Incomplete • may not find a solution even when it exists • often more efficient (or there would be no point) • e.g. Genetic Algorithms • For now concerned with complete algorithms

  5. Search States • Search states summarises the state of search • A solution tells us everything we need to know • e.g. in SAT, whether each letter is UPPER or lower case • in TSP, route taken round nodes of graph • This is a (special) example of a search state • it contains complete information • it solves the problem • In general a search state may not do either of those • it may not specify everything about a possible solution • it may not solve the problem or extend to a solution

  6. Norbert Wiener 1894-1964 Yuk Wing Lee (left) ,Amar G. Bose and Norbert Wiener N. Wiener drove 150 miles to a math conference at Yale University. When the conference was over, he forgot he came by car, so he returned home by bus. The next morning, he went out to his garage to get his car, discovered it was missing, and complained the police that while he was away, someone stole his car.

  7. "We mathematicians who operate with nothing more expensive than paper and possibly printers' ink are quite reconciled to the fact that, if we are working in an active field, our discoveries will commence to be obsolete at the moment that they are written down or even at the moment they are conceived. We know that for a long time everything we do will be nothing more than the jumping off point for those who have the advantage of already being aware of our ultimate results. This is the meaning of the famous apothegm of Newton, when he said, "If I have seen further than other men, it is because I have stood on the shoulders of giants".(Nobert Wiener, “I am a Mathematician” )

  8. Edsger W.Dijkstra (1930------6 August 2002), died in cancer Sometimes we discover unpleasant truths. Whenever we do so, we are in difficulties: suppressing them is scientifically dishonest, so we must tell them, but telling them, however, will fire back on us. If the truths are sufficiently impalatable, our audience is psychically incapable of accepting them and we will be written off as totally unrealistic, hopelessly idealistic, dangerously revolutionary, foolishly gullible or what have you. (Besides that, telling such truths is a sure way of making oneself unpopular in many circles, and, as such, it is an act that, in general, is not without personal risks. Vide Galileo Galilei.....) ---Edsger W.Dijkstra18th June 1975

More Related