git ssb

0+

wanderer🌟 / js-dfinity-radix-tree



Commit cb975cb6020d087d022e6505e90ca937ac462bf9

Update spec.md

wanderer authored on 1/21/2018, 1:49:41 AM
GitHub committed on 1/21/2018, 1:49:41 AM
Parent: b0094bf5d7c4780675dd5379018431540837353c

Files changed

docs/spec.mdchanged
docs/spec.mdView
@@ -1,6 +1,6 @@
11 This documnet provides the structure of the [Dfinity's Radix Tree.](https://ipfs.io/ipns/QmdJiuMWp2FxyaerfLrtdLF6Nr1EWpL7dPAxA9oKSPYYgV/wiki/Radix_tree.html)
2-Our radix tree data structure stores the key-valus; the tree nsists of Nodes that contains the value and the key is the path to the node in the tree.
2 +The radix tree data structure stores the key-values; the tree is an instances of nodes that contains the value and the key is the path to the node in the tree.
33
44 ## Node
55 Each node has a type and contains at most four elements:
66 "extension", "left branch", "right branch" and "value".
@@ -9,9 +9,9 @@
99 node : = TYPE | EXTENSION | LBRANCH | RBRANCH | VALUE
1010 ```
1111
1212 ### Type
13-The type feild contains a byte. The first 4 bits are paded to zero while the Node is stored in the tree. These bits are reserved as insicators of type when sending the nodes to other clients which we will describe later. The last 4 bits are used to signify which elements a node contains. The bit field is defined a the following
13 +The type field contains a byte. The first 4 bits are paded to zero while the Node is stored in the tree. These bits are reserved as insicators of type when sending the nodes to other clients which we will describe later. The last 4 bits are used to signify which elements a node contains. The bit field is defined a the following
1414
1515 ```
1616 Type := 0 | 0 | 0 | 0 | HasEXTENSION | HasLBRANCH | HasRBRANCH | HasVALUE
1717 ```

Built with git-ssb-web