Giter Club home page Giter Club logo

classic-computer-science-problems-notes's Introduction

《算法精粹-经典计算机科学问题Java实现》学习笔记

本书主要使用Java语言,讲述了如何编程解决经典的算法问题,首先通过几个小的问题介绍递归、迭代、备忘录模式等解法,之后开始介绍经典算法,包括搜索问题(DFS、BFS、二分搜索、A*搜索)、建立带约束的模板求解问题(回溯**、八皇后问题、着色问题、字谜问题)、图算法、遗传算法、k均值聚类算法、神经网络模型、极小化极大搜索算法(井字棋、四子棋)、其他问题(背包问题、旅行商问题、笛卡尔积)。

环境安装

  • Java版本:11.0.10
  • Maven版本:3.6.3

学习总结

  1. 这本书通过Java语言编程求解代码,大量用了stream、泛型编程,其中还使用了访问者模式、备忘录模式等经典设计模式
  2. 书中的算法求解分析是逐步式的,通过经典问题,构建算法求解模板
  3. 应用了很多Java8的新特性,包括streamlambda编程,还包括OptionalPredicateFunctionDoubleSummaryStatistics类方法;
  4. 本书包含各种有趣的示例,比如走迷宫、传教士和食人族问题、井字棋和四子棋AI的构建。
  5. 当然,本书的重点是各种算法,包括
    • 搜索算法:DFS、BFS、二分搜索、A*搜索
    • 约束满足问题的通解:CSP求解模板、回溯**
    • 图问题:构建最小生成树(Jarnik算法)、Dijkstra算法
    • 遗传算法
    • 机器学习和深度学习算法:KMeans算法、神经网络与梯度下降
    • 极小化极大算法
    • 动态规划(DP算法)、笛卡尔积构建

classic-computer-science-problems-notes's People

Contributors

relph1119 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

lifanfei

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.