lecture 12 - Amrita

lecture 12 - Amrita - BACKTRACKING & BRANCH-BOUND Back...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
BACKTRACKING & BRANCH-BOUND
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Back Tracking If a criterion gets satisfied, when a particular sequence of elements is being considered, then one could go up to the maximum depth possible. If at some point down the line, criterion is not satisfied then we backtrack to previous stage, and make a different sequence of remaining elements and try further. Let the sequence be a 1 , a 2 , a 3 , a 4 , a 5 a 1 a 2 a 3 a 4 a 3 a 5
Background image of page 2
Back Tracking If a criterion gets satisfied, when a particular sequence of elements is being considered, then one could go up to the maximum depth possible. If at some point down the line, criterion is not satisfied then we backtrack to previous stage, and make a different sequence of remaining elements and try further. Let the sequence be a 1 , a 2 , a 3 , a 4 , a 5 a 1 a 2 a 3 a 4 a 3 a 5 (Say) Not possible Solution sequence
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
All possible states are tried right from the beginning, and the sequence which does not satisfy gets bound a 1 a 2 a 3 a 4 a 5 a 2 a 3 a 4 a 5 a 3 a 4 a 5 a 3 a 5 a 5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Background image of page 4
Back Tracking – Depth First – Breadth Later Effectively reduces average search time. Prevents the search from getting into exhaustive mode, because non- satisfaction of criterion if detected at an earlier stage results in immediate backtracking or getting bound from further growth. These strategies are generally useful for solving exhaustive search problems
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Illustration: Shortest distance Find the minimum distance path from S to T S A B C D T 4 5 2.5 1 5 2 1 1.2 3 2.8 Let us consider depth first search (Back Tracking)
Background image of page 6
Illustration: Shortest distance Find the minimum distance path from S to T S A B C D T 4 5 2.5 1 5 2 1 1.2 3 2.8 Let us start from S S
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 04/22/2010.

Page1 / 27

lecture 12 - Amrita - BACKTRACKING & BRANCH-BOUND Back...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online