SlideShare a Scribd company logo
3
Most read
5
Most read
6
Most read
Search Methods
Hup university
27-02-2018
1
Search Algorithm
• A search algorithm is any algorithm which
solves the search problem, namely, to retrieve
information stored within some data
structure(linked list, array data structure, or
a search tree), or calculated in the search
space of a problem domain.
2
Search Algorithms Classified
• Search algorithms can be classified based on their
mechanism of searching.
• Linear search algorithms check every record for the one
associated with a target key in a linear fashion.
• Binary, or half interval searches, repeatedly target the
center of the search structure and divide the search space
in half.
• Comparison search algorithms improve on linear searching
by successively eliminating records based on comparisons
of the keys until the target record is found, and can be
applied on data structures with a defined order.
• Digital search algorithms work based on the properties of
digits in data structures that use numerical keys.
3
Logarithmic Function
• Search functions are evaluated on the basis of
their complexity, or maximum theoretical run
time.
• Binary search functions, have a maximum
complexity of O(log n), or logarithmic time.
• the maximum number of operations needed
to find the search target is a logarithmic
function of the size of the search space.
4
Heuristics Function
• Algorithms for searching spaces are used in the constraint
satisfaction problem, where the goal is to find a set of value
assignments to certain variables that will satisfy specific
mathematical equations.
• They are also used when the goal is to find a variable
assignment that will maximize or minimize a certain function
of those variables.
• Algorithms for these problems include the basic brute-force
search (uninformed search), and a variety of heuristics that
try to exploit partial knowledge about the structure of this
space, such as linear relaxation, constraint generation,
and constraint propagation.
5
Local Search Methods
• An important subclass are the local search methods,
that view the elements of the search space as
the vertices of a graph, with edges defined by a set of
heuristics applicable to the case;
• and scan the space by moving from item to item along
the edges,
• for example according to the steepest descent or best-
first criterion, or in a stochastic search. This category
includes a great variety of general meta
heuristic methods(simulated annealing, tabu search, A-
teams, & genetic programming-combine arbitrary
heuristics in specific ways).
6
Completeness
• This class also includes various tree search algorithms,
that view the elements as vertices of a tree, and
traverse that tree in some special order.
• Examples of the exhaustive methods such as depth-
first search and breadth-first search, as well as various
heuristic-based search tree pruning methods such
as backtracking and branch and bound.
• Unlike general meta heuristics, which at best work only
in a probabilistic sense, many of these tree-search
methods are guaranteed to find the exact or optimal
solution, if given enough time. This is called
completeness.
7
Game Tree
• Another important sub-class consists of algorithms for exploring
the game tree of multiple-player games, such
as chess or backgammon, whose nodes consist of all possible game
situations that could result from the current situation.
• The goal in these problems is to find the move that provides the
best chance of a win, taking into account all possible moves of the
opponent(s).
• Similar problems occur when humans or machines have to make
successive decisions whose outcomes are not entirely under one's
control, such as in robot guidance or in marketing, financial,
or military strategy planning.
• This kind of problem — combinatorial search — has been
extensively studied in the context of artificial intelligence. Examples
of algorithms for this class are the minimax algorithm, alpha–beta
pruning, Informational search and the A* algorithm.
8
Combinatorial Search
• is generally used for algorithms that look for a specific
sub-structure of a given discrete structure (graph,
string, or finite group).
• The term combinatorial optimization is typically used
when the goal is to find a sub-structure with a
maximum/ minimum value of some parameter.
• (Since the sub-structure is usually represented in the
computer by a set of integer variables with constraints,
these problems can be viewed as special cases of
constraint satisfaction or discrete optimization; but
they are usually formulated and solved in a more
abstract setting where the internal representation is
not explicitly mentioned.) 9
Graph Algorithms
• An important and extensively studied subclass are
the graph algorithms, in particular graph
traversal algorithms, for finding specific sub-structures
in a given graph — subgraphs, paths, circuits.
• Examples include Dijkstra's algorithm, Kruskal's
algorithm, the nearest neighbour algorithm, and Prim's
algorithm.
• Another important subclass of this category are
the string searching algorithms, that search for
patterns within strings. Two famous examples are
the Boyer–Moore and Knuth–Morris–Pratt algorithms,
and several algorithms based on the suffix tree data
structure. 10

