码迷,mamicode.com
首页 >  
搜索关键字:awk sort    ( 17174个结果)
hadoop运行原理之shuffle
hadoop的核心思想是MapReduce,但shuffle又是MapReduce的核心。shuffle的主要工作是从Map结束到Reduce开始之间的过程。首先看下这张图,就能了解shuffle所处的位置。图中的partitions、copy phase、sort phase所代表的就是shu.....
分类:其他好文   时间:2014-09-28 14:30:12    阅读次数:368
插入排序
1 #include 2 #include 3 4 void insert_sort(int data[], int); 5 6 int main(int argc, char *argv[]) 7 { 8 int i; 9 int data[6] = {5,3,7,10,...
分类:其他好文   时间:2014-09-28 13:25:12    阅读次数:169
堆排序(代码2)
1 #include 2 #include 3 4 void build_heap(int data[], int); 5 void adjust_heap(int data[], int); 6 void heap_sort(int data[], int); 7 int s...
分类:其他好文   时间:2014-09-28 13:16:22    阅读次数:222
《SAS编程与数据挖掘商业案例》学习笔记之十二
本次重点在:sas数据集管理    主要包括:包括数据集纵向拼接、转置、排序、比较、复制、重命名、删除等 1.append语句 注:base数据集和data两个数据集必须结构一样,避免使用force的情况,重复append的会造成重复。 一个避免重复的商业化应用: %macro dl; %if %sysfunc(exist(null)) ne 0 %then %...
分类:其他好文   时间:2014-09-28 10:32:11    阅读次数:309
《js12种设计模式》
1.策略模式(Strategy): 定义了算法家族, 分别封装起来, 让它们之间可以互相替换. 比如Collections.sort(List list, Comparator c); 可以通过实现多个Comparator接口来达到多种排序的目的. 2.装饰着模式(Decorator): 动态的给一...
分类:Web程序   时间:2014-09-28 10:00:41    阅读次数:260
C# Sort排序
#region实现IComparable的排序class UserInfo:IComparable { public int ID { get; set; } public int Age { get; set; } public string Nam...
分类:其他好文   时间:2014-09-27 19:35:10    阅读次数:151
Sort List
题目描述:Sort a linked list inO(nlogn) time using constant space complexity.解题方案:题目要求的时间复杂度是O(nlogn),常数级空间复杂度。所以这里用了归并排序,归并排序在数组上操作比较方便,但是这里要排序的是链表。我们用到两个...
分类:其他好文   时间:2014-09-27 18:56:10    阅读次数:231
Deleting comments in c or java code by awk scripts
Last night , I attended writting examination for Bai Du,There is a problem, ask us implement a state machine to deleting the comments in c,I don't k.....
分类:编程语言   时间:2014-09-27 10:43:39    阅读次数:178
嵌入式linux下自动定时检测硬盘空间并删除旧文件脚本
[plain] view plaincopyprint? #! /bin/sh  while true; do  i=`df -h | egrep '/mnt/yourpath'| awk '{print $5}' | cut -d "%" -f1 -`  if [ "$i" -ge 90 ]  then  echo "disk nearly full"  cd /mnt/your...
分类:系统相关   时间:2014-09-27 09:35:19    阅读次数:240
快速排序
#include #include #include void quick_sort(int data[], int, int);int partition(int data[], int, int);int main( int argc, char* argv[] ) { int data[8] ...
分类:其他好文   时间:2014-09-27 00:09:38    阅读次数:308
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!