- 博客(13)
- 资源 (11)
- 收藏
- 关注
原创 latex 插入中文文献
latex 插入中文文献每次搞Latex都极其心塞。。。以后如果还有机会写paper绝壁争取不写中文的了,神坑中文文献的插入查了老半天都没怎么很多的blog写这个,开一贴。-----------------------------------------------------------------------------------测试环境: Ubuntu/Li
2015-01-30 12:25:29 13057
原创 Haffman Code
Haffman Code什么是Haffman编码?以后再说,嘿嘿先上实现。Python 实现:在这个实现当中,我们并没有统计文本的字符出现频率,仅仅是为Haffman Coding的一个demo."""Code writer : EOFCode file : haffman.pyCode date : 2015.01.28e-mail
2015-01-28 14:11:12 1410
原创 pdflatex 笔记+资源 汇总(update everytime I meet and solve a problem)
利用pdflatex 插入eps格式图片 由于latex命令不支持jpg或png格式的图片,因此只能用pdflatex命令来编译.tex文档一般的插入图片包括\usepackage{graphicx} 即可但是想要插入eps格式的图片又不行了。折腾了一会儿,笔记一下吧,省的以后忘记。\usepackage{pdftoeps}然后包含你想嵌入的e
2015-01-27 13:49:46 1443
原创 Matlab 画向量 笔记一下
老是忘记这个函数 —— quiver能够很方便的画出向量图,比方说:quiver3(0,0,0,1,2,3),将画出一个以(0,0,0)为起点,(1,2,3)为长度的向量画出一个矢量三角形:
2015-01-26 14:46:01 4682
原创 How to print a tree-ADT ? 打印树形结构的算法
How to print a tree-ADT写和树相关的代码的时候老是不方便debug,因为树形结构虽然能够代码构造出来但是如果能够有个很好的方法可视化就更好了。前些天看到一个MIT的代码片段,感激~....一开始你可能会想到一种比较简单的迭代实现,就像之前我做的void putout(int S, int *n) 实现在这里
2015-01-26 12:43:24 2598
原创 Python 踩坑之传参的问题
Python 踩坑之传参的问题前些天刚开始写Python, 没有指针各种不习惯(后来发现很强大。。。)def fun(A) : A[0],A[1],A[2] = A[2], A[1], A[0]def fun2(num) : num += 1x = [1,2,3]fun(x)y = 10fun2(y)fun2(x[0])prin
2015-01-25 22:20:16 1016
原创 资源向导之 “Python beginner”
Python beginner推荐书籍:《Python核心编程》MIT的计算机编程导论,一门非常好的课,如果Python beginner没有其他编程基础的话,这听好门课是一件很赚的事。Introduction to Computer Science and Programming下面是网易把视频搬到GFW里面来的link,下面是08年的
2015-01-25 09:01:48 1198
原创 Pascal triangle 帕斯卡三角形 杨辉三角形 二项式定理
Pascal triangle等段时间再扯pascal triangle~先把一年多以前打印杨辉三角形的方法贴出来(简直不认直视,越来越不敢看以前自己写的东东了)C语言实现:/*************************************************************** Code writer
2015-01-24 16:28:23 2757
原创 为什么Hash函数 H(k) = k % m中 m 尽量不要为2的幂次 也不是要是2^i -1
为什么Hash函数 H(k) = k % m中 m 尽量不要为2的幂次下面的截屏来自CLRS的11章 关于哈希函数的讨论之前我就一直困惑,为什么 When using the division method, we usually avoid certain values of m. For example, m should
2015-01-16 12:11:50 2252 1
原创 Linked List {singly linked list -> doubly linked list -> circular linked list}
Linked List
2015-01-15 16:11:41 1561
原创 Selection in expected linear time O(n)
Selection in expected linear time The general selection problem appears more difficult than the simple problem of finding a minimum. Yet, surprisingly, the asymptotic running tim
2015-01-15 13:35:00 1392
原创 线性时间排序 Sorting in linear time O(n)
Sorting In Linear Time 之前尝试过很多的排序算法, 都是基于比较的排序算法(base on comparing)Collection of algorithm for sorting (part one)http://blog.csdn.net/cinmyheart/article/details/39268783Collection
2015-01-11 17:11:43 2264
CSAPP lab 5 实验指导书
2014-09-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人