













































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!














































Agenda
Em Profundidade Primeiro (Depth–First) Profundidade Limitada (Depth – Limited) Em Largura Primeiro (Breath - First) Custo Uniforme (Uniform - Cost) Aprofundamento Progressivo (Progressive Depth)
Métodos de Busca
Data type node
General Search Algorithm Algorithm Frontier:= {Inicial_State} Current= First member of the frontier while not “Current is final” and “Frontier not empty” do delete current from frontier Successors= generate successors from Current Insert Sucessors in Frontier Reorganize Frontier Current= First member of the frontier eWhile eAlgorithm AradAradArad
General Search Algorithm Algorithm Frontier:= {Inicial_State} Current= First member of the frontier while not “Current is final” and “Frontier not empty” do delete current from frontier Successors= generate successors from Current Insert Sucessors in Frontier Reorganize Frontier Current= First member of the frontier eWhile eAlgorithm AradArad
General Search Algorithm Algorithm Frontier:= {Inicial_State} Current= First member of the frontier while not “Current is final” and “Frontier not empty” do delete current from frontier Successors= generate successors from Current Insert Sucessors in Frontier Reorganize Frontier Current= First member of the frontier eWhile eAlgorithm AradArad Zerind (75) Timisoara (118) Sibiu (140)
General Search Algorithm Algorithm Frontier:= {Inicial_State} Current= First member of the frontier while not “Current is final” and “Frontier not empty” do delete current from frontier Successors= generate successors from Current Insert Sucessors in Frontier Reorganize Frontier Current= First member of the frontier eWhile eAlgorithm Arad Zerind (75) Timisoara (118) Sibiu (140) Dradea (151) Faragas (99) Rimnicu Vilcea (80)
Diferentes métodos de busca Não informados vs Informados
Different Search Methods Uninformed vs. informed search Busca informada: Se houver informações disponíveis sobre o problema, isso poderá orientar a busca (por exemplo, ao encontrar o caminho mais curto em um mapa: informações sobre distâncias entre locais no mapa).
Profundidade Primeiro Ordem de expansão dos nós:
Profundidade Primeiro
Profundidade Primeiro
mantém na memória o caminho que está sendo expandido no momento, e os nós irmãos dos nós no caminho (para possibilitar o backtracking) necessita armazenar apenas b.m nós para um espaço de estados com factor de expansão b e profundidade m, onde m pode ser maior que d (profundidade da 1a. solução).
O (b m), no pior caso.
Profundidade Primeiro Vantagens:
Desvantagem: