Git Product home page Git Product logo

leda-ordenacao-extra's Introduction

Algoritmo de Ordenção por Comporação (Extra)

Algoritmos implementados em Java 8.

Comb Sort

  • A distancia começa por gap = tamanho/fator (fator=1.25)
  • A entrada é ordenada com as trocas considerando elementos distanciados por gap
  • O gap é atualizado (gap = gap/fator) até 1
  • Quando gap=1 combo sort continua até o array estar todo ordenado

"Comb Sort"

Gnome Sort

  • Adota um elemento (pivot) que possui anterior.
  • Se pivot e o proximo estao na ordem correta entao incrementa o pivot
  • Se pivot e proximo nao estao na ordem correta entao troca eles e decrementa o pivot
  • Se nao existe anterior ao pivot então anda para frente (ao invés de decrementar)
  • Se nao tem proximo entao termina (ao invés de incrementar)

"Gnome Sort"

Gráfico de Execução

"Gráfico"

leda-ordenacao-extra's People

Contributors

juliafealves avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.