made M realistic
This commit is contained in:
parent
927e4099f5
commit
bd67d7226a
1 changed files with 1 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
# max children per B-tree node = M-1
|
# max children per B-tree node = M-1
|
||||||
# (must be even and greater than 2)
|
# (must be even and greater than 2)
|
||||||
const
|
const
|
||||||
M = 4
|
M = 128
|
||||||
Mhalf = M div 2
|
Mhalf = M div 2
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
@ -145,7 +145,6 @@ proc main =
|
||||||
assert st.get("www.ebay.com") == "66.135.192.87"
|
assert st.get("www.ebay.com") == "66.135.192.87"
|
||||||
assert st.get("www.dell.com") == "143.166.224.230"
|
assert st.get("www.dell.com") == "143.166.224.230"
|
||||||
assert(st.n == 17)
|
assert(st.n == 17)
|
||||||
assert(st.height == 2)
|
|
||||||
|
|
||||||
when true:
|
when true:
|
||||||
var b2 = newBTree()
|
var b2 = newBTree()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue