自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 quicksort

function partition(array, left, right, pivotIndex) pivotValue := array[pivotIndex] swap array[pivotIndex] and array[right] // Move pivot to end storeIndex := left for i from left to right - 1 // left ≤ i < rightif arr

2011-06-02 14:49:00 2449

原创 quickselect

function partition(list, left, right, pivotIndex) pivotValue := list[pivotIndex] swap list[pivotIndex] and list[right] // Move pivot to end storeIndex := left for i from left to right if list[i] < pivotValue

2011-06-02 14:45:00 3616

原创 Top K algorithm

<br />function quickfindFirstK(list, left, right, k)<br />     if right > left<br />         select pivotIndex between left and right<br />         pivotNewIndex := partition(list, left, right, pivotIndex)<br />         if pivotNewIndex > k  // new

2011-06-02 14:12:00 2617

Linux101个技巧(Linux-101-Hacks)

《Linux 101 Hacks》是一本关于 Linux 使用技巧的免费电子书籍。本书总计 140 页,包含 12 章,讲解了 101 个 hack,涉及的内容包括 Linux 命令精要、日期处理、定制命令提示符、系统管理、Bash 脚本、Apachectl 及 Httpd 例解、系统监视与性能等等,总之很值得一看。

2009-02-18

空空如也

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

TA关注的人

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