20240918

1. B-tree:expanding the width(merging nodes in BTS) and decresing the height to lower the time of putting individual layer from the disk to the ram.

search:only select a part of the tree to the ram, and cuz the tree is evolved from BTS, so we can view it as a sorted vector and using binary-search to improve effiency. (if this layer dosen't have any, then pull out the next one.[inner node;outer node(in disk)])

m-order B-tree.

m represent the number of the branches. 

number of branch:(m/2,m]

prove the efficiency of such stracture(considering the lowest tree height and the maxiumn--conclude that it is much more efficient and stable with different m value)

2. exercise:

KMP:finding out the repetitive substring in a string.

1) finding the max common string(getNext) and caculate the delta length. Considering if it can be divided by the length.

2)finding the substr:

traverse the whole string and if there is one alpha that doesn't match, then go to the previous letter's next value. Continue to search from the letter to the enf.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值