Git Product home page Git Product logo

algorithm's Introduction

algorithm

这几天经常被问到列表排序算法的问题,在此总结了常用算法,并进行简单测试,测试内容:不同算法对一个10万条数据的list进行排序,统计运行时间
包含插入排序,冒泡排序,选择排序,快速排序,归并法,堆排序和,sorted方法排序
对比结果发现,sorted是最快的,再也不用为寻找哪种算法最优发愁了,python內建的就是最好的


最后的冒泡排序已经运行不完了
image

连续子数组使其最大.py 动态规划算法**

algorithm's People

Contributors

dsgdtc avatar

Watchers

 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.