Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

You cannot have a science without measurement. -- R. W. Hamming


tech / sci.math / Re: SIM of RanDom WalK ------ 2 STEPS -------- 4/16 ret to [0,0]

SubjectAuthor
* SIM of RanDom WalK ------ 2 STEPS -------- 4/16 ret to [0,0]Graham Cooper
`- Re: SIM of RanDom WalK ------ 2 STEPS -------- 4/16 ret to [0,0]Graham Cooper

1
SIM of RanDom WalK ------ 2 STEPS -------- 4/16 ret to [0,0]

<9af64951-f6f8-493a-b145-e0f315186b86n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=132552&group=sci.math#132552

  copy link   Newsgroups: sci.math
X-Received: by 2002:a05:620a:1654:b0:74f:b492:f498 with SMTP id c20-20020a05620a165400b0074fb492f498mr281586qko.4.1682323330242;
Mon, 24 Apr 2023 01:02:10 -0700 (PDT)
X-Received: by 2002:a25:c905:0:b0:b8f:6b3b:8a0a with SMTP id
z5-20020a25c905000000b00b8f6b3b8a0amr6763995ybf.6.1682323329929; Mon, 24 Apr
2023 01:02:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.1d4.us!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Mon, 24 Apr 2023 01:02:09 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2001:8004:11a0:3cee:e4a8:cf5c:b559:bbcf;
posting-account=EsDGawkAAAAN6xcF2fi-X0yb3ECD-3_I
NNTP-Posting-Host: 2001:8004:11a0:3cee:e4a8:cf5c:b559:bbcf
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9af64951-f6f8-493a-b145-e0f315186b86n@googlegroups.com>
Subject: SIM of RanDom WalK ------ 2 STEPS -------- 4/16 ret to [0,0]
From: grahamco...@gmail.com (Graham Cooper)
Injection-Date: Mon, 24 Apr 2023 08:02:10 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2474
 by: Graham Cooper - Mon, 24 Apr 2023 08:02 UTC

DD
DL
DU ---- 1
DR
LD
LL
LU
LR ---- 2
UD ---- 3
UL
UU
UR
RD
RL ---- 4
RU
RR

--------------------------- JAVASCRIPT -----------------------

<b id='paths'></b>
<script>
path = new Array()
x=0
y=0
tally = 0
walk()
function walk()
{ initpath(2)
for (i=1 ; i<=16 ; i++)
{
x=0
y=0
incpath(2)
thepath = ''
for (j=1 ; j<=2 ; j++)
{
thepath = thepath + path[j]
}
document.getElementById('paths').innerHTML = document.getElementById('paths').innerHTML + "<BR>" + thepath
if (( x==0) & (y==0))
{
tally++
document.getElementById('paths').innerHTML = document.getElementById('paths').innerHTML + ' ---- ' + tally
} }
} function incpath( p )
{ carry = true
for (k=p ; k>0 ; k--)
{
if (carry)
{
if (path[k]=='D') { path[k]='L' ; carry=false }
else {
if (path[k]=='R') { path[k]='D' ; carry=true }
else {
if (path[k]=='U') { path[k]='R' ; carry=false }
else {
if (path[k]=='L') { path[k]='U' ; carry=false }
}}}
}
if (path[k]=='D') { y-- }
if (path[k]=='R') { x++ }
if (path[k]=='U') { y++ }
if (path[k]=='L') { x-- }
}
} function initpath(p)
{ for (i=1; i<=p ; i++)
{
path[i] = 'D'
}
} </script>

Re: SIM of RanDom WalK ------ 2 STEPS -------- 4/16 ret to [0,0]

<0b79ac92-25cb-4d90-9584-072bbdffad6dn@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=132556&group=sci.math#132556

  copy link   Newsgroups: sci.math
X-Received: by 2002:a05:622a:1996:b0:3ef:33d0:88f4 with SMTP id u22-20020a05622a199600b003ef33d088f4mr4881989qtc.7.1682328254665;
Mon, 24 Apr 2023 02:24:14 -0700 (PDT)
X-Received: by 2002:a81:ac02:0:b0:552:e74d:318e with SMTP id
k2-20020a81ac02000000b00552e74d318emr5765920ywh.7.1682328254418; Mon, 24 Apr
2023 02:24:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Mon, 24 Apr 2023 02:24:14 -0700 (PDT)
In-Reply-To: <9af64951-f6f8-493a-b145-e0f315186b86n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:8004:11a0:3cee:e4a8:cf5c:b559:bbcf;
posting-account=EsDGawkAAAAN6xcF2fi-X0yb3ECD-3_I
NNTP-Posting-Host: 2001:8004:11a0:3cee:e4a8:cf5c:b559:bbcf
References: <9af64951-f6f8-493a-b145-e0f315186b86n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0b79ac92-25cb-4d90-9584-072bbdffad6dn@googlegroups.com>
Subject: Re: SIM of RanDom WalK ------ 2 STEPS -------- 4/16 ret to [0,0]
From: grahamco...@gmail.com (Graham Cooper)
Injection-Date: Mon, 24 Apr 2023 09:24:14 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4875
 by: Graham Cooper - Mon, 24 Apr 2023 09:24 UTC

On Monday, April 24, 2023 at 6:02:14 PM UTC+10, Graham Cooper wrote:
> DD
> DL
> DU ---- 1
> DR
> LD
> LL
> LU
> LR ---- 2
> UD ---- 3
> UL
> UU
> UR
> RD
> RL ---- 4
> RU
> RR
>
>
>

4 STEPS
======
DDDL
DDDU
DDDR
DDLD
DDLL
DDLU
DDLR
DDUD
DDUL
DDUU ---- 1
DDUR
DDRD
DDRL
DDRU
DDRR
DLDD
DLDL
DLDU
DLDR
DLLD
DLLL
DLLU
DLLR
DLUD
DLUL
DLUU
DLUR ---- 2
DLRD
DLRL
DLRU ---- 3
DLRR
DUDD
DUDL
DUDU ---- 4
DUDR
DULD
DULL
DULU
DULR ---- 5
DUUD ---- 6
DUUL
DUUU
DUUR
DURD
DURL ---- 7
DURU
DURR
DRDD
DRDL
DRDU
DRDR
DRLD
DRLL
DRLU ---- 8
DRLR
DRUD
DRUL ---- 9
DRUU
DRUR
DRRD
DRRL
DRRU
DRRR
LDDD
LDDL
LDDU
LDDR
LDLD
LDLL
LDLU
LDLR
LDUD
LDUL
LDUU
LDUR ---- 10
LDRD
LDRL
LDRU ---- 11
LDRR
LLDD
LLDL
LLDU
LLDR
LLLD
LLLL
LLLU
LLLR
LLUD
LLUL
LLUU
LLUR
LLRD
LLRL
LLRU
LLRR ---- 12
LUDD
LUDL
LUDU
LUDR ---- 13
LULD
LULL
LULU
LULR
LUUD
LUUL
LUUU
LUUR
LURD ---- 14
LURL
LURU
LURR
LRDD
LRDL
LRDU ---- 15
LRDR
LRLD
LRLL
LRLU
LRLR ---- 16
LRUD ---- 17
LRUL
LRUU
LRUR
LRRD
LRRL ---- 18
LRRU
LRRR
UDDD
UDDL
UDDU ---- 19
UDDR
UDLD
UDLL
UDLU
UDLR ---- 20
UDUD ---- 21
UDUL
UDUU
UDUR
UDRD
UDRL ---- 22
UDRU
UDRR
ULDD
ULDL
ULDU
ULDR ---- 23
ULLD
ULLL
ULLU
ULLR
ULUD
ULUL
ULUU
ULUR
ULRD ---- 24
ULRL
ULRU
ULRR
UUDD ---- 25
UUDL
UUDU
UUDR
UULD
UULL
UULU
UULR
UUUD
UUUL
UUUU
UUUR
UURD
UURL
UURU
UURR
URDD
URDL ---- 26
URDU
URDR
URLD ---- 27
URLL
URLU
URLR
URUD
URUL
URUU
URUR
URRD
URRL
URRU
URRR
RDDD
RDDL
RDDU
RDDR
RDLD
RDLL
RDLU ---- 28
RDLR
RDUD
RDUL ---- 29
RDUU
RDUR
RDRD
RDRL
RDRU
RDRR
RLDD
RLDL
RLDU ---- 30
RLDR
RLLD
RLLL
RLLU
RLLR ---- 31
RLUD ---- 32
RLUL
RLUU
RLUR
RLRD
RLRL ---- 33
RLRU
RLRR
RUDD
RUDL ---- 34
RUDU
RUDR
RULD ---- 35
RULL
RULU
RULR
RUUD
RUUL
RUUU
RUUR
RURD
RURL
RURU
RURR
RRDD
RRDL
RRDU
RRDR
RRLD
RRLL ---- 36
RRLU
RRLR
RRUD
RRUL
RRUU
RRUR
RRRD
RRRL
RRRU
RRRR
DDDD

--------CODE-------

<b id='paths'></b>

<script>

path = new Array()
x=0
y=0
tally = 0

walk()

function walk()
{

initpath(4)

for (i=1 ; i<=256 ; i++)
{

x=0
y=0
incpath(4)

thepath = ''
for (j=1 ; j<=4 ; j++)
{
thepath = thepath + path[j]
}
document.getElementById('paths').innerHTML = document.getElementById('paths').innerHTML + "<BR>" + thepath

if (( x==0) & (y==0))
{
tally++
document.getElementById('paths').innerHTML = document.getElementById('paths').innerHTML + ' ---- ' + tally
}

}

}

function incpath( p )
{ carry = true

for (k=p ; k>0 ; k--)
{

if (carry)
{
if (path[k]=='D') { path[k]='L' ; carry=false }
else {
if (path[k]=='R') { path[k]='D' ; carry=true }
else {
if (path[k]=='U') { path[k]='R' ; carry=false }
else {
if (path[k]=='L') { path[k]='U' ; carry=false }
}}}
}

if (path[k]=='D') { y-- }
if (path[k]=='R') { x++ }
if (path[k]=='U') { y++ }
if (path[k]=='L') { x-- }

}
}

function initpath(p)
{

for (i=1; i<=p ; i++)
{
path[i] = 'D'
}

}

</script>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor