freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

dynamic-sizednonblockinghashtables(編輯修改稿)

2024-11-29 17:47 本頁面
 

【文章內(nèi)容簡介】 plied to fresh table help resize if needed – Resizing policy may use heuristics (and is orthogonal) Insert(k) resp Apply(INS, k) if policy Resize() return resp Remove(k) resp Apply(REM, k) if policy Resize() return resp Applying an Insert/Remove Operation 0 1 2 3 pred {8, 16} {9, 17} {14} {3, 7} head Apply(INS, 10) 0, 14} resp = true Invoke(INS, 10) Applying an Insert/Remove Operation 0 1 2 3 pred {8, 16} {9, 17} {3, 7} head Apply(INS, 10) What if the bucket is nil? (Invariant) if some bucket of head is nil, then a predecessor table exists 0 1 2 3 4 5 6 7 pred {8, 16, 24} {12, 20} {9, 17} {5, 21} {18} {6} {3, 11, 19} {7, 15, 19} Applying an Insert/Remove Operation 0 1 2 3 pred {8, 16} {9, 17} {3, 7} head Apply(INS, 10) 0 1 2 3 4 5 6 7 pred {8, 16, 24} {12, 20} {9, 17} {5, 21} {18} {6} {3, 11, 19} {7, 15, 19} Merge the corresponding buckets of the predecessor. Freeze() Freeze() Applying an Insert/Remove Operation 0 1 2 3 pred {8, 16} {9, 17} {3, 7} head Apply(INS, 10) 0 1 2 3 4 5 6 7 pred {8, 16, 24} {12, 20} {9, 17} {5, 21} {18} {6} {3, 11, 19} {7, 15, 19} Merge the corresponding buckets of the predecessor. Applying an Insert/Remove Operation 0 1 2 3 pred {8, 16} {9, 17} {3, 7} head Apply(INS, 10) 0 1 2 3 4 5 6 7 pred {8, 16, 24} {12, 20} {9, 17} {5, 21} {18} {6} {3, 11, 19} {7, 15, 19} {6, 18} Create a new FSet object by merging the frozen buckets Install the new FSet using a CAS Call Invoke(INS, 10) on this FSet 0, 18} resp = true The Resize Operation 0 1 2 3 pred {8, 16} {9, 17} {3, 7} head Step1: Make sure every bucket of head is not nil … {6, 18} x Step2: Nullify the pred pointer after all buckets are not nil 0 1 pred Step3: Allocate a new table that links to the current head Step4: CAS head The Contains Operation 0 1 2 3 pred {8, 16} {9, 17} {3, 7} head Contains(3) HasMember(3) resp = true The Contains Operation
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1