随笔分类 - 算法与数据结构
摘要:整理自Andrew Ng的machine learning 课程 week 9. 目录: Problem Formulation(问题的形式) Content Based Recommendations(基于内容的推荐) Collaborative Filtering(协同过滤) Collabora
阅读全文
摘要:自Andrew Ng的machine learning课程。 目录: Problem Motivation Gaussian Distribution Algorithm Developing and Evaluating an Anomaly Detection System Anomaly De
阅读全文
摘要:整理自Andrew Ng的machine learning课程。 目录: 梯度下降算法 梯度下降算法的直观展示 线性回归中的梯度下降 前提: 线性回归模型 :$h(\theta_0,\theta_1)=\theta_0+\theta_1x$ 损失函数:$J(\theta_0,\theta_1)=\f
阅读全文
摘要:题目:输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重复的数字。例如输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建二叉树并返回。 思路: 设前序遍历序列为pre,中序遍历序列为in,则易
阅读全文

浙公网安备 33010602011771号