上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页

2016年3月1日

傅里叶变换

摘要: 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。作者:Heinrich链接:http://zhuanlan.zhihu.com/wille/19763358来源:知乎 作 者:韩 昊 知 乎:Heinrich 微 博:@花生油工人 知乎专栏:与时间无关的故事 谨以此文献给大连海事 阅读全文

posted @ 2016-03-01 19:09 walkwalkwalk 阅读(263) 评论(0) 推荐(0) 编辑

2016年2月29日

KNN算法

摘要: KNN算法的介绍请参考: http://blog.csdn.net/zouxy09/article/details/16955347 统计学习方法里面给出了KD Tree的算法介绍,按照书上的进行了实现: 实现了后,利用上面博客给的手写数据集进行了下测试 我的娘亲哟,结果只有0.8794926004 阅读全文

posted @ 2016-02-29 23:15 walkwalkwalk 阅读(257) 评论(0) 推荐(0) 编辑

2016年2月28日

感知机

摘要: 感知机算法的原始形式: import numpy as np class Perceptron(object): def __init__(self, n): """ :param n: the dimesion number of x :return: """ self.w = [] self.b 阅读全文

posted @ 2016-02-28 19:28 walkwalkwalk 阅读(194) 评论(0) 推荐(0) 编辑

2016年2月27日

贝叶斯方法

摘要: 学习资料:http://mindhacks.cn/2008/09/21/the-magical-bayesian-method/ 概率论只不过是把常识用数学公式表达了出来。 ——拉普拉斯 记得读本科的时候,最喜欢到城里的计算机书店里面去闲逛,一逛就是好几个小时;有一次,在书店看到一本书,名叫贝叶斯方 阅读全文

posted @ 2016-02-27 21:54 walkwalkwalk 阅读(940) 评论(0) 推荐(0) 编辑

2016年2月25日

Construct Binary Tree from Preorder and Inorder Traversal

摘要: Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. Subscribe to 阅读全文

posted @ 2016-02-25 15:31 walkwalkwalk 阅读(150) 评论(0) 推荐(0) 编辑

Convert Sorted Array to Binary Search Tree

摘要: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. Subscribe to see which companies asked this question 阅读全文

posted @ 2016-02-25 10:47 walkwalkwalk 阅读(105) 评论(0) 推荐(0) 编辑

Invert Binary Tree

摘要: Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 / \ / \ 9 6 3 1 Trivia:This problem was inspired by this original tweet by Max Howell: Go 阅读全文

posted @ 2016-02-25 10:41 walkwalkwalk 阅读(146) 评论(0) 推荐(0) 编辑

2016年2月24日

Kth Smallest Element in a BST

摘要: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's 阅读全文

posted @ 2016-02-24 21:45 walkwalkwalk 阅读(179) 评论(0) 推荐(0) 编辑

Path Sum II

摘要: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example:Given the below binary tree and sum 阅读全文

posted @ 2016-02-24 21:23 walkwalkwalk 阅读(173) 评论(0) 推荐(0) 编辑

Lowest Common Ancestor of a Binary Tree

摘要: Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowes 阅读全文

posted @ 2016-02-24 20:57 walkwalkwalk 阅读(191) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页

导航