Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adicionar implementação do algoritmo de Busca Saltada (Jump Search) #8

Open
2 tasks
mateushsx opened this issue Sep 30, 2024 · 0 comments
Open
2 tasks
Labels
feature Implementation of new algorithm

Comments

@mateushsx
Copy link
Owner

A Busca Saltada (Jump Search) é um algoritmo de busca eficiente que funciona em arrays ordenados. Ele salta uma quantidade fixa de elementos em cada iteração e, uma vez que o intervalo de busca é identificado, ele faz uma busca linear no intervalo. Isso reduz o número total de comparações.

Tarefas:

  • Implementar o algoritmo em algorithms/searching/jump-search/index.js.
  • Criar a documentação do algoritmo em algorithms/searching/jump-search/README.md, incluindo:
    • Descrição do funcionamento do algoritmo.
    • Exemplo de código com uma breve explicação.
    • Análise de complexidade temporal e espacial.

Complexidade:

  • Tempo: O(√n).
  • Espaço: O(1).
@mateushsx mateushsx added the feature Implementation of new algorithm label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Implementation of new algorithm
Projects
None yet
Development

No branches or pull requests

1 participant