$strlog="c:\log\applog.txt";$e=$i=$w=0$tpath=Test-Path$strlogif(!$tpath){New-Item-Path"c:\log"-ItemTypedirNew-Item-Path$strlog-ItemTypefile}Get-EventLog-LogNameApplication|Out-File$strlogswitch-Wildcard-File$strlog{"*error*"{$e++}"*info*"{$i++}"*warn*"{$w++..
分类:
系统相关 时间:
2015-05-07 12:44:57
阅读次数:
212
题目:Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element....
分类:
其他好文 时间:
2015-05-07 12:10:52
阅读次数:
98
这是一篇印度软件工程师的无私奉献!非常具备参考价值!如果能完成旋转匹配更接近于实用性.当然要完成全角度匹配的难度是要量级数的提升.Download source - 140 KBDownload demo - 138 KBIntroductionTemplate matching is an ima...
分类:
编程语言 时间:
2015-05-04 11:49:24
阅读次数:
265
问题分析
这道题目和之前的leetcode010:Regular Expression Matching 规则稍有不同,就是对于'*' 号这次代表的是匹配任意字符(包括空串),这样处理方式上完全改变,而且思路比较简单,先把通配符字符串组成部分分为两类:
******* ,连续的*,预处理的时候可以合并为一个*
abc?d?,字母或?组合,后面都简写为X
考虑到第二类必须匹配才有可能整个字符串匹配,所以分两种情况考虑就可以了。
通配符字符串只有******或者X
X*X*X或*X*X或者X*X*或者*X*这...
分类:
其他好文 时间:
2015-05-03 09:23:24
阅读次数:
137
使用java代码实现!
public class Matching {
public static void main(String[] args) {
BF();
}
public static void BF() {
String BF_S = "aaaabbbaab"; //主串
String BF_T = "aaab"; //模式串
int BFSLeng...
分类:
编程语言 时间:
2015-05-01 17:26:14
阅读次数:
172
Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element....
分类:
编程语言 时间:
2015-04-28 22:30:32
阅读次数:
234
DP应用:KMP字符串匹配算法,解决POJ 3461以及hihoCoder 1015
分类:
其他好文 时间:
2015-04-28 11:06:48
阅读次数:
168
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:
其他好文 时间:
2015-04-28 01:34:19
阅读次数:
127
这是一个挺能展现Scala编程方式的例子,对正在熟悉Scala这门语言的开发者很有帮助。Representing JSON用Scala来表达JSON(Java Script Object Notation)结构,{
"firstname" : "John",
"lastname" : "Smith",
"address" : {
"street" : "21 2nd Street...
分类:
Web程序 时间:
2015-04-26 19:48:43
阅读次数:
201
一直找不到opencv stereo matching的根据和原理出处,下面这个文章贴了个链接,有时间看看:
Basically OpenCV
provides 2 methods to calculate a dense disparity
map:
cvFindStereoCorrespondenceBM: Fast (can
proce...
分类:
编程语言 时间:
2015-04-26 12:26:24
阅读次数:
1812