- 博客(6)
- 收藏
- 关注
原创 ELS ranker training
Ranker Training的主要过程:1,从Training Data生成input和selection,依次调用pipeline生成每一个selection的一系列Features值2,因为实体走内部编号,故需要做一个Training Data和内部编号的mapping3,从Training Data生成内部编号标示的Training数据,交给platform进行model tr
2015-03-27 15:31:06 318
原创 HashMap 的 hash函数 jdk1.8
/** * Computes key.hashCode() and spreads (XORs) higher bits of hash * to lower. Because the table uses power-of-two masking, sets of * hashes that vary only in bits above the curre
2015-03-18 21:54:59 522
转载 深入理解HashMap(及hash函数的真正巧妙之处)
原文地址:http://www.iteye.com/topic/539465 /** *@author annegu *@date 2009-12-02 */ Hashmap是一种非常常用的、应用广泛的数据类型,最近研究到相关的内容,就正好复习一下。网上关于hashmap的文章很多,但到底是自己学习的总结,就发出来跟大家一起分享,一起讨论
2015-03-17 16:40:52 396
转载 Java中HashTable和HashMap区别
1, Table线程同步,Map不同步2,Table不允许null value,Map允许3,都实现了Map, 但Table 扩展了Dictionary, Map扩展了AbstractMap4,Table用Enumeration,Map用Iterator5,Table中Hash数组的默认11,增长old*2+1,Map默认16,增长*2转自:http://blog.cs
2015-03-17 14:22:38 250
原创 删除单链表中的某个节点
Node deleteCNode(Node header, Node c){ if(header == null || c == null) return null; else{ if(c == header) return header.next; else{ Node index = header; while(index != null &&
2015-03-09 14:49:57 369
原创 找单向链表中离尾节点长度为n的节点
分析:建立两个pointers: p1, p2,使得两者间距为n。然后p2 move到尾部,p1的位置就是所找的节点。注意考虑例外情况。Node findNthNode(Node header, int n){if(header == null || n return null;else{int i = 1;Node index2 = header, while( i
2015-03-07 18:16:50 338
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人