Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

As of next Thursday, UNIX will be flushed in favor of TOPS-10. Please update your programs.


devel / comp.theory / Sublinear O(n/m) Pattern Recognition on all alphabets

SubjectAuthor
o Sublinear O(n/m) Pattern Recognition on all alphabetsDaniel Pehoushek

1
Sublinear O(n/m) Pattern Recognition on all alphabets

<2e366fa8-b7e5-4f8c-b6b3-8616ee14c07an@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=35826&group=comp.theory#35826

  copy link   Newsgroups: comp.theory
X-Received: by 2002:ac8:7d42:0:b0:31e:c4f8:4979 with SMTP id h2-20020ac87d42000000b0031ec4f84979mr20761625qtb.293.1658146225747;
Mon, 18 Jul 2022 05:10:25 -0700 (PDT)
X-Received: by 2002:a25:8407:0:b0:670:22fa:34c9 with SMTP id
u7-20020a258407000000b0067022fa34c9mr8188006ybk.52.1658146225366; Mon, 18 Jul
2022 05:10:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.theory
Date: Mon, 18 Jul 2022 05:10:25 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2600:2b00:774c:5000:e05f:8382:d970:9dcf;
posting-account=wr2KGQoAAADwR6kcaFpOhQvlGldc1Uke
NNTP-Posting-Host: 2600:2b00:774c:5000:e05f:8382:d970:9dcf
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2e366fa8-b7e5-4f8c-b6b3-8616ee14c07an@googlegroups.com>
Subject: Sublinear O(n/m) Pattern Recognition on all alphabets
From: pehoush...@gmail.com (Daniel Pehoushek)
Injection-Date: Mon, 18 Jul 2022 12:10:25 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 18
 by: Daniel Pehoushek - Mon, 18 Jul 2022 12:10 UTC

// time n over space m recognition: n/m details: (m + n/(1+m less lgm)) lgm
/// (time n over space m is search theory)
num age=zero;// count all finds one by one (page alts)
inline num map(nums& p,num& z,num& dep,num& lga)
{num d=zero;for(num h=zero;h<dep;h++)d=(d<<lga)+p.v[z+h];return d;}

num skips (nums& string, nums& book, num& lga, numnums* myn) {
/// allocate proper memory space of empty sets O(constant)
num m = string.size(); num deep = zero; num d = one; while (d < m) { d = d << lga; deep++; }
for (num g = (*myn).size(); g < d; g++)(*myn).add(new nums);
/// the m part of partten are mapped precisely O(mlgm)
for (num g = zero; g + deep < m; g++)(*(*myn)[map(string, g, deep, lga)]).add(g);
/// map part of the book into pattern O(nlgm/(m+1-lgm))
num mm = minus(m + one, deep); for (num j = mm; j + deep < book.size(); j = j + mm) {
nums* d = (*myn)[map(book, j, deep, lga)]; for (num o = zero; o < (*d).size(); o++)
{num be = minus(j, (*d)[o]); num h = one; for (num g = zero; g < m; g++) {
if (book[be + g] == string[g])continue; h = zero; break; } if (h)age++; } }
/// release resources from step two O(mlgm)
for (num g = zero; g + deep < m; g++)(*(*myn)[map(string, g, deep, lga)]).clear(); return age; }

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor