Giter Club home page Giter Club logo

algorithm's Introduction

解决算法的思维

动态规划,贪心算法,回溯算法

刷题顺序

背包问题

背包问题(Knapsack problem)是一种组合优化的问题。它可以描述如下:假设有一个背包,它能承受的最大重量是 W,现在有 n 个物品,每个物品都有各自的重量 w1, w2, …, wn 和价值 v1, v2, …, vn。问如何选择装入背包的物品,使得背包中的物品总价值最大,同时不超过背包的最大承重。 背包问题有多种变体,其中最经典的是以下两种:

  1. 0-1背包问题:每种物品仅有一件,可以选择放或不放。
  2. 完全背包问题:每种物品有无限件,可以选择放任意件,包括不放。

排序专题

algorithm's People

Contributors

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