home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,103 of 2,753   
   Andrew Tomazos to Kaz Kylheku   
   Re: Expected Token Density in Random Str   
   13 Dec 11 06:00:40   
   
   From: andrew@tomazos.com   
      
   On Dec 11, 6:56 pm, Kaz Kylheku  wrote:   
   > On 2011-12-07, Andrew Tomazos  wrote:   
   >   
   > > Summary: We want to find out how often a given token appears in a   
   > > random stream formed by concatenating randomly chosen strings from a   
   > > given set of strings.   
   > > (Note hits can overlap each other)   
   >   
   > But tokens do not overlap, so you're not actually extracting tokens.  Using   
   > C tokens as an example, the C token >>= is one hit, not four.  The longest   
   > match calls for extracting three characters and moving on.   
      
   Substitute occurrences of the word "token" in my post for "key   
   string" (or just "string") and reinterpret.   
     -Andrew.   
   [I suppose, but finding tokens would be more interesting. -John]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca