Giter VIP home page Giter VIP logo

java-algorithms's Introduction

算法练习

本仓库主要为了练习基础算法与数据结构,加深学习印象。

排序

基于比较的排序

基于特定场景的排序

搜索

基于图的搜索

基于树的搜索

字符串匹配

单模式串匹配

数据结构

树相关结构

链表相关结构

算法**

小技巧

  • 对于插入排序和冒泡排序来说,一般使用插入排序,其数据移动操作(一步)要少于冒泡的数据交换操作(三步)

应用场景

稳定性排序算法的适用场景:

  • 下订单顺序排列

术语

顺序度:在一组元素中小的元素在大的元素前面的个数。

逆序度 = 满顺序度 - 初始顺序度,满顺序度 = (1 + n-1) * (n-1) / 2

说明

本仓库部分代码实现参考:

java-algorithms's People

Contributors

otfot 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.