r*****e 发帖数: 792 | 1 出题的人是不是假设tree的每个node都占用26个字母,假设不考虑大小写,也没有
其他符号的话。那compress这个tree就是用list表示每个node,这样算完成要求吗?
或者用ternary tree,不过这样相应的算法都都要变了,虽然可能是个space
efficient的表示方式。 |
|
r*****e 发帖数: 792 | 2 是将标准的trie转化成compressed trie一个意思吗? |
|
k*******t 发帖数: 144 | 3 CC给的答案时间和空间都是O(n). 你确实是inplace compression么?
。。 |
|
b******7 发帖数: 92 | 4 分两步:先压缩连续出现次数大于1的字符,再压缩连续出现次数为1的字符
int print_number(int num, char * buf)
{
assert(num >0);
char * p = buf;
while(num > 0)
{
*p++ = num%10 + '0';
num /= 10;
}
//[buf,p) reverse
int len = p - buf;
for(p--;buf < p; buf++,p--)
{
char tmp = *buf;
*buf = *p;
*p = tmp;
}
return len;
}
void compress(char * src)
{
if(src == NULL || *src == '\0') return;
char * p0 = src;
int singlenum = 0;
char * start = src;
... 阅读全帖 |
|
J****3 发帖数: 427 | 5 char *compress(char* str){
int rlen;
int len = strlen(str);
char* dest = (char*)malloc(sizeof(char)*(2*len+1));
int j = 0;
for(int i = 0; i < len; i++){
dest[j++] = str[i];
rlen = 1;
while(i+1 < len && str[i] == str[i+1]){
rlen++;
i++;
}
dest[j++] = rlen+'0';
}
dest[j] = '\0';
return dest;
}
O(n) 但是不是inplace的 你看看行不 |
|
h*****g 发帖数: 944 | 6 比如dddffgggjjjjjj
可以被compress 成3d2f3g6j
这个没写出来,让先写o(n),再写log(n)的,哪位大侠会写?
其他都是longest repeating sequence 以及排列组合的问题都能写出来 |
|
|
S*********g 发帖数: 7653 | 8 Miami买了Compression,还有别人用过么,我在这边的Running Company倒是看到过,我
想问的是
这个东西,尤其是裤子,穿上和穿短裤,有行动上的区别么,也就是说会比穿短裤要阻
碍行动么
穿这个是跑recovery的时候穿还是做别的speed work out的时候也可以穿?
关于Supplement
有个东西叫MSM,据说是和Joint support差不多的玩意,有啥区别?
还有什么supplement 对膝盖的recovery有帮助么?我吃Joint support and fish oil.
另外,任何对膝盖的恢复有好处的东西能不能都推荐一下:)
谢谢! |
|
b***i 发帖数: 10018 | 9 据说这些compression gear跑的时候对performance没有实质性的影响,但是不排除有
心理上的帮助。而跑后穿是肯定可以加速恢复的。 |
|
b***i 发帖数: 10018 | 10 我见到挺多local elite穿compression socks的,估计还是有点帮助。 |
|
l***o 发帖数: 81 | 11 谢谢update报告。
请问这compression挡风吗?冬天跑步冷一点还好,风一大,就觉得难受。 |
|
m****i 发帖数: 1980 | 12 再报告一下,俺上周几乎每天中午都会热身,然后企图小跑一把,一般基本都是在启动
跑步机1-2分钟内,膝盖边边那熟悉的sharp的疼就会出现,不得不停下来去一边干别的
。一直到昨天早上,起床后,做下蹲然后站起的动作,下楼动作,上楼动作,俺左边膝
盖的itbs还是会有很明显的感觉,但是昨天在compression tight的帮助下跑了6迈,说
老实话,这种tight对腿部肌肉的支撑真不是盖的,今天冒似好多了,于是中午没有穿
tight,只穿一般短裤用同样速度又龟速了四个迈。感觉很不错。看起来这很紧的裤子
对受伤恢复期间真的还是有用的。当然要继续观察。 |
|
m****i 发帖数: 1980 | 13 你回来啦???太好了,要不要下周六LGCT见?
穿这种tights比穿一般的running tights多不了多少时间,你可以去SB去试一下。很容
易穿
对了,新年收到意外礼物,居然是2XU的compression tights,这个价格比较贵,两个
比较了一下,发现材料小小不一一样,但是还没穿着跑过,等跑过再回来向各位报告哈
! |
|
m****i 发帖数: 1980 | 14 今天尝试了40度穿这套compression跑20迈,感觉胳膊肘很冷,今天没有风,所以还不
知道抗风力如何,除此之外一切都很棒,透气,风干性非常好,上衣和tights到家就全
干透 |
|
w********6 发帖数: 12977 | 15 http://slickdeals.net/forums/showthread.php?t=3456630
Graveyard Mall has New Balance Apparel on sale. Shipping is $7 and increases
slightly for each item thereafter, so it's best to order a few. Thanks
New Balance Men's Speed Suit
Red (Large or X-Large) $3
Maroon (Large or X-Large) $3
New Balance Women's 5" Compression Shorts in Black (2X-Small, or X-Small) $3
New Balance Women's Speed Suit in Forest Green (Small, Medium, Large, or X-
Large) $3
New Balance Women's Running Briefin Green (Small, M... 阅读全帖 |
|
g*2 发帖数: 658 | 16 这个compression,是不是就是指傍在小腿上? 如果小腿肌肉扭伤了,应该可以吧。 |
|
|
O*********h 发帖数: 4674 | 18 是的啊,有deal的话吼一嗓子吧,发现roll很有用,准备再上compression来试试
争取早点恢复正常跑步 |
|
r********r 发帖数: 2912 | 19 其实要紧的话可能买那种医用或者保健用的会足够紧,CVS之类的地方应该就有。那些
都标了compression的压强是多少mmhg的
这种运动品牌的大多卖的死贵,而且好多都很松,基本上只有zoot还有cep两个牌子还
能用 |
|
O*********h 发帖数: 4674 | 20 这个是个好思路,可以去看看
我已经有了nike的tights,可以穿着去跑步的
但是不是用来compress和恢复的
这个不着急,我慢慢等deal,现在就靠roll算了 |
|
|
a*****n 发帖数: 748 | 22 It's not, but use lens pen can clean it away.
Never use compress air to blow the lens. |
|
D**********s 发帖数: 3139 | 23 不是冷凝水,是什么水渍呢?求教。可以给我复习一下相变和热力学,谢谢。还有您对压缩空气的偏见,各种lab或者fab的氮气和氩气都是compressed,从吹wafer到吹CMOS,只要你管子够长,气化吸热完全,完全胜任您吹个lens。
奉劝楼主加根软管,接着吹吧,没事。 |
|
g***l 发帖数: 18555 | 24 有一个TABLE用SSIS的VBSCRIPT EXPORT出来的XML文件,大概是1G,7ZIP压缩后是25MB
,MIGRATION到了一个NEW SERVER之后,XML文件大小没变,RECORD COUNT也没变,7ZIP
之后变200MB了,比较半天也没比较出变化,因为TABLE每天都有微小的变化,很难比较
,不知道COMPRESSION RATIO怎么变化这么个啊,换了ALGORITHM LZMA就没问题,真是
头大,文件压缩怎么会忽然大了9倍。 |
|
g**********y 发帖数: 14569 | 25 I need to compress data with javascript and send to server.
Option 1: gzip implementation in js, I don't see a good library, and it is
said the performance in pure js is poor.
Option 2: use applet. With JDK 1.6, it has problem when "Next generation
Java plug-in" is enabled.
Any ideas? thx |
|
m******t 发帖数: 2416 | 26 Another option would be one of those flash based file uploaders
which support compression, and, uh, more browser friendly than
applet. |
|
g**********y 发帖数: 14569 | 27 What I want to compress is some CDATA section of XML, not all of them. Can
those file uploaders handle it?
Any example website? |
|
g**********y 发帖数: 14569 | 28 It's not that big, XML file. However, client's terminal is very slow, using
phone line, so compress is crucial.
Anyway, I found the way out: still use applet, but call from js. IE8 fail to
call applet from vbscript, but has no problem to call from javascript. What
an irony!
file |
|
m******t 发帖数: 2416 | 29
using
I'm glad you worked it out, but you do know that modems have had built-in
compression support for the past 15 years? |
|
i**p 发帖数: 902 | 30 Java provides several file/stream classes to compress the output file. Can anyone of these classes encrypt the output file also?
Thanks! |
|
g*********r 发帖数: 124 | 31 在导言区加入如下代码
\usepackage{cite}
\makeatletter%
\def\@compress@cite#1{%
\advance\@tempcnta\@ne
\ifnum #1=\@tempcnta
\def\@h@ld{\citedash \citeform{#1}}%
\else
\@h@ld \@citea \citeform{#1}%
\let\@h@ld\@empty
\fi \@tempcnta#1\let\@citea\citepunct
}
\makeatletter |
|
w**f 发帖数: 7794 | 32 using tar, gzip, or compress, either of them.
thanks. |
|
s***t 发帖数: 58 | 33 tar -Icvf to use bzip2 to compress
or tar -zcvf to use gzip.
(check your version tar first :-) |
|
h***d 发帖数: 46 | 34 I want to extract .zip file in unix. The tar and gzip do not work. Anyone
know other command to do it? Or which software I can use to compress file
in windows xp and it can be extracted in unix?
Thanks a lot, |
|
发帖数: 1 | 35 To be honest, the so-called evidence of data manipulation or fabrication in
Han's Paper
is so weak.
So far, two major pieces of evidence have been presented.
The first one is the shape and migration of DNA bands seem not to be similar
to those shown on protein SDS-PAGE. For these IDs, I will suggested a book
of DNA electrophoresis where you can read about some fundamental concepts or
knowledge. The following book are helpful to understand the DNA
electrophoresis data. (DNA Electrophoresis, Edite... 阅读全帖 |
|
t***o 发帖数: 4 | 36 想了解一下在可以应用compressive sensing的方向中,哪个方向的就业前景比较好?
具体的应用比如说imaging system, MRI, computer vision等
看到有不少老师在做这个,总感觉似乎总的来说这个东西还是停留在理论阶段,不晓得
今后的就业机会怎样? |
|
t****7 发帖数: 471 | 37 的却是军方的项目,虽然项目本身不要求citizen. 项目偏重signal processing一些,
另外compressive sensing目前前景也不是很明朗,不知道会不会很难有比较明确的应用
之类,谢指点~ |
|
F***e 发帖数: 23 | 38 前一阵子,版上讨论compressed sensing,特别提到吴同学的文章,最近有空拜读了,
感觉思路很独特,有些问题问一下:
一个稀疏信号如果用分形来建模,作dimension reduction,其维数最低是其分形维,
与信息论有关的就是信息维,吴同学的文章与直观符合。 吴同学最后说:
sparsity is just one manifestation of a mixed distributioin
这句话是什么意思呢?
此外,分形在通信和信号处理中真的有用吗?分形在图像编码,Internet traffic中火
过一断时间,后来好像用得不多。
我就是吴同学。
首先非常感谢你对我paper的喜爱!毕竟care或者care to read it的人也不多……
然后说我的看法:
1. 我做的跟candes,tao或者donoho做的的关系,exactly就是info theory跟coding
theory的关系吧。这样类比的话,你也就看到没有太多的可比性,对吧,也不能说谁谁
就basic谁就deep了。您可能对info theory的formulation比较偏爱吧:)当然了 |
|
r*****s 发帖数: 262 | 39 请问
如果用cadence的rc_compiler综合,并使用了dft compression。
生成的综合结果netlist可以用synopsys的tetramax atpg来生成测试向量吗?
谢谢 |
|
s********1 发帖数: 179 | 40 理论上是可以的,你把控制的compression 的逻辑都disable 掉。 |
|
s********1 发帖数: 179 | 41 对的。compression的控制各家都不一样。 |
|
y****u 发帖数: 50 | 42 Tg=90, what temperature is good for compression molding? When I used 160 C it
colored. I plan to use 120 or 130, ok? For how long?
thanks a lot! |
|
c*******n 发帖数: 1648 | 43 found this board this week, BM is a friend, feel excited.
bring some water here.
Those guys are right, Tg+100 should be a good processing temperature for
amorphous polymer. However, it could be lower, but 120C or 130C may not be enough
I don't know what you will do with your compression molded samples.
Generally color is usually seen for NYLON and some rubber compounds. Polyolefins
should be ok. color is not big problem for mechanical test or even rheological
test. First let your pellets sit on |
|
y****u 发帖数: 50 | 44 Thanks for all the advices.
I used 140 C. I warmed the sample for 6 minutes (keeping small clearance),
then pumped 3-5 times (less than 1 min), compressed for 6 min. As a result,
the coloring was negligible. but still there were a few tiny bubbles inside (I
guess there were more invisible). Maybe I should pump it longer.
enough
Polyolefins
rheological
5-10
continually
it |
|
d**y 发帖数: 4 | 45 什么是Compressive Sensing?
做什么的,前景如何? |
|
c****n 发帖数: 2031 | 46 er。。。我老板半年前就卖了个专利,compressive sensing的算法 |
|
g****t 发帖数: 31659 | 47 一定条件(稀疏)下,L1 norm方法导致的迭代算法,收敛到L0 问题的精确解。
这是严格的,这就是compressed sensing最大的理论突破。
L0是NP Hard,全局最优是没谱的。 |
|
s*******o 发帖数: 284 | 48 没错.Saline compression一般都用它干啥?医院经常用吗? |
|
y*****n 发帖数: 128 | 49 RT,爸爸说下肢静脉曲张很厉害,网上查了一下发现治疗是用compression stocking,
请问哪里可以买到比较好的?amazon也有很多卖的,就是不知道好不好。 |
|
w*******y 发帖数: 60932 | 50 *starts at 6:30 pm Pacific*
EveryDaySource
8-piece Compressed Travel Towels
$7.99 - $7.50 code S9CTTW
= 49
free shipping
|
|