Leanpub Header

Skip to main content

算法设计与分析

Algorithm Design and Analysis

算法是计算机科学的灵魂,但学习算法往往被抽象的理论推导和零散的代码示例所困扰。本书独辟蹊径,以问题为驱动,以策略为主线,用最通俗的语言讲透贪心、分治、动态规划、回溯等经典算法思想。每个知识点都配有精心挑选的经典例题,并同时提供C++和Python双语言实现,让你在解决实际问题中领悟算法精髓。无论你是备战面试的开发者,还是希望系统提升算法功底的学子,本书都将成为你案头不可或缺的实战指南。

Minimum price

$6.00

$12.00

You pay

$12.00

Author earns

$9.60
$

...Or Buy With Credits!

You can get credits with a paid monthly or annual Reader Membership, or you can buy them here.

Buying multiple copies for your team? See below for a discount!

PDF
About

About

About the Book

关于本书:《算法设计与分析》

作者: hwdong

《算法设计与分析》是一本以问题为驱动、以策略为主线的算法入门书籍。本书从算法基础概念入手,系统讲解穷举、贪心、分治、动态规划、回溯等经典算法设计策略,并通过大量精选实例,帮助读者深入理解每种策略的核心思想与适用场景。

内容简介

  • 算法基础:厘清算法与程序的关系,介绍算法分析的核心工具(渐近记号、递归方程求解)。
  • 线性穷举:通过“两数之和”“N皇后”等问题,展示系统搜索解空间的方法。
  • 贪心法:讲解“每步取最优”的贪心思想,涵盖活动安排、哈夫曼编码、最小生成树等经典问题。
  • 分治法:剖析“分而治之”的范式,包括归并排序、快速排序、Karatsuba乘法等。
  • 动态规划:深入探讨最优子结构与重叠子问题,通过背包问题、最长公共子序列等案例掌握递推关系构建。
  • 状态空间搜索:介绍回溯与分支限界,解决N皇后、旅行商问题等组合优化难题。

本书特色

  • 深入浅出:用通俗语言直击算法本质,避免抽象数学推导。
  • 例子驱动:每个知识点配有经典例题,边学边练。
  • 双语言实现:同时提供C++和Java完整代码,兼顾不同编程背景。
  • 干货满满:内容精炼,每一页都有价值。

目标读者

  • 计算机专业本科生、研究生
  • 算法自学者、编程爱好者
  • 备战技术面试的开发者
  • 希望系统梳理算法知识体系的科研人员

配套资源

Share this book

Team Discounts

Team Discounts

Get a team discount on this book!

  • Up to 3 members

    Minimum price
    $15.00
    Suggested price
    $30.00
  • Up to 5 members

    Minimum price
    $24.00
    Suggested price
    $48.00
  • Up to 10 members

    Minimum price
    $42.00
    Suggested price
    $84.00
  • Up to 15 members

    Minimum price
    $60.00
    Suggested price
    $120.00
  • Up to 25 members

    Minimum price
    $90.00
    Suggested price
    $180.00

Author

About the Author

hwdong

C9本科,高考数学物理1小时交卷、超出清华分数线20多分. Texas A&M、休斯顿大学访问学者. 曾从事计算机图形学、视觉等科研,目前主要从事计算机编程等网络课程的工作,写了3本书:C++17从入门到精通、Python3从入门到实战、解剖深度学习原理-从0实现深度学习库。在YouTube频道hwdong上发布免费计算机相关的教学课程。

Get the free Community Edition

You can get the free Community Edition in PDF or EPUB just by sharing your name and email address with the author, or you can just click this link to read a shorter sample online...

 

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub