Skip to main content
. 2026 Feb 13;26(4):1217. doi: 10.3390/s26041217
Algorithm 4: Background Sensor Data Archiving
Input: LeafNode L (DB is full)
Output: void
1: /* Batch insertion of data */
2: L.MDS.bulk_insert(L.DB.get_all_items())
3: /* Reconstruct the hierarchical MBR */
4: L.HMBR.rebuild_from(L.MDS.get_all_items())
5: /* Clear the buffer */
6: L.DB.clear()
7: /* Clear CF: If the CF is too full, rebuild it here */
8: if L.CF.load_factor()>0.95 then
9:    L.CF.rebuild(L.MDS.get_all_deleted_IDs())
10: end if