GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Jiacch/Algorithm_Python_Demo: fundamental algorithm demo by Python

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
No.1
No.1
 
 
README.md
README.md
 
 
code.zip
code.zip
 
 

Repository files navigation

Algorithm_Python_Demo

《挑战程序设计竞赛(第二版)》

No.1 初级篇


1.1穷竭搜索

1.1.1 DFS && BFS

DFS:从一个状态开始,不断移动状态,直到无法移动,然后退回到上一状态,继续转移其他状态,不断重复,直到找到最终解。递归函数
BFS:从一个状态开始,不断移动状态,总是搜索距离初始状态距离近的状

1.1.2 优化

特殊状态的枚举:生成可解空间多数采用DFS,但是状态空间较为特殊时可通过全排列解决。
剪枝:当深度遍历,明确的知道从当前状态无论如何转移也不会存在解,这种情况下不再继续,而是直接跳过。

2.2贪心问题

硬币问题:给出一个数值,求出组合出该数的最小硬币数 字典序最小问题:POJ3617

No.2 中级篇


No.3 高级篇


About

fundamental algorithm demo by Python

Topics

algorithmalgorithm-python-demopython

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.