摘要:
C++ with Machine Learning -K–nearest neighbors 我本想写C++与人工智能,可是转念一想。人工智能范围太大了,我根本介绍不完也没能力介绍完,所以还是取了他的子集。我想这应该是一个有关机器学习的系列文章,我会不定期更新文章,希望喜欢机器学习的朋友不宁赐教。 阅读全文
posted @ 2017-05-26 15:44
yfceshi
阅读(1728)
评论(0)
推荐(0)
摘要:
一个队列至少满足2个方法,put和get. 借助最小堆来实现. 这里按"值越大优先级越高"的顺序. #coding=utf-8 from heapq import heappush, heappop class PriorityQueue: def __init__(self): self._que 阅读全文
posted @ 2017-05-26 14:09
yfceshi
阅读(291)
评论(0)
推荐(0)
摘要:
#region 获取指定文件夹及子文件夹中全部文件列表 /// <summary> /// 获取指定文件夹及子文件夹中全部文件列表 /// </summary> /// <param name="directoryPath">指定文件夹的绝对路径</param> /// <param name="s 阅读全文
posted @ 2017-05-26 12:50
yfceshi
阅读(386)
评论(0)
推荐(0)
摘要:
package avitree; /** * 平衡二叉查找树类 * * @param <T> */ public class AvlTree<T extends Comparable<? super T>> { public static void main(String[] args) { Avl 阅读全文
posted @ 2017-05-26 12:18
yfceshi
阅读(158)
评论(0)
推荐(0)
摘要:
scons有非常多相对于make构建系统的优秀特性,可是因为发展时间比較短如今的应用范围还是不太多,可以找到的资料也不是非常多。 scons如今一大问题就是初始上手还是有点难度的,对于有python的基础的还是有点问题,毕竟他跟写成的python还是不一样的。尽管他遵循了python语言的语法,相同 阅读全文
posted @ 2017-05-26 11:34
yfceshi
阅读(514)
评论(0)
推荐(0)
摘要:
#include <stdio.h> __global__ void childKernel(int i) { int tid = blockIdx.x*blockDim.x+threadIdx.x; printf("parent:%d,child:%d\n",i,tid); for(int j=i 阅读全文
posted @ 2017-05-26 11:31
yfceshi
阅读(3037)
评论(0)
推荐(0)
摘要:
近期做的一个项目,刚好用到了JSSDK,把用到的东西整理下。 先附上微信开发人员文档链接:微信开发人员文档 主要用到了: 引入JS文件 在须要调用JS接口的页面引入例如以下JS文件。(支持https):http://res.wx.qq.com/open/js/jweixin-1.0.0.js 我们须 阅读全文
posted @ 2017-05-26 10:48
yfceshi
阅读(7453)
评论(0)
推荐(0)
摘要:
效果图: 改动progressbar 让他满足自己的需求一般来说仅仅改动一下,progressbar的style就能够满足需求了: activity代码:只显示一个布局而已 package com.example.testcustomprogressbar; import android.app.A 阅读全文
posted @ 2017-05-26 10:45
yfceshi
阅读(243)
评论(0)
推荐(0)
摘要:
索引:[LeetCode] Leetcode 题解索引 (C++/Java/Python/Sql) Github: https://github.com/illuz/leetcode 035. Search Insert Position (Medium) 链接: 题目:https://leetco 阅读全文
posted @ 2017-05-26 09:48
yfceshi
阅读(140)
评论(0)
推荐(0)
摘要:
Problem Description 有非常多从磁盘读取数据的需求。包含顺序读取、随机读取。为了提高效率,须要人为安排磁盘读取。然而,在现实中。这样的做法非常复杂。我们考虑一个相对简单的场景。磁盘有很多轨道,每一个轨道有很多扇区,用于存储数据。当我们想在特定扇区来读取数据时,磁头须要跳转到特定的轨 阅读全文
posted @ 2017-05-26 09:46
yfceshi
阅读(179)
评论(0)
推荐(0)

浙公网安备 33010602011771号