自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (1)
  • 收藏
  • 关注

原创 Reverse linked list

1. Iterativepublic void reverse(head){ ListNode current, prev, next; current = head; prev = null; while(current!=null){ next = current.next; current.next = prev;

2014-02-26 06:42:25 326

原创 公式测试

public void reverse(head){ ListNode current, prev, next; current = head; prev = null; while(current!=null){ next = current.next; current.next = prev; prev = cur

2014-02-24 16:22:10 385

原创 各种sorting总结

Selection sort:1. Divide the input into two part: sublist of items already sorted and sublist of items to be sorted.2. Find the smallest element in unsorted sublist, exchange it with the leftmos

2014-02-18 09:09:22 720

原创 Linkedlist实现Queue

public class Queue{ private Node first; private Node last; private class Node{ Item item; Node next; } public boolean isEmpty(){ return first == null; } public void enqueue(Item item){

2014-02-18 08:10:27 438

原创 Linkedlist和Array实现Stack

LinkedList实现Stackpublic Class Stack{ private Node first = null; private class Node{ Item item; Node next; } public boolean isEmpty(){ return first == null; } public void push(Item i

2014-02-18 08:02:04 535

原创 Affinity propagation for clustering

Basic idea: message passing. Number of clusters automatically determined.2 matrices to be updated: responsibility R and availability A.R: to let exemplars compete for ownership of a data

2014-02-14 14:29:07 537

原创 实例理解EM算法

一篇Nature子刊的文章,给了一个很好的例子,如图:

2014-02-14 07:07:18 1320

原创 Single Number I and II, 数组里找出没重复的数

public class Solution{public int singleNumber(int[] A){int ret=0;for(int i:A){ret=ret^i;}return ret;}}一个数组中,除了一个元素以外其他每个数组都出现两次,找出这个单独出现一次的数。Given an array of integers, every element appea

2014-02-14 06:21:00 484

probability,random variables and random processes

一本不错的概率和随机过程的书,比较通俗易懂。

2010-09-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除