SlideShare a Scribd company logo
2
Most read
4
Most read
6
Most read
Exhaustive Search
Kasun Ranga Wijeweera
(Email: krw19870829@gmail.com)
Motivation
• Some problems involve searching through a vast number of
potential solutions to find an answer
• They do not seem to be amendable to solution by efficient
algorithms
What is an Efficient Algorithm?
• We have become conditioned to thinking that an algorithm
must be linear or run in time proportional to something like N
or N log N
• We generally consider quadratic algorithms are bad and cubic
algorithms are awful
• Even N50 algorithm would be pleasing because these problems
are believed to require exponential time
Travelling Salesman Problem
• Given a set of N cities, find the shortest route connecting them
all, with no city visited twice
• It is still unthinkable to solve an arbitrary instance of the
problem for N = 1000
• There seems to be no way to avoid having to check the length
of a very large number of possible tours
• Checking each and every tour is exhaustive search
What is Exhaustive Search?
• Also known as Brute Force Search or Generate and Test
Search
• First enumerate all possible candidates for the solution
• Then check whether each candidate satisfies the problem’s
statement
Reference
Any Questions?
Thank You!

More Related Content

PPTX
ProLog (Artificial Intelligence) Introduction
PDF
P, NP, NP-Complete, and NP-Hard
PPT
Sum of subsets problem by backtracking 
PPT
POST’s CORRESPONDENCE PROBLEM
PPTX
Page replacement algorithms
PPTX
sum of subset problem using Backtracking
PPT
Hashing PPT
PPTX
Automata theory -RE to NFA-ε
ProLog (Artificial Intelligence) Introduction
P, NP, NP-Complete, and NP-Hard
Sum of subsets problem by backtracking 
POST’s CORRESPONDENCE PROBLEM
Page replacement algorithms
sum of subset problem using Backtracking
Hashing PPT
Automata theory -RE to NFA-ε

What's hot (20)

PPTX
Semantic net in AI
PPTX
Loop optimization
PPTX
Crisp set
PPT
Predicate logic_2(Artificial Intelligence)
PPTX
The n Queen Problem
PDF
Classes and Objects
PPTX
Predicate logic
PPTX
AI_Session 7 Greedy Best first search algorithm.pptx
PPTX
Bruteforce algorithm
PDF
Measures of query cost
PPTX
Sum of subset problem.pptx
PPTX
PROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptx
PPTX
State space search
PPTX
Naive Bayes
PPT
Heuristic Search Techniques Unit -II.ppt
PPT
Floyd Warshall Algorithm
PDF
TOC 1 | Introduction to Theory of Computation
PPTX
Association Rule mining
PDF
Logic programming (1)
PPTX
Uncertainty in AI
Semantic net in AI
Loop optimization
Crisp set
Predicate logic_2(Artificial Intelligence)
The n Queen Problem
Classes and Objects
Predicate logic
AI_Session 7 Greedy Best first search algorithm.pptx
Bruteforce algorithm
Measures of query cost
Sum of subset problem.pptx
PROCEDURAL AND DECLARATIVE KNOWLEDGE IN AI & ML (1).pptx
State space search
Naive Bayes
Heuristic Search Techniques Unit -II.ppt
Floyd Warshall Algorithm
TOC 1 | Introduction to Theory of Computation
Association Rule mining
Logic programming (1)
Uncertainty in AI
Ad

More from Kasun Ranga Wijeweera (20)

PDF
Decorator Design Pattern in C#
PDF
Singleton Design Pattern in C#
PDF
Introduction to Design Patterns
PPTX
Algorithms for Convex Partitioning of a Polygon
PDF
Geometric Transformations II
PDF
Geometric Transformations I
PDF
Introduction to Polygons
PDF
Bresenham Line Drawing Algorithm
PDF
Digital Differential Analyzer Line Drawing Algorithm
PDF
Loops in Visual Basic: Exercises
PDF
Conditional Logic: Exercises
PDF
Getting Started with Visual Basic Programming
PDF
CheckBoxes and RadioButtons
PDF
Variables in Visual Basic Programming
PDF
Loops in Visual Basic Programming
PDF
Conditional Logic in Visual Basic Programming
PDF
Assignment for Variables
PDF
Assignment for Factory Method Design Pattern in C# [ANSWERS]
PDF
Assignment for Events
PDF
Mastering Arrays Assignment
Decorator Design Pattern in C#
Singleton Design Pattern in C#
Introduction to Design Patterns
Algorithms for Convex Partitioning of a Polygon
Geometric Transformations II
Geometric Transformations I
Introduction to Polygons
Bresenham Line Drawing Algorithm
Digital Differential Analyzer Line Drawing Algorithm
Loops in Visual Basic: Exercises
Conditional Logic: Exercises
Getting Started with Visual Basic Programming
CheckBoxes and RadioButtons
Variables in Visual Basic Programming
Loops in Visual Basic Programming
Conditional Logic in Visual Basic Programming
Assignment for Variables
Assignment for Factory Method Design Pattern in C# [ANSWERS]
Assignment for Events
Mastering Arrays Assignment
Ad

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
August Patch Tuesday
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
A Presentation on Touch Screen Technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Tartificialntelligence_presentation.pptx
PDF
WOOl fibre morphology and structure.pdf for textiles
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
project resource management chapter-09.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Hybrid model detection and classification of lung cancer
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Encapsulation_ Review paper, used for researhc scholars
Digital-Transformation-Roadmap-for-Companies.pptx
August Patch Tuesday
Group 1 Presentation -Planning and Decision Making .pptx
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
A Presentation on Touch Screen Technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Chapter 5: Probability Theory and Statistics
Heart disease approach using modified random forest and particle swarm optimi...
Assigned Numbers - 2025 - Bluetooth® Document
Tartificialntelligence_presentation.pptx
WOOl fibre morphology and structure.pdf for textiles
Programs and apps: productivity, graphics, security and other tools
OMC Textile Division Presentation 2021.pptx
project resource management chapter-09.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Hybrid model detection and classification of lung cancer
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf

Exhaustive Search

  • 2. Motivation • Some problems involve searching through a vast number of potential solutions to find an answer • They do not seem to be amendable to solution by efficient algorithms
  • 3. What is an Efficient Algorithm? • We have become conditioned to thinking that an algorithm must be linear or run in time proportional to something like N or N log N • We generally consider quadratic algorithms are bad and cubic algorithms are awful • Even N50 algorithm would be pleasing because these problems are believed to require exponential time
  • 4. Travelling Salesman Problem • Given a set of N cities, find the shortest route connecting them all, with no city visited twice • It is still unthinkable to solve an arbitrary instance of the problem for N = 1000 • There seems to be no way to avoid having to check the length of a very large number of possible tours • Checking each and every tour is exhaustive search
  • 5. What is Exhaustive Search? • Also known as Brute Force Search or Generate and Test Search • First enumerate all possible candidates for the solution • Then check whether each candidate satisfies the problem’s statement