회의

2011-03-14 3 views
0

내가 의사 코드 tilling..and 욕심 문자열을 호출 의사 코드를 변환하고 의사 코드에서 일부 문제 = 내가 타일 = {}과 일치 무엇을 의미하는지 알 수 있으므로회의

Greedy-String-Tiling(sToken,tToken) 
{ 
    tiles={}; 
    do 
    { 
    searchLength=MinML; 
    matches={}; 
    ForallunmarkedtokenssTokensinsToken 
    { 
     ForallunmarkedtokensintTokensintToken 
     { 
     j=0; 
     while(sToken+j==tToken+j&&unmarked(sToken+j)&&unmarked(tToken+j)) 
      j++; 
     if(j==searchLength) 
      matches=matches?match(s,t,j); 
     elseif(j>searchLength) 
     { 
      matches={match(s,t,j)}; 
      searchLength=j; 
     } 
     } 
    } 
    Forallmatch(s,t,searchLength)?matches 
    { 
     Forj=0...(searchLength 1) 
     { 
     mark(sFiles+j); 
     mark(tFilet+j); 
     } 
     tiles=tiles?match(s,t,searchLength); 
    } 
    }while(searchLength>MinML); 
    returntiles; 
} 

입니다 {} ?? 고마워요 ...

답변

1

나는 의사 코드 "dialect"에 익숙하지 않지만 tiles = {} 및 matches = {}는 이러한 변수를 새로운 빈 세트/콜렉션으로 초기화하는 것을 의미합니다.

관련 문제