SlideShare a Scribd company logo
3
Most read
6
Most read
10
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
Intoduction to software engineering part 1
Rupesh Vaishnav
 
PPTX
Learning Method In Data Mining
ishaq zaman
 
PDF
Hybrid Systems using Fuzzy, NN and GA (Soft Computing)
Amit Kumar Rathi
 
PPTX
Self-organizing map
Tarat Diloksawatdikul
 
PDF
IT445_Week_3.pdf
AiondBdkpt
 
PPTX
Equivalence partinioning and boundary value analysis
niharika5412
 
Intoduction to software engineering part 1
Rupesh Vaishnav
 
Learning Method In Data Mining
ishaq zaman
 
Hybrid Systems using Fuzzy, NN and GA (Soft Computing)
Amit Kumar Rathi
 
Self-organizing map
Tarat Diloksawatdikul
 
IT445_Week_3.pdf
AiondBdkpt
 
Equivalence partinioning and boundary value analysis
niharika5412
 

What's hot (20)

PPTX
02 Fundamental Concepts of ANN
Tamer Ahmed Farrag, PhD
 
PPTX
Artificial neural network
IshaneeSharma
 
PPT
Verification and Validation in Software Engineering SE19
koolkampus
 
PDF
Lec 4 expert systems
Eyob Seyfu
 
PPTX
Uncertain Knowledge and Reasoning in Artificial Intelligence
Experfy
 
PPTX
IRS-Cataloging and Indexing-2.1.pptx
ShivaVemula2
 
PPTX
Data science.chapter-1,2,3
varshakumar21
 
PPT
Data preprocessing
ankur bhalla
 
PPTX
Machine learning and types
Padma Metta
 
PPTX
Planning in Artificial Intelligence
kitsenthilkumarcse
 
PPTX
Association rule mining and Apriori algorithm
hina firdaus
 
PPTX
Topic 1.4: Randomized Algorithms
KM Bappi
 
PPTX
Compiler Chapter 1
Huawei Technologies
 
PPT
Mycin
vini89
 
PPTX
Text Classification
RAX Automation Suite
 
PPTX
What is Software Quality and how to measure it?
Denys Zaiats
 
PDF
Machine Learning Deep Learning AI and Data Science
Venkata Reddy Konasani
 
PPTX
#1 formal methods – introduction for software engineering
Sharif Omar Salem
 
PPT
Data preparation
Tony Nguyen
 
PDF
AI_Unit I notes .pdf
Guru Nanak Technical Institutions
 
02 Fundamental Concepts of ANN
Tamer Ahmed Farrag, PhD
 
Artificial neural network
IshaneeSharma
 
Verification and Validation in Software Engineering SE19
koolkampus
 
Lec 4 expert systems
Eyob Seyfu
 
Uncertain Knowledge and Reasoning in Artificial Intelligence
Experfy
 
IRS-Cataloging and Indexing-2.1.pptx
ShivaVemula2
 
Data science.chapter-1,2,3
varshakumar21
 
Data preprocessing
ankur bhalla
 
Machine learning and types
Padma Metta
 
Planning in Artificial Intelligence
kitsenthilkumarcse
 
Association rule mining and Apriori algorithm
hina firdaus
 
Topic 1.4: Randomized Algorithms
KM Bappi
 
Compiler Chapter 1
Huawei Technologies
 
Mycin
vini89
 
Text Classification
RAX Automation Suite
 
What is Software Quality and how to measure it?
Denys Zaiats
 
Machine Learning Deep Learning AI and Data Science
Venkata Reddy Konasani
 
#1 formal methods – introduction for software engineering
Sharif Omar Salem
 
Data preparation
Tony Nguyen
 
AI_Unit I notes .pdf
Guru Nanak Technical Institutions
 
Ad

Similar to Search methods (20)

PPT
Ch4: Searching Techniques 6_2018_12_25!05_35_25_PM.ppt
Sasal6
 
PPTX
CHAPTER 5.pptx of the following of our discussion
BifaHirpo1
 
PPTX
Search algorithms master
Hossam Hassan
 
PPT
unit-1-l3AI..........................ppt
ShilpaBhatia32
 
DOCX
Searching techniques
Prof.Dharmishtha R. Chaudhari
 
PPT
INTRODUCTION TO ARTIFICIAL INTELLIGENCE BASIC
GOKULKANNANMMECLECTC
 
PPTX
AI_Lecture2.pptx
saadurrehman35
 
PPT
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath
 
PPTX
Lecture # 02-Search Algorithms11111.pptx
TheSmartSolverAcadem
 
PPT
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath
 
PPTX
AI PPT Unit 2 Artificial Intelligence 24sd45
eticket4403
 
PPTX
CSA 2001 (Module-2).pptx
PranjalKhare13
 
PPTX
Adhit_presentation_Searching_Algorithm(BFS,DFS).pptx
SuryaBasnet3
 
PDF
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
Guru Nanak Technical Institutions
 
PPTX
AI UNIT-1-BREADTH and BEST FIRST SEARCH.pptx
KALPANAC20
 
