Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| Newsgroups | sci.math |
| Subject | For WM, a 2-ary infinite tree: |
| Date | 2021-12-31 22:56 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <sqotum$6ja$1@dont-email.me> (permalink) |
Root 0, 2-ary:
[0] 0
/ \
/ \
/ \
/ \
/ \
[1] 1 2
/ \ / \
/ \ / \
[2] 3 4 5 6
/ \ / \ / \ / \
[3] 7 8 9 10 11 12 13 14
................................
It goes on forever. There is no end. There are an infinite number of
levels, however, no leafs in sight... ;^)
Want to get to the number 12, we go: (0, 2, 5, 12), or, starting at the
root, go (R, L, R) RLR... a finite path to 12. Want to get to a big
number, go all rights... (0, 2, 6, 14, ...). Notice a pattern? You can
never reach infinity, even though the tree is infinite in and of itself...
starting at root, 9 = LRL, and 10 = LRR
;^)
Want to get to the children of a node? Say 5...
left = 2*5+1 = 11
right = 2*5+2 = 12
Say, 2...
left = 2*2+1 = 5
right = 2*2+2 = 6
Perhaps 1...
left = 2*1+1 = 3
right = 2*1+2 = 4
Oh shit how about zero:
left = 2*0+1 = 1
right = 2*0+2 = 2
Three:
left = 2*3+1 = 7
right = 2*3+2 = 8
On and on... On and on....
;^)
Back to sci.math | Previous | Next — Next in thread | Find similar | Unroll thread
For WM, a 2-ary infinite tree: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-12-31 22:56 -0800
Re: For WM, a 2-ary infinite tree: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-01-01 00:00 -0800
Re: For WM, a 2-ary infinite tree: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-01-01 00:03 -0800
Re: For WM, a 2-ary infinite tree: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-01-01 23:46 -0800
Re: For WM, a 2-ary infinite tree: FredJeffries <fredjeffries@gmail.com> - 2022-01-02 07:48 -0800
Re: For WM, a 2-ary infinite tree: "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2022-01-02 09:29 -0800
Re: For WM, a 2-ary infinite tree: "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2022-01-02 09:54 -0800
Re: For WM, a 2-ary infinite tree: "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2022-01-02 10:23 -0800
Re: For WM, a 2-ary infinite tree: Serg io <invalid@invalid.com> - 2022-01-02 13:20 -0600
Re: For WM, a 2-ary infinite tree: "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2022-01-02 11:27 -0800
Re: For WM, a 2-ary infinite tree: Serg io <invalid@invalid.com> - 2022-01-02 13:53 -0600
Re: For WM, a 2-ary infinite tree: "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2022-01-02 11:55 -0800
Re: For WM, a 2-ary infinite tree: Serg io <invalid@invalid.com> - 2022-01-02 14:01 -0600
Re: For WM, a 2-ary infinite tree: "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2022-01-02 12:05 -0800
Re: For WM, a 2-ary infinite tree: Scot Dino <cvb@nmo.er> - 2022-01-02 23:30 +0000
Re: For WM, a 2-ary infinite tree: "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2022-01-02 15:38 -0800
Re: For WM, a 2-ary infinite tree: "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2022-01-02 20:48 -0800
Re: For WM, a 2-ary infinite tree: Scot Dino <cvb@nmo.er> - 2022-01-02 18:08 +0000
Re: For WM, a 2-ary infinite tree: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-01-02 21:26 -0800
Re: For WM, a 2-ary infinite tree: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-01-02 21:35 -0800
Re: For WM, a 2-ary infinite tree: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-01-03 00:10 -0800
Re: For WM, a 2-ary infinite tree: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-01-03 01:17 -0800
csiph-web