The Dynadron
The Dynadron is an order of the natural numbers. In it, every number has a fixed place. NHyDB uses this order as its address space – but it was not devised for the database. It shows itself when you arrange the numbers in a particular way, and much about it explains itself on close inspection.
Two numbers and their sum
The starting point is two natural numbers u and v and their sum G = u + v. Each pair has two numbers:
G² − u left of the square number
G² + v right of the square number
For u = 2 and v = 1, G = 3, so 9 − 2 = 7 on the left and 9 + 1 = 10 on the right.
Row by row
If you write one row for each G, these numbers fill the natural numbers without gaps and without repetition:
G = 2: 2 | 3 | 4 | 5
G = 3: 6 | 7 8 | 9 | 10 11
G = 4: 12 | 13 14 15 | 16 | 17 18 19
Each row is two numbers longer than the previous one. Row G contains exactly the numbers from G² − G + 1 to G² + G − 1 – plus, at the front, the boundary to the previous row. What this looks like as a staircase is shown in The address space.
Fixed reference points
Two kinds of numbers have a special role:
- The square number G² stands in the middle of every row (4, 9, 16, …).
- The boundary G(G − 1) stands between two rows (2, 6, 12, …).
They are fixed reference points of the order. In NHyDB they are not storage cells – they separate the two sides and the rows.
Two sides
Left of the middle lies the side NL, right of it the side NR. Every pair (u, v) has exactly one number on each side, both in the same row: u steps left of the middle and v steps right of it. For (11, 13) these are 565 and 589, both in row 24 around the square number 576. The distance between the two numbers is always G – here 589 − 565 = 24.
What NHyDB makes of it
Because the mapping between a number and its place is exact and can be computed in both directions, a database can use it as its address space:
- The coordinates are the identity. A record is a value of u, a field a value of v.
- The number is computed, never stored. There is no lookup table.
- The order is built in. Neighbouring records and fields are neighbouring cells.
Learn more
The mathematical foundations of the Dynadron are described in three papers – see Research.