More Related Content

PPT
Heuristic Search Techniques Unit -II.ppt
PPTX
Production systems
PPTX
Algorithm Complexity and Main Concepts
PPTX
Major issues in data mining
PPTX
weak slot and filler structure
PPTX
prim's and kruskal's algorithm
PPT
Query processing-and-optimization
PDF
I. Hill climbing algorithm II. Steepest hill climbing algorithm
Heuristic Search Techniques Unit -II.ppt
Production systems
Algorithm Complexity and Main Concepts
Major issues in data mining
weak slot and filler structure
prim's and kruskal's algorithm
Query processing-and-optimization
I. Hill climbing algorithm II. Steepest hill climbing algorithm

What's hot (20)

PPT
AI Lecture 3 (solving problems by searching)
DOC
Data structure-questions
PPTX
Learning Method In Data Mining
PPTX
Unit4 Software Engineering Institute (SEI)’s Capability Maturity Model (CMM) ...
PPTX
04 Classification in Data Mining
PPT
KNOWLEDGE REPRESENTATION ISSUES.ppt
PPTX
Queue in Data Structure
PPT
Hill climbing
PPTX
Algorithm analysis (All in one)
PPT
Heuristc Search Techniques
PPT
Uniformed tree searching
PPT
Free space managment46
PPTX
Approaches of AI.pptx
PDF
Ddb 1.6-design issues
PPTX
Min-Max algorithm
PPT
Classification using back propagation algorithm
PPTX
Database_Keys types of keys in DBMS.pptx
PDF
Informed search
PPT
3.3 hierarchical methods
PPTX
Requirements engineering for agile methods
AI Lecture 3 (solving problems by searching)
Data structure-questions
Learning Method In Data Mining
Unit4 Software Engineering Institute (SEI)’s Capability Maturity Model (CMM) ...
04 Classification in Data Mining
KNOWLEDGE REPRESENTATION ISSUES.ppt
Queue in Data Structure
Hill climbing
Algorithm analysis (All in one)
Heuristc Search Techniques
Uniformed tree searching
Free space managment46
Approaches of AI.pptx
Ddb 1.6-design issues
Min-Max algorithm
Classification using back propagation algorithm
Database_Keys types of keys in DBMS.pptx
Informed search
3.3 hierarchical methods
Requirements engineering for agile methods
Ad

Similar to Search methods (20)

PPT
Ch4: Searching Techniques 6_2018_12_25!05_35_25_PM.ppt
PPTX
CHAPTER 5.pptx of the following of our discussion
PPTX
Search algorithms master
PPT
unit-1-l3AI..........................ppt
DOCX
Searching techniques
PPT
INTRODUCTION TO ARTIFICIAL INTELLIGENCE BASIC
PPTX
AI_Lecture2.pptx
PPTX
Lecture # 02-Search Algorithms11111.pptx
PPT
Heuristic Search Techniques Unit -II.ppt
PPTX
AI PPT Unit 2 Artificial Intelligence 24sd45
PPTX
CSA 2001 (Module-2).pptx
PPTX
Adhit_presentation_Searching_Algorithm(BFS,DFS).pptx
PDF
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
PPTX
AI UNIT-1-BREADTH and BEST FIRST SEARCH.pptx
PPT
cs702 ppt.ppt
PPTX
Search in Algorithm in artificial intelligence
PDF
Lecture 3-Problem Solving by Searching Techniques.pdf
PDF
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
PPTX
Unit-III-AI Search Techniques and solution's
Ch4: Searching Techniques 6_2018_12_25!05_35_25_PM.ppt
CHAPTER 5.pptx of the following of our discussion
Search algorithms master
unit-1-l3AI..........................ppt
Searching techniques
INTRODUCTION TO ARTIFICIAL INTELLIGENCE BASIC
AI_Lecture2.pptx
Lecture # 02-Search Algorithms11111.pptx
Heuristic Search Techniques Unit -II.ppt
AI PPT Unit 2 Artificial Intelligence 24sd45
CSA 2001 (Module-2).pptx
Adhit_presentation_Searching_Algorithm(BFS,DFS).pptx
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
AI UNIT-1-BREADTH and BEST FIRST SEARCH.pptx
cs702 ppt.ppt
Search in Algorithm in artificial intelligence
Lecture 3-Problem Solving by Searching Techniques.pdf
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
Unit-III-AI Search Techniques and solution's
Ad

