GithubHelp home page GithubHelp logo

xuding0829 / competitive-programming Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 169.11 MB

记录本人算法竞赛中写过的代码和笔记,以及一些有用的资料

C++ 98.50% Makefile 0.01% TeX 1.18% Shell 0.02% Python 0.19% Java 0.05% HTML 0.04% JavaScript 0.01%

competitive-programming's Introduction


这是用于记录一个蒟蒻算法历程的仓库

包含

  • Note:算法学习笔记
  • Src:代码归档,包含了题解、AC代码
  • Template:算法模板
  • Archive:一些本蒟蒻认为有用的资料

关于算法复杂度

在竞赛中,一般算机一秒能运行5 x 10^8次汁算,如果题目給出的时间限制カ1s,那么你选择的算法执行的计算次数最多应该在10^8量级オ有可能解决这个题目。一般 O(n)的算法能解决的数据范围在n < 10^8。

  • O($n*log_2{n}$)的算法能解决的数据范围在($n&lt;=10^6$)。
  • O($n*sqrt(n)$ )的算法能解决的数据范围在($n&lt;10^5$)。
  • O($n^2$)的算法能解决的数据范围在($n&lt;5000$)。
  • O($n^3$)的算法能解决的数据范围在($n&lt;300$)。
  • O($2^n$)的算法能解决的数据范围在($n&lt;25$)。
  • O($n!$)的算法能解决的数据范围在($n&lt;11$)。

以上范围仅供参考,实际中还要考虑每种算法的常数。


推荐一些优质的资源


另外想到了再补充

competitive-programming's People

Contributors

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