PPT
cs702 ppt.ppt
JavedIqbal398171
 
PPTX
Search in Algorithm in artificial intelligence
karimibaryal1996
 
PDF
Lecture 3-Problem Solving by Searching Techniques.pdf
Shahzad Ashraf
 
PDF
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
Santosh Pandeya
 
Ch4: Searching Techniques 6_2018_12_25!05_35_25_PM.ppt
Sasal6
 
CHAPTER 5.pptx of the following of our discussion
BifaHirpo1
 
Search algorithms master
Hossam Hassan
 
unit-1-l3AI..........................ppt
ShilpaBhatia32
 
Searching techniques
Prof.Dharmishtha R. Chaudhari
 
INTRODUCTION TO ARTIFICIAL INTELLIGENCE BASIC
GOKULKANNANMMECLECTC
 
AI_Lecture2.pptx
saadurrehman35
 
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath
 
Lecture # 02-Search Algorithms11111.pptx
TheSmartSolverAcadem
 
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath
 
AI PPT Unit 2 Artificial Intelligence 24sd45
eticket4403
 
CSA 2001 (Module-2).pptx
PranjalKhare13
 
Adhit_presentation_Searching_Algorithm(BFS,DFS).pptx
SuryaBasnet3
 
AI3391 ARTIFICIAL INTELLIGENCE UNIT II notes.pdf
Guru Nanak Technical Institutions
 
AI UNIT-1-BREADTH and BEST FIRST SEARCH.pptx
KALPANAC20
 
cs702 ppt.ppt
JavedIqbal398171
 
Search in Algorithm in artificial intelligence
karimibaryal1996
 
Lecture 3-Problem Solving by Searching Techniques.pdf
Shahzad Ashraf
 
What is A * Search? What is Heuristic Search? What is Tree search Algorithm?
Santosh Pandeya
 
Ad

More from zahraa F.Muhsen (20)

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

Recently uploaded (20)

PPTX
Presentation on animal welfare a good topic
kidscream385
 
PDF
WISE main accomplishments for ISQOLS award July 2025.pdf
StatsCommunications
 
PDF
Technical Writing Module-I Complete Notes.pdf
VedprakashArya13
 
PPTX
M1-T1.pptxM1-T1.pptxM1-T1.pptxM1-T1.pptx
teodoroferiarevanojr
 
PPTX
Fuzzy_Membership_Functions_Presentation.pptx
pythoncrazy2024
 
PPTX
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
PDF
Practical Measurement Systems Analysis (Gage R&R) for design
Rob Schubert
 
PDF
717629748-Databricks-Certified-Data-Engineer-Professional-Dumps-by-Ball-21-03...
pedelli41
 
PPTX
White Blue Simple Modern Enhancing Sales Strategy Presentation_20250724_21093...
RamNeymarjr
 
PPTX
Future_of_AI_Presentation for everyone.pptx
boranamanju07
 
PDF
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
PPTX
short term internship project on Data visualization
JMJCollegeComputerde
 
PPTX
Multiscale Segmentation of Survey Respondents: Seeing the Trees and the Fores...
Sione Palu
 
PDF
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
PPTX
Fluvial_Civilizations_Presentation (1).pptx
alisslovemendoza7
 
PDF
Blue Futuristic Cyber Security Presentation.pdf
tanvikhunt1003
 
PPTX
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
PDF
Blitz Campinas - Dia 24 de maio - Piettro.pdf
fabigreek
 
PPTX
Presentation (1) (1).pptx k8hhfftuiiigff
karthikjagath2005
 
PPTX
Data-Users-in-Database-Management-Systems (1).pptx
dharmik832021
 
Presentation on animal welfare a good topic
kidscream385
 
WISE main accomplishments for ISQOLS award July 2025.pdf
StatsCommunications
 
Technical Writing Module-I Complete Notes.pdf
VedprakashArya13
 
M1-T1.pptxM1-T1.pptxM1-T1.pptxM1-T1.pptx
teodoroferiarevanojr
 
Fuzzy_Membership_Functions_Presentation.pptx
pythoncrazy2024
 
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
Practical Measurement Systems Analysis (Gage R&R) for design
Rob Schubert
 
717629748-Databricks-Certified-Data-Engineer-Professional-Dumps-by-Ball-21-03...
pedelli41
 
White Blue Simple Modern Enhancing Sales Strategy Presentation_20250724_21093...
RamNeymarjr
 
Future_of_AI_Presentation for everyone.pptx
boranamanju07
 
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
short term internship project on Data visualization
JMJCollegeComputerde
 
Multiscale Segmentation of Survey Respondents: Seeing the Trees and the Fores...
Sione Palu
 
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
Fluvial_Civilizations_Presentation (1).pptx
alisslovemendoza7
 
Blue Futuristic Cyber Security Presentation.pdf
tanvikhunt1003
 
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
Blitz Campinas - Dia 24 de maio - Piettro.pdf
fabigreek
 
Presentation (1) (1).pptx k8hhfftuiiigff
karthikjagath2005
 
Data-Users-in-Database-Management-Systems (1).pptx
dharmik832021
 

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