码迷,mamicode.com
首页 > 其他好文
数据仓库中数据粒度
粒度问题是设计数据仓库的一个最重要方面。粒度是指数据仓库的数据单位中保存数据的细化或综合程度的级别。细化程度越高,粒度级就越小;相反,细化程度越低,粒度级就越大。确定粒度是数据仓库开发者需要面对的一个重要的设计问题。如果数据仓库的粒度确定合理,设计和实现中的其余方面就可以非常顺畅地进行;反之,如果粒度确定的不合理就会是其他所有方面都很难进行。粒度对于数据仓库体系结构设计人员来说,非常重要,因为粒度...
分类:其他好文   时间:2014-06-30 07:56:42    阅读次数:166
绝不在构造和析构函数中调用 virtual 函数
看下面的这段代码,问 print调用的是基类还是派生类的版本? {CSDN:CODE:410156} 答案是 基类。。。 可能大家会很惊讶,print不是virtual function 吗?为什么不是调用派生类的版本呢? 首先,当定义一个派生类的对象的时候,由于 base class 构造函数的执行更早于 derived class 构造函数,所以当 base cl...
分类:其他好文   时间:2014-06-30 00:48:35    阅读次数:267
面对Excel和Google docs,我们照样创新.我们做不到一刀劈死它,但可以先切断它的一根脚趾头
最先取名“杀死Excel”,后来觉得应该低调,就取名“面对Excel和Google docs,我们照样创新”。 Chrome敢颠覆IE; iPhone敢颠覆微软Windows Mobile和诺基亚塞班; Chrome Book敢颠覆Windows; 微信敢欺负微软小冰聊天机器人; 我们敢叫板Excel。 我们做不到一刀劈死它,但可以先切断它的一根脚趾头。...
分类:其他好文   时间:2014-06-30 08:38:50    阅读次数:248
obj-c编程04:类的继承
这第4篇内容比较少,主要说的是obj-c中的类的继承,需要说明的是我只是写了继承中最简单的形式,如果全部展开来说,那就多了去了!关键是现在肚子里还没装够墨水,没法展开啊!     下面的代码中,我们写了2个类:父类A和子类B,然后B中对A中的方法做了重写。 #import @interface A:NSObject{ int i; } @property int i; -(void)...
分类:其他好文   时间:2014-06-30 08:57:17    阅读次数:195
用二叉查找树实现持久动态集合
实现持久动态集合的方式。算法导论上面的问题。代码完全是自己写的。...
分类:其他好文   时间:2014-06-30 07:55:42    阅读次数:156
LeetCode: Linked List Cycle II [142]
【题目】 Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you solve it without using extra space? 【题意】 给定一个单向链表,如果链表有环,则返回环开始的位置。 【思路】 仍然是维护两个指针, p1, p2, p1每次走一步, p2每次走两步 ...
分类:其他好文   时间:2014-06-29 23:59:21    阅读次数:354
poj3067 Japan(树状数组)
树状数组...
分类:其他好文   时间:2014-06-30 07:54:38    阅读次数:169
LeetCode: Reorder List [143]
【题目】 Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For example, Given {1,2,3,4}, reorder it to {1,4,2,3}. 【题意】 给定一个链表L: L0→L1→…→Ln-1→Ln,对他重新排序成L...
分类:其他好文   时间:2014-06-30 10:11:14    阅读次数:158
LeetCode: Binary Tree Preorder Traversal [144]
【题目】 Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,2,3]. Note: Recursive solution is trivial, could you do it iteratively? 【题意】 非递归返回先序遍历...
分类:其他好文   时间:2014-06-30 06:21:18    阅读次数:334
uva 10623 - Thinking Backward(数学)
题目链接:uva 10623 - Thinking Backward 题目大意:就是给出N,表示要将平面分解成N份,问有哪些可选则的方案,m表示椭圆、n表示圆形、p表示三角形的个数,m、n、p分别给定范围。 解题思路:本来这题一点思路都没有,但是在论坛上看到一个公式N=2+2m(m?1)+n(n?1)+4mn+3p(p?1)+6mp+6np 这样只要枚举m和p,求解n,判断n...
分类:其他好文   时间:2014-06-30 08:56:14    阅读次数:186
POJ 2478 Farey Sequence
Description The Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational numbers a/b with 0 F2 = {1/2}  F3 = {1/3, 1/2, 2/3}  F4 = {1/4, 1/3, 1/2, 2/3, 3/4}  F5 = {1/...
分类:其他好文   时间:2014-06-29 20:35:09    阅读次数:209
LeetCode: Binary Tree Postorder Traversal [145]
【题目】 Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [3,2,1]. Note: Recursive solution is trivial, could you do it iteratively? 【题意】 非递归实现后续遍...
分类:其他好文   时间:2014-06-30 10:10:10    阅读次数:177
LeetCode: LRU Cache [146]
【题目】 Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1. se...
分类:其他好文   时间:2014-06-29 22:45:26    阅读次数:358
SharePoint在管理中心创建Secure Store
SSS(Secure Store service)可以作为核心服务,因为很多其他服务都要求设置这个服务来起作用。它的作用之一就是提供安全数据库,储存和应用程序ID关联的凭据。...
分类:其他好文   时间:2014-06-29 23:04:58    阅读次数:266
增加PDF文件对比度的粗浅原理,及方法
电子书扫描版跟照片差不多,一个可能的问题是看起来乌突突的,黑的不够黑,白的不够白,像是蒙了一层雾。用picasa的luck功能或者snapseed的automatic功能,都能把图片上的雾去掉。但是同样的功能用在PDF上的软件我没有找到。...
分类:其他好文   时间:2014-06-30 10:33:47    阅读次数:252
fork同时创建多个子进程的方法
fork 同时创建多个子进程的方法...
分类:其他好文   时间:2014-06-29 23:04:00    阅读次数:287
CodeForces 18E Flag 2 dp
题目链接:点击打开链接 #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define N 505 #define inf 1000000009 #define siz 26 char s[N][N]; i...
分类:其他好文   时间:2014-06-29 22:04:26    阅读次数:194
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!