Este projeto implementa um algoritmo de buscas para encontrar diferentes rotas com base no mapa fornecido. O algoritmo solicita ao usuário a origem e o destino do translado e retorna os resultados de diversas estratégias de busca, incluindo o somatório das distâncias percorridas.
video.mp4
1.1. Busca em Extensão (Amplitude)
1.2. Busca de Custo Uniforme
1.3. Busca em Profundidade
1.4. Busca em Profundidade Limitada
1.5. Busca de Aprofundamento Iterativo
1.6. Busca Direcional
2.1. Busca Gulosa
2.2. Algoritmo A*
- Node.js (versão 14 ou superior)
- npm (gerenciador de pacotes do Node.js)
-
Clone o repositório
git clone https://github.com/EdigarCarvalho/ai-searchs.git cd ifma/ai
-
Instale as dependências
npm install
-
Inicie o servidor de desenvolvimento
npm start ou npm dev
-
Ou faça a build do projeto
npm run build
-
Acesse a aplicação
- O servidor de desenvolvimento abrirá automaticamente o navegador em http://localhost:9000
- Se você fez apenas a build, abra o arquivo public/index.html em seu navegador
-- English
This project implements a search algorithm to find different routes based on the provided map. The algorithm prompts the user to enter the starting point and destination, then returns the results of various search strategies, including the total distance traveled.
1.1. Breadth-First Search (BFS)
1.2. Uniform Cost Search (UCS)
1.3. Depth-First Search (DFS)
1.4. Limited Depth Search
1.5. Iterative Deepening Search (IDS)
1.6. Directional Search
2.1. Greedy Search
2.2. A* Algorithm
- Node.js (version 14 or higher)
- npm (Node.js package manager)
-
Clone the repository
git clone https://github.com/EdigarCarvalho/ai-searchs.git cd ifma/ai
-
Install dependencies
npm install
-
Start the development server
npm start or npm dev
-
Or build the project
npm run build
-
Access the application
- The development server will automatically open the browser at http://localhost:9000
- If you only built the project, open the public/index.html file in your browser