More from zahraa F.Muhsen (20)

PPTX
Compute skillspowerpoint lect2
PPTX
Computer skills powerpoint intro
PPTX
PDF
PPTX
PPTX
Computer skills excel2010 5
PPTX
Computer skills excel2010 data
PPTX
Computer skills excel2010 2
PPTX
Computer skills excel2010
PPTX
Computer skills excel2010 3
PPTX
Computer skills excel2010-4
PDF
Computer skills excel2010
PPTX
Genetic algorithms
PPTX
Internet search techniques
PPTX
Nearest neighbor search
PPTX
Hash function
PPTX
Pigeonhole sort
PPTX
Gnome sort
PPTX
Puzzle (1000 coins and 10 bags)
PPTX
Compute skillspowerpoint lect2
Computer skills powerpoint intro
Computer skills excel2010 5
Computer skills excel2010 data
Computer skills excel2010 2
Computer skills excel2010
Computer skills excel2010 3
Computer skills excel2010-4
Computer skills excel2010
Genetic algorithms
Internet search techniques
Nearest neighbor search
Hash function
Pigeonhole sort
Gnome sort
Puzzle (1000 coins and 10 bags)

Recently uploaded (20)

PDF
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
PPT
Predictive modeling basics in data cleaning process
PPTX
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
PPT
lectureusjsjdhdsjjshdshshddhdhddhhd1.ppt
PPTX
Introduction to Inferential Statistics.pptx
PDF
Business Analytics and business intelligence.pdf
PPTX
retention in jsjsksksksnbsndjddjdnFPD.pptx
PDF
Microsoft Core Cloud Services powerpoint
PDF
[EN] Industrial Machine Downtime Prediction
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
PPTX
New ISO 27001_2022 standard and the changes
PDF
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
PDF
Votre score augmente si vous choisissez une catégorie et que vous rédigez une...
PPTX
Copy of 16 Timeline & Flowchart Templates – HubSpot.pptx
PPT
DU, AIS, Big Data and Data Analytics.ppt
PPTX
Leprosy and NLEP programme community medicine
PPTX
Topic 5 Presentation 5 Lesson 5 Corporate Fin
PPTX
IMPACT OF LANDSLIDE.....................
PDF
REAL ILLUMINATI AGENT IN KAMPALA UGANDA CALL ON+256765750853/0705037305
PPTX
FMIS 108 and AISlaudon_mis17_ppt_ch11.pptx
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
Predictive modeling basics in data cleaning process
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
lectureusjsjdhdsjjshdshshddhdhddhhd1.ppt
Introduction to Inferential Statistics.pptx
Business Analytics and business intelligence.pdf
retention in jsjsksksksnbsndjddjdnFPD.pptx
Microsoft Core Cloud Services powerpoint
[EN] Industrial Machine Downtime Prediction
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
New ISO 27001_2022 standard and the changes
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
Votre score augmente si vous choisissez une catégorie et que vous rédigez une...
Copy of 16 Timeline & Flowchart Templates – HubSpot.pptx
DU, AIS, Big Data and Data Analytics.ppt
Leprosy and NLEP programme community medicine
Topic 5 Presentation 5 Lesson 5 Corporate Fin
IMPACT OF LANDSLIDE.....................
REAL ILLUMINATI AGENT IN KAMPALA UGANDA CALL ON+256765750853/0705037305
FMIS 108 and AISlaudon_mis17_ppt_ch11.pptx

