算法设计3:分治法

文章目录


一、分治法

1.含义

分治法 Divide and Conquer:

  • Divide:P into smaller problems P1, P2, …, Pk.
  • Conquer:by solving the (smaller) subproblems recursively.
  • Combine:the solutions to P1, P2, …, Pk into the solution for P.
发布了461 篇原创文章 · 获赞 183 · 访问量 12万+

猜你喜欢

转载自blog.csdn.net/sandalphon4869/article/details/104512901