heap
Предварительный просмотр (5 стр.)
Прокрутите вниз 👇
О "heap"
heap heap algorithms and data structures course data structures: heap heap is a specialized tree-based data structure: an almost complete tree. in a max heap, for any given node c, if p is a parent node of c, then the key (the value) of p is greater than or equal to the key of c. in a min heap, for any given node c, if p is a parent node of c, then the key (the value) of p is less than or equal to the key of c. algorithms and data structures course data structures: heap operations push: inserts item to the heap. time complexity is o(log(n)). pop: removes the min/max element from heap. time complexity is o(log(n)). top: …
Этот файл содержит 38 стр. в формате PPTX (146,1 КБ). Чтобы скачать "heap", нажмите кнопку Telegram слева.