Search methods

  • 2. Search Algorithm • A search algorithm is any algorithm which solves the search problem, namely, to retrieve information stored within some data structure(linked list, array data structure, or a search tree), or calculated in the search space of a problem domain. 2
  • 3. Search Algorithms Classified • Search algorithms can be classified based on their mechanism of searching. • Linear search algorithms check every record for the one associated with a target key in a linear fashion. • Binary, or half interval searches, repeatedly target the center of the search structure and divide the search space in half. • Comparison search algorithms improve on linear searching by successively eliminating records based on comparisons of the keys until the target record is found, and can be applied on data structures with a defined order. • Digital search algorithms work based on the properties of digits in data structures that use numerical keys. 3
  • 4. Logarithmic Function • Search functions are evaluated on the basis of their complexity, or maximum theoretical run time. • Binary search functions, have a maximum complexity of O(log n), or logarithmic time. • the maximum number of operations needed to find the search target is a logarithmic function of the size of the search space. 4
  • 5. Heuristics Function • Algorithms for searching spaces are used in the constraint satisfaction problem, where the goal is to find a set of value assignments to certain variables that will satisfy specific mathematical equations. • They are also used when the goal is to find a variable assignment that will maximize or minimize a certain function of those variables. • Algorithms for these problems include the basic brute-force search (uninformed search), and a variety of heuristics that try to exploit partial knowledge about the structure of this space, such as linear relaxation, constraint generation, and constraint propagation. 5
  • 6. Local Search Methods • An important subclass are the local search methods, that view the elements of the search space as the vertices of a graph, with edges defined by a set of heuristics applicable to the case; • and scan the space by moving from item to item along the edges, • for example according to the steepest descent or best- first criterion, or in a stochastic search. This category includes a great variety of general meta heuristic methods(simulated annealing, tabu search, A- teams, & genetic programming-combine arbitrary heuristics in specific ways). 6
  • 7. Completeness • This class also includes various tree search algorithms, that view the elements as vertices of a tree, and traverse that tree in some special order. • Examples of the exhaustive methods such as depth- first search and breadth-first search, as well as various heuristic-based search tree pruning methods such as backtracking and branch and bound. • Unlike general meta heuristics, which at best work only in a probabilistic sense, many of these tree-search methods are guaranteed to find the exact or optimal solution, if given enough time. This is called completeness. 7
  • 8. Game Tree • Another important sub-class consists of algorithms for exploring the game tree of multiple-player games, such as chess or backgammon, whose nodes consist of all possible game situations that could result from the current situation. • The goal in these problems is to find the move that provides the best chance of a win, taking into account all possible moves of the opponent(s). • Similar problems occur when humans or machines have to make successive decisions whose outcomes are not entirely under one's control, such as in robot guidance or in marketing, financial, or military strategy planning. • This kind of problem — combinatorial search — has been extensively studied in the context of artificial intelligence. Examples of algorithms for this class are the minimax algorithm, alpha–beta pruning, Informational search and the A* algorithm. 8
  • 9. Combinatorial Search • is generally used for algorithms that look for a specific sub-structure of a given discrete structure (graph, string, or finite group). • The term combinatorial optimization is typically used when the goal is to find a sub-structure with a maximum/ minimum value of some parameter. • (Since the sub-structure is usually represented in the computer by a set of integer variables with constraints, these problems can be viewed as special cases of constraint satisfaction or discrete optimization; but they are usually formulated and solved in a more abstract setting where the internal representation is not explicitly mentioned.) 9
  • 10. Graph Algorithms • An important and extensively studied subclass are the graph algorithms, in particular graph traversal algorithms, for finding specific sub-structures in a given graph — subgraphs, paths, circuits. • Examples include Dijkstra's algorithm, Kruskal's algorithm, the nearest neighbour algorithm, and Prim's algorithm. • Another important subclass of this category are the string searching algorithms, that search for patterns within strings. Two famous examples are the Boyer–Moore and Knuth–Morris–Pratt algorithms, and several algorithms based on the suffix tree data structure. 10